Skip to content

Commit

Permalink
Merge PR #1327 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by LoisRForgeFlow
  • Loading branch information
OCA-git-bot committed Jul 29, 2024
2 parents 4a36914 + c020ba8 commit 5d7c53f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions mrp_component_operation/models/mrp_component_operation.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,4 @@ class MrpComponentOperation(models.Model):
string="Sequence",
help="Gives the sequence order when displaying the list of component operations",
)
active = fields.Boolean(default=True)
24 changes: 24 additions & 0 deletions mrp_component_operation/views/mrp_component_operation_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,18 @@
<field name="arch" type="xml">
<form string="Component Operation">
<sheet>
<widget
name="web_ribbon"
title="Archived"
bg_color="bg-danger"
attrs="{'invisible': [('active', '=', True)]}"
/>
<h1>
<field name="name" string="Reference" />
</h1>
<group name="picking_type" string="Operation Type">
<field name="picking_type_id" />
<field name="active" invisible="1" />
</group>
<group name="operations" string="Operations">
<field name="outgoing_operation" />
Expand Down Expand Up @@ -62,6 +69,23 @@
</field>
</record>

<record id="view_mrp_component_operation_search" model="ir.ui.view">
<field name="name">mrp.component.operation.search</field>
<field name="model">mrp.component.operation</field>
<field name="arch" type="xml">
<search>
<field name="name" string="Reference" />
<separator />
<filter
string="Archived"
name="inactive"
domain="[('active','=',False)]"
/>
<separator />
</search>
</field>
</record>

<record id="action_menu_mrp_component_operation" model="ir.actions.act_window">
<field name="name">Component Operation</field>
<field name="res_model">mrp.component.operation</field>
Expand Down

0 comments on commit 5d7c53f

Please sign in to comment.