mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
we move the is_template field definition and the agreement.type model from the agreement_legal module to the agreement module. The fields are not displayed by default, unless the feature is enabled through a technical feature group, this is configurable in the agreement_sale module (because agreement in itself has no UI, and agreement_legal enables the feature by default)
15 lines
417 B
Python
15 lines
417 B
Python
from odoo import fields, models
|
|
|
|
|
|
class ResConfigSettings(models.TransientModel):
|
|
_inherit = 'res.config.settings'
|
|
|
|
group_use_agreement_type = fields.Boolean(
|
|
'Use agreement types',
|
|
implied_group='agreement.group_use_agreement_type'
|
|
)
|
|
group_use_agreement_template = fields.Boolean(
|
|
'Use agreement template',
|
|
implied_group='agreement.group_use_agreement_template'
|
|
)
|