sale_margin_no_onchange: fix digits in field declaration

This commit is contained in:
Alexis de Lattre
2024-03-14 17:19:20 +01:00
parent 8f87df3f3d
commit 18a5c22160

View File

@@ -4,7 +4,6 @@
from odoo import api, fields, models from odoo import api, fields, models
import odoo.addons.decimal_precision as dp
class SaleOrderLine(models.Model): class SaleOrderLine(models.Model):
@@ -16,13 +15,13 @@ class SaleOrderLine(models.Model):
store=True, string='Company Currency') store=True, string='Company Currency')
standard_price_company_currency = fields.Float( standard_price_company_currency = fields.Float(
string='Cost Price in Company Currency', readonly=True, string='Cost Price in Company Currency', readonly=True,
digits=dp.get_precision('Product Price'), digits="Product Price",
help="Cost price in company currency in the unit of measure " help="Cost price in company currency in the unit of measure "
"of the sale order line") "of the sale order line")
standard_price_sale_currency = fields.Float( standard_price_sale_currency = fields.Float(
string='Cost Price in Sale Currency', string='Cost Price in Sale Currency',
compute='_compute_margin', store=True, compute='_compute_margin', store=True,
digits=dp.get_precision('Product Price'), digits="Product Price",
help="Cost price in sale currency in the unit of measure " help="Cost price in sale currency in the unit of measure "
"of the sale order line") "of the sale order line")
margin_sale_currency = fields.Monetary( margin_sale_currency = fields.Monetary(