mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
fix yaml test by writing route_ids using python instead of record
This commit is contained in:
committed by
Leonardo Pistone
parent
3471e5013f
commit
a7e7c796b2
@@ -60,11 +60,18 @@
|
||||
product = self.browse(cr, uid, ref('product_yogurt'), context=context)
|
||||
assert product.virtual_available == 6, "Stock is not updated."
|
||||
-
|
||||
I set product_12 to MTO
|
||||
I set product_12 to MTO (doesn't work)
|
||||
-
|
||||
!record {model: product.product, id: product.product_product_12}:
|
||||
route_ids:
|
||||
- stock.route_warehouse0_mto
|
||||
-
|
||||
I set MTO for real
|
||||
-
|
||||
!python {model: product.product}: |
|
||||
product = self.browse(cr, uid, ref('product.product_product_12'), context=context)
|
||||
self.write(cr, uid, ref('product.product_product_12'),
|
||||
{'route_ids': [(6, False, [ref('stock.route_warehouse0_mto')])]}, context=context)
|
||||
-
|
||||
And I create a MTO sales order line
|
||||
-
|
||||
|
||||
Reference in New Issue
Block a user