From a4aa4e5c7532630f76c1fe320ee3371084c120ff Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Tue, 30 Jun 2015 14:34:55 +0200 Subject: [PATCH] [FIX] stock: product_qty compute field priority. This rev. is related to 279f225cf06da7c1dac8627c656cc3fca47d4ca8. The `product_qty` computation priority should be important, as other compute fields depends on it such as `weight` and `weight_net` from the delivery module --- addons/stock/stock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/stock.py b/addons/stock/stock.py index e3a825ee843..2e33ff3ec30 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -1740,7 +1740,7 @@ class stock_move(osv.osv): 'date_expected': fields.datetime('Expected Date', states={'done': [('readonly', True)]}, required=True, select=True, help="Scheduled date for the processing of this move"), 'product_id': fields.many2one('product.product', 'Product', required=True, select=True, domain=[('type', '<>', 'service')], states={'done': [('readonly', True)]}), 'product_qty': fields.function(_quantity_normalize, fnct_inv=_set_product_qty, type='float', digits=0, store={ - _name: (lambda self, cr, uid, ids, c={}: ids, ['product_id', 'product_uom', 'product_uom_qty'], 40), + _name: (lambda self, cr, uid, ids, c={}: ids, ['product_id', 'product_uom', 'product_uom_qty'], 10), }, string='Quantity', help='Quantity in the default UoM of the product'), 'product_uom_qty': fields.float('Quantity', digits_compute=dp.get_precision('Product Unit of Measure'),