[FIX] product: missing digits on quantities fields

This commit is contained in:
Victor Feyens
2020-03-26 10:27:57 +00:00
parent 097b64075a
commit f3f681a408
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -726,7 +726,7 @@ class SupplierInfo(models.Model):
related='product_tmpl_id.uom_po_id',
help="This comes from the product form.")
min_qty = fields.Float(
'Quantity', default=0.0, required=True,
'Quantity', default=0.0, required=True, digits="Product Unit Of Measure",
help="The quantity to purchase from this vendor to benefit from the price, expressed in the vendor Product Unit of Measure if not any, in the default unit of measure of the product otherwise.")
price = fields.Float(
'Price', default=0.0, digits='Product Price',
+1 -1
View File
@@ -399,7 +399,7 @@ class PricelistItem(models.Model):
'product.category', 'Product Category', ondelete='cascade',
help="Specify a product category if this rule only applies to products belonging to this category or its children categories. Keep empty otherwise.")
min_quantity = fields.Float(
'Min. Quantity', default=0,
'Min. Quantity', default=0, digits="Product Unit Of Measure",
help="For the rule to apply, bought/sold quantity must be greater "
"than or equal to the minimum quantity specified in this field.\n"
"Expressed in the default unit of measure of the product.")