mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[MIG] Black & Cleanup [IMP] Reviewer Requested Changes [IMP] Black [IMP] Reviewer Suggestion [FIX] Tests [FIX] Multiple Issues - Added 'is_old_version' field to better display old versions. Before these were marked as inactive therefore not showing in the agreement. - 'is_template' field now copies when making a template revision or copying a template. - New Versions now retain original create date. - Moved version/revision and created on/by fields out of footer to top in order to have the save buttons when creating children. - Moved demo data out of data folder into the demo.xml [FIX] demo data [FIX] Revert back to only migration [FIX] Report dynamic field rendering [FIX] Test
38 lines
1.3 KiB
Python
38 lines
1.3 KiB
Python
# Copyright (C) 2018 - TODAY, Open Source Integrators
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class ResConfigSettings(models.TransientModel):
|
|
_inherit = "res.config.settings"
|
|
|
|
module_agreement_maintenance = fields.Boolean(
|
|
string="Manage maintenance agreements and contracts."
|
|
)
|
|
module_agreement_mrp = fields.Boolean(
|
|
string="Link your manufacturing orders to an agreement."
|
|
)
|
|
module_agreement_project = fields.Boolean(
|
|
string="Link your projects and tasks to an agreement."
|
|
)
|
|
module_agreement_repair = fields.Boolean(
|
|
string="Link your repair orders to an agreement."
|
|
)
|
|
module_agreement_rma = fields.Boolean(string="Link your RMAs to an agreement.")
|
|
module_agreement_sale = fields.Boolean(
|
|
string="Create an agreement when the sale order is confirmed."
|
|
)
|
|
module_agreement_sale_subscription = fields.Boolean(
|
|
string="Link your subscriptions to an agreement."
|
|
)
|
|
module_agreement_stock = fields.Boolean(
|
|
string="Link your pickings to an agreement."
|
|
)
|
|
module_fieldservice_agreement = fields.Boolean(
|
|
string="Link your Field Service orders and equipments to an agreement."
|
|
)
|
|
module_agreement_helpdesk = fields.Boolean(
|
|
string="Link your Helpdesk tickets to an agreement."
|
|
)
|