Skip to content

Commit

Permalink
[FIX] product: default value on required field
Browse files Browse the repository at this point in the history
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 odoo#8561
  • Loading branch information
vro-odoo authored and mart-e committed Sep 17, 2015
1 parent cc9113f commit c2aff47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/product/product.py
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,7 @@ def _calc_qty(self, cr, uid, ids, fields, arg, context=None):
'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),
Expand Down

0 comments on commit c2aff47

Please sign in to comment.