|
9 | 9 | 'Overridden views': ['The below standard views have been overriden with their original content during the migration because the changes made in them were no longer valid.', '%(xml_id)s'],
|
10 | 10 | 'Disabled views': ['The below custom views have been disabled during the migration because they were no longer valid.', '%(name)s'],
|
11 | 11 | }"/>
|
12 |
| - <t t-set="view_action_link" t-value="'web?debug=1#view_type=form&model=ir.ui.view&action=%s&id=%%s' % action_view_id"/> |
13 | 12 | <t t-set="message_type" t-value="view_message_types[category]"/>
|
14 | 13 | <li><details t-if="messages[category]">
|
15 | 14 | <summary>
|
|
22 | 21 | <t t-if="view.get('copy_id')">
|
23 | 22 | <t t-esc="message_type[1] % view"/>
|
24 | 23 | &nbsp;
|
25 |
| - <a t-att-href="view_action_link % view['id']" target="_blank">Original</a> |
| 24 | + <t t-raw="get_anchor_link_to_record('ir.ui.view', view['id'], 'Original', action_id=action_view_id)"/> |
26 | 25 | &nbsp;
|
27 |
| - <a t-att-href="view_action_link % view['copy_id']" target="_blank">Copy</a> |
| 26 | + <t t-raw="get_anchor_link_to_record('ir.ui.view', view['copy_id'], 'Copy', action_id=action_view_id)"/> |
28 | 27 | </t>
|
29 | 28 | <t t-if="not view.get('copy_id')">
|
30 |
| - <a t-att-href="view_action_link % view['id']" target="_blank"><t t-esc="message_type[1] % view"/></a> |
| 29 | + <t t-raw="get_anchor_link_to_record('ir.ui.view', view['id'], message_type[1] % view, action_id=action_view_id)"/> |
31 | 30 | </t>
|
32 | 31 | </li>
|
33 | 32 | </t>
|
|
39 | 38 | <summary>During the upgrade some fields have been removed. The records below have been automatically corrected.</summary>
|
40 | 39 | <ul>
|
41 | 40 | <t t-foreach="messages[category]" t-as="message">
|
42 |
| - <li><a t-att-href="'web?debug=1#view_type=form&model=%s&id=%s' % (message[0][0], message[0][1])" t-esc="message[0][2]" target="_blank"/></li> |
| 41 | + <t t-raw="get_anchor_link_to_record(*message[0])"/> |
43 | 42 | </t>
|
44 | 43 | </ul>
|
45 | 44 | </details></li>
|
|
0 commit comments