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

« back to all changes in this revision

Viewing changes to addons/openerp/widgets/templates/listgrid/listgroup.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:
110
110
                    </tr>
111
111
 
112
112
                    % for ch in grp_row.get('child_rec'):
113
 
                    <tr class="grid-row grid-row-group" id="${grp_row.get('groups_id')}" parent_grp_id="${grp_row.get('group_by_id')}"
 
113
                    <tr class="grid-row grid-row-group ${ch.get('id') and ch['id'] in noteditable and 'noteditable' or ''}" id="${grp_row.get('groups_id')}" parent_grp_id="${grp_row.get('group_by_id')}"
114
114
                        record="${ch.get('id')}" style="cursor: pointer; display: none;">
 
115
                         % for field, field_attrs in hiddens:
 
116
                            % if field in ch:
 
117
                                ${ch[field].display()}
 
118
                            % endif
 
119
                         % endfor
115
120
                        % if editable:
116
121
                            <td class="grid-cell">
 
122
                                % if not ch.get('id') or ch.get('id') not in noteditable:
117
123
                                <img src="/openerp/static/images/iconset-b-edit.gif" class="listImage" border="0"
118
124
                                     title="${_('Edit')}" onclick="editRecord(${ch.get('id')}, '${source}')"/>
 
125
                                % endif
119
126
                            </td>
120
127
                        % endif
121
128
                        % for i, (field, field_attrs) in enumerate(headers):
132
139
                            % endif
133
140
                        % endfor
134
141
 
135
 
                        % if editable:
 
142
                        % if editable and not hide_delete_button:
136
143
                            <td class="grid-cell selector">
137
144
                                <img src="/openerp/static/images/iconset-b-remove.gif" class="listImage" border="0"
138
145
                                     title="${_('Delete')}" onclick="new ListView('${name}').remove(${ch.get('id')})"/>
221
228
                        var $this = jQuery(this);
222
229
                        if(event.detail != 1
223
230
                         || jQuery(event.target).is('img, input')
 
231
                         || jQuery(event.target).hasClass('noteditable')
224
232
                         || view_type != 'tree'
225
233
                         || !$this.attr('record')) {
226
234
                            return;