~dorian-kemps/unifield-web/UW-5753

« back to all changes in this revision

Viewing changes to addons/openerp/widgets/templates/sidebar.mako

  • Committer: jf
  • Date: 2019-01-30 13:24:00 UTC
  • mfrom: (4947.1.2 unifield-web)
  • Revision ID: jfb@tempo-consulting.fr-20190130132400-lkw2m1530b47s27x
US-5330 [IMP] User Rigths on Window action: ctrl + right click to display info

lp:~jfb-tempo-consulting/unifield-web/US-5330

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<%def name="sidebox_action_item(item, model, submenu, icon)">
2
2
    % if submenu != 1:
3
3
        <li action_id="${item['id']}" relation="${model}" domain="${item.get('domain')}" empty_ids="${item.get('empty_ids') and 1 or 0}"
4
 
           context="${item.get('context')}" onclick="validate_action(this, do_action);">
 
4
           context="${item.get('context')}" onclick="validate_action(this, do_action);" 
 
5
           % if rpc.session.uid == 1:
 
6
           oncontextmenu="showActionSdref(event, '${item['name']}', '${model}', '${item['id']}');"
 
7
           % endif
 
8
           >
5
9
            % if icon:
6
10
                <img src="${icon}" alt=""/>
7
11
            % endif