======= Purpose ======= The company form should be heavily simplified. It's complex to have some settings on the company form, and others on the Settings menu of the related app. It would be much easier to have all settings in Settings menu (res.config) and nothing on the company, even if some of the Settings are multi company. (Stored on the company but set from the Settings menu).
20 lines
594 B
Python
20 lines
594 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class BaseConfigSettings(models.TransientModel):
|
|
_inherit = 'base.config.settings'
|
|
|
|
paperformat_id = fields.Many2one(related="company_id.paperformat_id", string='Paper format *')
|
|
|
|
def edit_external_header(self):
|
|
return self.company_id.edit_external_header()
|
|
|
|
def edit_external_footer(self):
|
|
return self.company_id.edit_external_footer()
|
|
|
|
def edit_internal_header(self):
|
|
return self.company_id.edit_internal_header()
|