diff options
| author | Denis Ledoux <dle@odoo.com> | 2015-06-30 14:34:55 +0200 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2015-06-30 14:36:47 +0200 |
| commit | a4aa4e5c7532630f76c1fe320ee3371084c120ff (patch) | |
| tree | b1a1723c67a4b32c03e00a93ae6a95515441b297 | |
| parent | 8656b64e75ff9e30ddd65150169dde5747ce7a4e (diff) | |
[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
| -rw-r--r-- | addons/stock/stock.py | 2 |
1 files changed, 1 insertions, 1 deletions
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'), |
