mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
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
12 lines
330 B
Python
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
|
|
)
|