[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,37 @@
# Copyright 2026 Criptomart
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields
from odoo import models
class ResCompany(models.Model):
_inherit = "res.company"
batch_summary_restriction_enabled = fields.Boolean(
string="Enforce Product Summary Restriction",
default=False,
)
batch_summary_restriction_scope = fields.Selection(
selection=[
("processed", "Only processed products"),
("all", "All summary products"),
],
string="Product Summary Restriction Scope",
default="processed",
required=True,
)
batch_detailed_restriction_enabled = fields.Boolean(
string="Enforce Detailed Operations Restriction",
default=True,
)
batch_detailed_restriction_scope = fields.Selection(
selection=[
("processed", "Only processed lines"),
("all", "All detailed lines"),
],
string="Detailed Operations Restriction Scope",
default="processed",
required=True,
)