[FIX] stock: Inventory adjustment
When importing a csv in Inventory Adjustement, a default product_uom_id is set if there 's no product_uom_id given in the csv. opw:634612
This commit is contained in:
parent
661f76c94a
commit
71b3861a54
|
@ -2832,6 +2832,7 @@ class stock_inventory_line(osv.osv):
|
|||
|
||||
_defaults = {
|
||||
'product_qty': 0,
|
||||
'product_uom_id': lambda self, cr, uid, ctx=None: self.pool['ir.model.data'].get_object_reference(cr, uid, 'product', 'product_uom_unit')[1]
|
||||
}
|
||||
|
||||
def _get_quants(self, cr, uid, line, context=None):
|
||||
|
|
Loading…
Reference in New Issue