[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:
Pedro M. Baeza
2018-11-29 12:59:23 +01:00
committed by Ernesto Tejeda
parent 16e2a53ce3
commit a4273b0ce2
2 changed files with 5 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

View File

@@ -26,7 +26,11 @@ class TestStockPickingValued(common.SavepointCase):
})
cls.sale_order = cls.env['sale.order'].create({
'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,
})
cls.sale_order.company_id.tax_calculation_rounding_method = (