[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:
keyur gajjar
2016-08-12 10:08:11 +02:00
committed by David Monjoie
parent ae34fd50c8
commit 21fd4e8fa8
+1 -1
View File
@@ -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 {}