mirror of
https://github.com/OCA/stock-logistics-reporting.git
synced 2025-02-16 17:13:21 +02:00
[IMP] stock_picking_report_valued: Make tests more resilient
In certain conditions of the DB (i.e. integration tests), previous code doesn't assure the price is going to be 100.
This commit is contained in:
committed by
Sergio Teruel
parent
97c68a6278
commit
e305d17b00
@@ -26,7 +26,11 @@ class TestStockPickingValued(common.SavepointCase):
|
|||||||
})
|
})
|
||||||
cls.sale_order = cls.env['sale.order'].create({
|
cls.sale_order = cls.env['sale.order'].create({
|
||||||
'partner_id': cls.partner.id,
|
'partner_id': cls.partner.id,
|
||||||
'order_line': [(0, 0, {'product_id': cls.product.id})],
|
'order_line': [(0, 0, {
|
||||||
|
'product_id': cls.product.id,
|
||||||
|
'price_unit': 100,
|
||||||
|
'product_uom_qty': 1,
|
||||||
|
})],
|
||||||
'company_id': cls.env.user.company_id.id,
|
'company_id': cls.env.user.company_id.id,
|
||||||
})
|
})
|
||||||
cls.sale_order.company_id.tax_calculation_rounding_method = (
|
cls.sale_order.company_id.tax_calculation_rounding_method = (
|
||||||
|
|||||||
Reference in New Issue
Block a user