[IMP] stock_picking_batch_custom: configuraciones de bloqueo por pestaña
This commit is contained in:
parent
05a8908007
commit
18fd73ed1b
7 changed files with 211 additions and 25 deletions
27
stock_picking_batch_custom/models/res_config_settings.py
Normal file
27
stock_picking_batch_custom/models/res_config_settings.py
Normal 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,
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue