Skip to content
Snippets Groups Projects
Commit 3794846e authored by Yannick Tivisse's avatar Yannick Tivisse
Browse files

[FIX] Trigger onchange manually in test test_sale_expense.py

parent ea0bcfac
Branches
Tags
No related merge requests found
......@@ -15,6 +15,7 @@ class TestSaleExpense(TestSale):
'order_line': [(0, 0, {'name': prod.name, 'product_id': prod.id, 'product_uom_qty': 2, 'product_uom': prod.uom_id.id, 'price_unit': prod.list_price})],
'pricelist_id': self.env.ref('product.list0').id,
})
so._compute_tax_id()
so.action_confirm()
so._create_analytic_account() # normally created at so confirmation when you use the right products
init_price = so.amount_total
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment