[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
37
stock_picking_batch_custom/models/res_company.py
Normal file
37
stock_picking_batch_custom/models/res_company.py
Normal 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,
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue