[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 Sergio Teruel
parent 97c68a6278
commit e305d17b00

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 = (