Dear all,
trying to custom change decimal precision for spesific UoM like below:
@api.onchange('product_uom')but got error :
@api.multi
def _onchange_uom(self):
for record in self:
if record.product_uom.name == 'M3':
record.product_qty = fields.Float(string='Quantity',digits=(2,6), required=True)
TypeError: float() argument must be a string or a number, not 'Float'can anyone here give me clue to solve this problem,
kind regards