2
0

[FIX] call correct method _post() to post invoices

This commit is contained in:
Miquel Raïch 2021-12-16 14:55:32 +01:00 committed by Andrea Stirpe
parent 7ae0739e33
commit a484858560

View File

@ -197,7 +197,7 @@ class TestAccountMoveLinePurchaseInfo(common.TransactionCase):
f.partner_id = purchase.partner_id f.partner_id = purchase.partner_id
f.purchase_id = purchase f.purchase_id = purchase
invoice = f.save() invoice = f.save()
invoice.action_post() invoice._post()
purchase.flush() purchase.flush()
for aml in invoice.invoice_line_ids: for aml in invoice.invoice_line_ids: