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
Ernesto Tejeda
parent
16e2a53ce3
commit
a4273b0ce2
BIN
stock_picking_report_valued/static/description/icon.png
Normal file
BIN
stock_picking_report_valued/static/description/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 9.2 KiB |
@@ -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 = (
|
||||
|
||||
Reference in New Issue
Block a user