[FIX] call correct method _post() to post invoices
This commit is contained in:
parent
7ae0739e33
commit
a484858560
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user