[FIX] stock: pack operation lots truncate decimal precision
A bug happens when you enter a number with more than 2 decimal if you unfocus/focus the field it will truncate it. This commit change the decimal precision and use the same digits than other fields used in stock. opw-775791
This commit is contained in:
@@ -268,10 +268,10 @@ class PackOperationLot(models.Model):
|
||||
_description = "Lot/Serial number for pack ops"
|
||||
|
||||
operation_id = fields.Many2one('stock.pack.operation')
|
||||
qty = fields.Float('Done', default=1.0)
|
||||
qty = fields.Float('Done', default=1.0, digits=dp.get_precision('Product Unit of Measure'))
|
||||
lot_id = fields.Many2one('stock.production.lot', 'Lot/Serial Number')
|
||||
lot_name = fields.Char('Lot/Serial Number')
|
||||
qty_todo = fields.Float('To Do', default=0.0)
|
||||
qty_todo = fields.Float('To Do', default=0.0, digits=dp.get_precision('Product Unit of Measure'))
|
||||
plus_visible = fields.Boolean(compute='_compute_plus_visible', default=True)
|
||||
|
||||
_sql_constraints = [
|
||||
|
||||
Reference in New Issue
Block a user