summaryrefslogtreecommitdiff
path: root/addons/product_margin/tests
diff options
context:
space:
mode:
authorAnkita Raval <anr@odoo.com>2019-10-30 06:11:02 +0000
committerJigar Vaghela <jva@odoo.com>2020-02-19 09:09:20 +0000
commitd675dbaa4c7174591e0e7c1a3caf3e76877312ce (patch)
tree40840df0a36cb9a6ba3b918835da2a40a07e3a3b /addons/product_margin/tests
parent8f6bf2087e50020bfad4e336b1d4c5a98a4fa84f (diff)
[IMP] account,* : Change type field to move_type in account.move
task-id: 2028z813
Diffstat (limited to 'addons/product_margin/tests')
-rw-r--r--addons/product_margin/tests/test_product_margin.py2
1 files changed, 1 insertions, 1 deletions
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