[IMP] mrp_component_operation: filter by picking type

This commit is contained in:
DavidJForgeFlow
2023-07-12 14:47:58 +02:00
parent 9d41128875
commit 9a7124d618
5 changed files with 45 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ from odoo import fields, models
class MrpComponentOperation(models.Model):
_name = "mrp.component.operation"
_description = "Component Operation"
_order = "sequence,id"
name = fields.Char(help="Component Operation Reference", required=True)
@@ -58,3 +59,14 @@ class MrpComponentOperation(models.Model):
default="no",
required=True,
)
picking_type_id = fields.Many2one(
"stock.picking.type",
"Operation Type",
domain="[('code', '=', 'mrp_operation')]",
)
sequence = fields.Integer(
string="Sequence",
help="Gives the sequence order when displaying the list of component operations",
)