~unifield-team/unifield-web/uf10

« back to all changes in this revision

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

  • Committer: jf
  • Date: 2018-08-10 12:51:10 UTC
  • mfrom: (4923.1.1 US-4849-Web)
  • Revision ID: jfb@tempo-consulting.fr-20180810125110-zdr0m5q9d6301ram
US-4849 [FIX] res.log link: get domain, ctx, search view and list view from action_id

lp:~jfb-tempo-consulting/unifield-web/us-4849

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
                            <tr>
10
10
                                <td class="logActions">
11
11
                                    % if log['read_ok']:
12
 
                                    <a href="${py.url('/openerp/form/edit', model=log['res_model'], id=log['res_id'], context=log['context'], domain=log['domain'])}">
 
12
                                    <a href="${py.url('/openerp/form/edit', model=log['res_model'], id=log['res_id'], context=log['context'], domain=log['domain'], **dict((x, log[x]) for x in ['action_id', 'view_ids', 'view_mode'] if log.get(x)))}">
13
13
                                        &rarr; ${log['name']}
14
14
                                    </a>
15
15
                                    % else:
29
29
                                     % for log in logs[5:]:
30
30
                                         <div>
31
31
                                             % if log['read_ok']:
32
 
                                             <a href="${py.url('/openerp/form/edit', model=log['res_model'], id=log['res_id'], context=log['context'], domain=log['domain'])}">
 
32
                                             <a href="${py.url('/openerp/form/edit', model=log['res_model'], id=log['res_id'], context=log['context'], domain=log['domain'], **dict((x, log[x]) for x in ['action_id', 'view_ids', 'view_mode'] if log.get(x)))}">
33
33
                                                &rarr; ${log['name']}
34
34
                                             </a>
35
35
                                             % else:
51
51
                            <tr>
52
52
                                <td class="logActions">
53
53
                                    % if log['read_ok']:
54
 
                                    <a href="${py.url('/openerp/form/edit', model=log['res_model'], id=log['res_id'], context=log['context'], domain=log['domain'])}">
 
54
                                    <a href="${py.url('/openerp/form/edit', model=log['res_model'], id=log['res_id'], context=log['context'], domain=log['domain'], **dict((x, log[x]) for x in ['action_id', 'view_ids', 'view_mode'] if log.get(x)))}">
55
55
                                        &rarr; ${log['name']}
56
56
                                    </a>
57
57
                                    % else: