[IMP] sale_stock: display decimals in package warning
Decimals were not taken into account in package warning message while creating so line if the packaging has quantites in decimals.
This commit is contained in:
committed by
David Monjoie
parent
ae34fd50c8
commit
21fd4e8fa8
@@ -199,7 +199,7 @@ class SaleOrderLine(models.Model):
|
||||
return {
|
||||
'warning': {
|
||||
'title': _('Warning'),
|
||||
'message': _("This product is packaged by %d . You should sell %d .") % (pack.qty, newqty),
|
||||
'message': _("This product is packaged by %.2f %s. You should sell %.2f %s.") % (pack.qty, default_uom.name, newqty, self.product_uom.name),
|
||||
},
|
||||
}
|
||||
return {}
|
||||
|
||||
Reference in New Issue
Block a user