From d675dbaa4c7174591e0e7c1a3caf3e76877312ce Mon Sep 17 00:00:00 2001 From: Ankita Raval Date: Wed, 30 Oct 2019 06:11:02 +0000 Subject: [IMP] account,* : Change type field to move_type in account.move task-id: 2028z813 --- addons/product_margin/tests/test_product_margin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/product_margin/tests') diff --git a/addons/product_margin/tests/test_product_margin.py b/addons/product_margin/tests/test_product_margin.py index 6bcca596b4a..b6eb005ab65 100644 --- a/addons/product_margin/tests/test_product_margin.py +++ b/addons/product_margin/tests/test_product_margin.py @@ -12,7 +12,7 @@ class TestProductMargin(AccountTestCommon): def create_account_invoice(self, invoice_type, partner, product, quantity=0.0, price_unit=0.0): """ Create an invoice as in a view by triggering its onchange methods""" - invoice_form = Form(self.env['account.move'].with_context(default_type=invoice_type)) + invoice_form = Form(self.env['account.move'].with_context(default_move_type=invoice_type)) invoice_form.partner_id = partner with invoice_form.invoice_line_ids.new() as line: line.product_id = product -- cgit v1.2.3