Skip to content

Commit 06085f5

Browse files
aj-fuentesKangOl
andcommitted
[FIX] util/report-migration: avoid invalid opcode in 10.0
The unpacking call use the CALL_FUNCTION_VAR opcode, but it has only been supported with the Python3 support[^1]. ``` ❯ echo 'get_anchor_link_to_record(*message[0])' | python2 -m dis 1 0 LOAD_NAME 0 (get_anchor_link_to_record) 3 LOAD_NAME 1 (message) 6 LOAD_CONST 0 (0) 9 BINARY_SUBSCR 10 CALL_FUNCTION_VAR 0 13 POP_TOP 14 LOAD_CONST 1 (None) 17 RETURN_VALUE ``` See: efc5663 Closes: #61 [^1]: odoo/odoo@6e9d29d#diff-4af16af8fba18ea46e1f800bba43e1736b41e805d645656a0915cb05e5f5cc0fR97-R98 closes #62 Signed-off-by: Christophe Simonis (chs) <[email protected]> Co-authored-by: Christophe Simonis <[email protected]>
1 parent efc5663 commit 06085f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/report-migration.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<summary>During the upgrade some fields have been removed. The records below have been automatically corrected.</summary>
3939
<ul>
4040
<t t-foreach="messages[category]" t-as="message">
41-
<t t-raw="get_anchor_link_to_record(*message[0])"/>
41+
<t t-raw="get_anchor_link_to_record(message[0][0], message[0][1], message[0][2])"/>
4242
</t>
4343
</ul>
4444
</details></li>

0 commit comments

Comments
 (0)