Hello,
I want to override the price field from decimal.precision, but It didn't work with that:
Why is that so? Can someone help me?
Edit: Is the _name variable required when I only want to override a field on a model?
from odoo import api, fields, models, tools, _
import odoo.addons.decimal_precision as dp
class SupplierInfo(models.Model):
_inherit = 'product.supplierinfo'
price = fields.Float('Price', default=0.0, digits=dp.get_precision('Product Buy Price'), required=True, help="The price to purchase a PRODUCT")