Mayur Maheshwari(OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-bug-925351-mma into
lp:openobject-addons.
Requested reviews:
Mayur Maheshwari(OpenERP) (mma-openerp)
Raphael Collet (OpenERP) (rco-openerp)
Rucha (Open ERP) (rpa-openerp)
Related bugs:
Bug #925351 in OpenERP Addons: "6.1.0 RC1 mrp MO wrong destination location
for finished product"
https://bugs.launchpad.net/openobject-addons/+bug/925351
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-925351-mma/+merge/91642
Hello,
stock : set a destination location for move
Thanks.
mma
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-925351-mma/+merge/91642
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-925351-mma.
=== modified file 'stock/test/shipment.yml'
--- stock/test/shipment.yml 2012-01-31 13:36:57 +0000
+++ stock/test/shipment.yml 2012-02-10 09:36:21 +0000
@@ -189,19 +189,17 @@
!python {model: stock.location}: |
ctx = {'product_id': ref('product_icecream')}
refrigerator_location = self.browse(cr, uid, ref('location_refrigerator'), context=ctx)
- assert refrigerator_location.stock_real == 131.96, 'stock does not correspond in refrigerator location.'
+ assert refrigerator_location.stock_real == 135.96, 'stock does not correspond in refrigerator location.'
scrapped_location = self.browse(cr, uid, ref('stock_location_scrapped'), context=ctx)
assert scrapped_location.stock_real == 0.010*4, 'scraped stock does not correspond in scrap location.'
- production_location = self.browse(cr, uid, ref('location_production'), context=ctx)
- assert production_location.stock_real == 1*4, 'consume stock does not correspond in production location.' #TOFIX: consume stock is not updated in default production location of product.
-
I check availabile stock after consumed and scraped.
-
!python {model: product.product}: |
product = self.browse(cr, uid, ref('product_icecream'), context=context)
- assert product.qty_available == 131.96, "Stock does not correspond."
- assert round(product.virtual_available, 2) == 1.96, "Vitual stock does not correspond."
+ assert product.qty_available == 135.96, "Stock does not correspond."
+ assert round(product.virtual_available, 2) == 5.96, "Vitual stock does not correspond."
-
I trace all incoming lots.
-
@@ -276,5 +274,5 @@
-
!python {model: product.product}: |
product = self.browse(cr, uid, ref('product_icecream'), context=context)
- assert round(product.qty_available, 2) == 1.96, "Stock does not correspond."
- assert round(product.virtual_available, 2) == 1.96, "Vitual stock does not correspond."
+ assert round(product.qty_available, 2) == 5.96, "Stock does not correspond."
+ assert round(product.virtual_available, 2) == 5.96, "Vitual stock does not correspond."
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp