We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3fd78e commit 8050997Copy full SHA for 8050997
account_payment_pro_receiptbook/17.0.0.0/post-migration.py
@@ -24,6 +24,16 @@ def migrate_payment_grup_data(env):
24
"""
25
openupgrade.logged_query(env.cr, query)
26
27
+ query = """
28
+ update account_move am set
29
+ receiptbook_id = ap.receiptbook_id
30
+ from account_payment as ap
31
+ where
32
+ am.payment_id = ap.id and ap.receiptbook_id is not null;
33
+ """
34
+
35
+ openupgrade.logged_query(env.cr, query)
36
37
# popular to_pay_move_lines (m2m field, en post)
38
query = """
39
insert into account_move_line_payment_to_pay_rel (to_pay_line_id, payment_id)
0 commit comments