[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:
Goffin Simon 2015-05-12 12:08:28 +02:00
parent 661f76c94a
commit 71b3861a54
1 changed files with 1 additions and 0 deletions

View File

@ -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):