[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:
Valencia Rodrigues Sah 2015-09-17 15:35:21 +05:30 committed by Martin Trigaux
parent cc9113f818
commit c2aff4772e
1 changed files with 1 additions and 1 deletions

View File

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