Skip to content

Commit 2a00364

Browse files
committed
[FIX] account: Only set res_field=invoice_pdf_report_file on customer invoice/refunds
1 parent ed5692c commit 2a00364

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

openupgrade_scripts/scripts/account/17.0.1.2/post-migration.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ def _am_update_invoice_pdf_report_file(env):
117117
res_id = am.id
118118
FROM account_move am
119119
WHERE am.message_main_attachment_id = ia.id
120+
AND am.move_type IN ('out_invoice', 'out_refund')
120121
""",
121122
)
122123

0 commit comments

Comments
 (0)