[FIX] product: default value on required field
The qty fields has become computed in 6.1, and the value set by the user is on min_qty. Set default value as it is required. Closes #8561
This commit is contained in:
parent
cc9113f818
commit
c2aff4772e
|
@ -901,7 +901,7 @@ class product_supplierinfo(osv.osv):
|
|||
'company_id':fields.many2one('res.company','Company',select=1),
|
||||
}
|
||||
_defaults = {
|
||||
'qty': lambda *a: 0.0,
|
||||
'min_qty': lambda *a: 0.0,
|
||||
'sequence': lambda *a: 1,
|
||||
'delay': lambda *a: 1,
|
||||
'company_id': lambda self,cr,uid,c: self.pool.get('res.company')._company_default_get(cr, uid, 'product.supplierinfo', context=c),
|
||||
|
|
Loading…
Reference in New Issue