I would like to add a custom field under the sales configuration here is the pyhton code:
class auto_sales_Settings_saved(models.Model):
_name = 'sale.config.settings.saved'
managerrequired = fields.Boolean(default=False)
officerrequired = fields.Boolean(default=True)
class auto_sales_Settings(models.TransientModel):
_inherit = 'sale.config.settings'
_name = 'sale.config.settings'
default_managerrequired = fields.Boolean(default_model='sale.config.settings.saved')
default_officerrequired = fields.Boolean(default_model='sale.config.settings.saved')
I created the first class to hold the values as TransientModel doesn't save values, Is this the correct way ?
and how can I access the values of these fields from other classes