Files
manufacture/mrp_workcenter_hierarchical/wizards/res_config_settings.py
Florian da Costa f2e3b730fb [IMP] mrp_workcenter_hierarchical : put back original behavior allowing to group by top level parent always filling the parent level
Add an option to allow the new behavior : leave parent level empty if the depth of workcenter parents is lower than the parent level number
2024-04-12 14:08:31 +02:00

12 lines
330 B
Python

# 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"
workcenter_parent_level_empty = fields.Boolean(
related="company_id.workcenter_parent_level_empty", store=True, readonly=False
)