mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
[IMP] mrp_component_operation: filter by picking type
This commit is contained in:
@@ -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",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user