Skip to content

Commit d318996

Browse files
authored
Merge pull request #5551 from akretion/17-account-fix_attachment-invoice_pdf_report_file
[17.0][FIX] account: Only set res_field=invoice_pdf_report_file on customer invoice/refunds
2 parents ed5692c + 2a00364 commit d318996

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)