diff options
Diffstat (limited to 'addons/purchase_stock/tests/test_purchase_order.py')
| -rw-r--r-- | addons/purchase_stock/tests/test_purchase_order.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/purchase_stock/tests/test_purchase_order.py b/addons/purchase_stock/tests/test_purchase_order.py index ddb5dd80ceb..7d98d24792e 100644 --- a/addons/purchase_stock/tests/test_purchase_order.py +++ b/addons/purchase_stock/tests/test_purchase_order.py @@ -106,6 +106,7 @@ class TestPurchaseOrder(ValuationReconciliationTestCommon): #After Receiving all products create vendor bill. move_form = Form(self.env['account.move'].with_context(default_move_type='in_invoice')) + move_form.invoice_date = move_form.date move_form.partner_id = self.partner_a move_form.purchase_id = self.po self.invoice = move_form.save() @@ -136,6 +137,7 @@ class TestPurchaseOrder(ValuationReconciliationTestCommon): self.assertEqual(self.po.order_line[0].qty_received, 3.0, 'Purchase: delivered quantity should be 3.0 instead of "%s" after picking return' % self.po.order_line[0].qty_received) #Create vendor bill for refund qty move_form = Form(self.env['account.move'].with_context(default_move_type='in_refund')) + move_form.invoice_date = move_form.date move_form.partner_id = self.partner_a move_form.purchase_id = self.po self.invoice = move_form.save() |
