~unifield-team/unifield-web/UTP-252

« back to all changes in this revision

Viewing changes to addons/openerp/widgets/templates/listgrid/multiple_group.mako

  • Committer: jf
  • Date: 2013-04-02 14:38:43 UTC
  • mfrom: (4700.1.1 unifield-web)
  • Revision ID: jfb@tempo-consulting.fr-20130402143843-qa3sbcot14tbg3zj
UTP-553 [FIX] In the journal items when grouping all entries are marked as possible to correct
lp:~unifield-team/unifield-web/UTP-553_grouped_view

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
        <tr class="grid-row grid-row-group" id="${grp_row.get('groups_id')}" parent="${parent_group}"
64
64
            parent_grp_id="${grp_row.get('group_by_id')}" record="${ch.get('id')}"
65
65
            style="cursor: pointer; display:none;">
 
66
            % for field, field_attrs in hiddens:
 
67
                % if field in ch:
 
68
                    ${ch[field].display()}
 
69
                % endif
 
70
            % endfor
 
71
 
66
72
            % if editable:
67
73
                <td class="grid-cell">
 
74
                    % if not ch.get('id') or ch.get('id') not in noteditable:
68
75
                    <img src="/openerp/static/images/listgrid/edit_inline.gif" class="listImage" border="0"
69
76
                         title="${_('Edit')}" onclick="editRecord(${ch.get('id')}, '${source}')"/>
 
77
                    % endif
70
78
                </td>
71
79
            % endif
72
80
            % for i, (field, field_attrs) in enumerate(headers):
82
90
                    </td>
83
91
                % endif
84
92
            % endfor
85
 
            % if editable:
 
93
            % if editable and not hide_delete_button:
86
94
                <td class="grid-cell selector">
87
 
                    <img src="/openerp/static/images/listgrid/delete_inline.gif" class="listImage" border="0"
 
95
                    <img src="/openerp/static/images/iconset-b-remove.gif" class="listImage" border="0"
88
96
                         title="${_('Delete')}" onclick="new ListView('${name}').remove(${ch.get('id')})"/>
89
97
                </td>
90
98
            % endif