summaryrefslogtreecommitdiff
path: root/addons/website_sale_stock
diff options
context:
space:
mode:
authorFlorent de Labarre <florent.mirieu@gmail.com>2021-02-06 13:25:01 +0000
committerGitHub <noreply@github.com>2021-02-06 13:25:01 +0000
commita7c4533a9bca17dce436a1f4a495df513fe3ccf1 (patch)
tree7c39d3351110b4bcdcb593a464f01ecac848fb2f /addons/website_sale_stock
parentf2b9a5502f5cf0ee51f193177c679889c18130a9 (diff)
[FIX] website_sale_stock : round quantity with zero decimal
closes odoo/odoo#65670 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Diffstat (limited to 'addons/website_sale_stock')
-rw-r--r--addons/website_sale_stock/models/product_template.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_sale_stock/models/product_template.py b/addons/website_sale_stock/models/product_template.py
index eb7bc12bc99..3a3e206775b 100644
--- a/addons/website_sale_stock/models/product_template.py
+++ b/addons/website_sale_stock/models/product_template.py
@@ -30,7 +30,7 @@ class ProductTemplate(models.Model):
virtual_available = product.with_context(warehouse=website.warehouse_id.id).virtual_available
combination_info.update({
'virtual_available': virtual_available,
- 'virtual_available_formatted': self.env['ir.qweb.field.float'].value_to_html(virtual_available, {'decimal_precision': 'Product Unit of Measure'}),
+ 'virtual_available_formatted': self.env['ir.qweb.field.float'].value_to_html(virtual_available, {'precision': 0}),
'product_type': product.type,
'inventory_availability': product.inventory_availability,
'available_threshold': product.available_threshold,