[IMP] stock_picking_batch_custom: configuraciones de bloqueo por pestaña

This commit is contained in:
snt 2026-04-08 18:48:18 +02:00
parent 05a8908007
commit 18fd73ed1b
7 changed files with 211 additions and 25 deletions

View file

@ -0,0 +1,27 @@
# Copyright 2026 Criptomart
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields
from odoo import models
class ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings"
batch_summary_restriction_enabled = fields.Boolean(
related="company_id.batch_summary_restriction_enabled",
readonly=False,
)
batch_summary_restriction_scope = fields.Selection(
related="company_id.batch_summary_restriction_scope",
readonly=False,
)
batch_detailed_restriction_enabled = fields.Boolean(
related="company_id.batch_detailed_restriction_enabled",
readonly=False,
)
batch_detailed_restriction_scope = fields.Selection(
related="company_id.batch_detailed_restriction_scope",
readonly=False,
)