mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
[MIG] mrp_multi_level: Migration to 17.0
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
name="web_ribbon"
|
||||
title="Archived"
|
||||
bg_color="bg-danger"
|
||||
attrs="{'invisible': [('active', '=', True)]}"
|
||||
invisible="active"
|
||||
/>
|
||||
<label for="name" class="oe_edit_only" />
|
||||
<h1>
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
<field name="supply_method" />
|
||||
<field
|
||||
name="main_supplier_id"
|
||||
attrs="{'invisible': [('supply_method', '!=', 'buy')]}"
|
||||
invisible="supply_method != 'buy'"
|
||||
/>
|
||||
<field name="date" />
|
||||
</group>
|
||||
@@ -53,7 +53,7 @@
|
||||
<field name="final_on_hand_qty" />
|
||||
<field name="to_procure" />
|
||||
<button
|
||||
attrs="{'invisible': [('planned_order_ids', '=', [])]}"
|
||||
invisible="not planned_order_ids"
|
||||
name="action_open_planned_orders"
|
||||
type="object"
|
||||
icon="fa-list"
|
||||
@@ -65,9 +65,9 @@
|
||||
name="%(mrp_multi_level.act_mrp_inventory_procure)d"
|
||||
icon="fa-cogs"
|
||||
type="action"
|
||||
attrs="{'invisible':[('to_procure','<=',0.0)]}"
|
||||
invisible="to_procure <= 0.0"
|
||||
/>
|
||||
<field name="planned_order_ids" invisible="1" />
|
||||
<field name="planned_order_ids" column_invisible="True" />
|
||||
<field name="supply_method" />
|
||||
<field name="main_supplier_id" optional="hide" />
|
||||
<field name="running_availability" />
|
||||
|
||||
@@ -39,40 +39,34 @@
|
||||
<field name="mrp_origin" />
|
||||
<field
|
||||
name="production_id"
|
||||
attrs="{'invisible':[('mrp_origin', '!=', 'mo')]}"
|
||||
invisible="mrp_origin != 'mo'"
|
||||
/>
|
||||
<field
|
||||
name="purchase_order_id"
|
||||
attrs="{'invisible':[('mrp_origin', '!=', 'po')]}"
|
||||
invisible="mrp_origin != 'po'"
|
||||
/>
|
||||
<field
|
||||
name="purchase_line_id"
|
||||
attrs="{'invisible':[('mrp_origin', '!=', 'po')]}"
|
||||
invisible="mrp_origin != 'po'"
|
||||
/>
|
||||
<field
|
||||
name="stock_move_id"
|
||||
attrs="{'invisible':[('mrp_origin', '!=', 'mv')]}"
|
||||
invisible="mrp_origin != 'mv'"
|
||||
/>
|
||||
<field name="name" />
|
||||
<field name="origin" />
|
||||
</group>
|
||||
<group>
|
||||
<field name="mrp_date" />
|
||||
<field
|
||||
name="current_date"
|
||||
attrs="{'invisible': [('current_date', '=', False)]}"
|
||||
/>
|
||||
<field
|
||||
name="state"
|
||||
attrs="{'invisible': [('state', '=', False)]}"
|
||||
/>
|
||||
<field name="current_date" invisible="not current_date" />
|
||||
<field name="state" invisible="not state" />
|
||||
<field
|
||||
name="mrp_order_number"
|
||||
attrs="{'invisible': [('mrp_order_number', '=', False)]}"
|
||||
invisible="not mrp_order_number"
|
||||
/>
|
||||
<field
|
||||
name="parent_product_id"
|
||||
attrs="{'invisible': [('parent_product_id', '=', False)]}"
|
||||
invisible="not parent_product_id"
|
||||
/>
|
||||
<field name="mrp_qty" />
|
||||
<field name="current_qty" />
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
name="action_open_linked_mrp_production"
|
||||
type="object"
|
||||
icon="fa-wrench"
|
||||
attrs="{'invisible':[('mo_count', '=', 0)]}"
|
||||
invisible="mo_count == 0"
|
||||
class="oe_stat_button"
|
||||
>
|
||||
<field name="mo_count" widget="statinfo" string="MOs" />
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
name="web_ribbon"
|
||||
title="Archived"
|
||||
bg_color="bg-danger"
|
||||
attrs="{'invisible': [('active', '=', True)]}"
|
||||
invisible="active"
|
||||
/>
|
||||
<group colspan="4" col="2">
|
||||
<group>
|
||||
@@ -86,7 +86,7 @@
|
||||
string="Get from main supplier"
|
||||
type="object"
|
||||
name="update_min_qty_from_main_supplier"
|
||||
attrs="{'invisible':[('supply_method', '!=', 'buy'), ('main_supplierinfo_id', '=', False)]}"
|
||||
invisible="supply_method != 'buy' and not main_supplierinfo_id"
|
||||
class="oe_link pt-0 oe_inline"
|
||||
/>
|
||||
</span>
|
||||
@@ -96,12 +96,12 @@
|
||||
<field name="supply_method" />
|
||||
<field
|
||||
name="distribution_lead_time"
|
||||
attrs="{'invisible': [('supply_method', 'not in', ('pull', 'push', 'pull_push'))]}"
|
||||
invisible="supply_method not in ('pull', 'push', 'pull_push')"
|
||||
/>
|
||||
<field name="mrp_lead_time" />
|
||||
<field
|
||||
name="main_supplierinfo_id"
|
||||
attrs="{'invisible':[('supply_method', '!=', 'buy')]}"
|
||||
invisible="supply_method != 'buy'"
|
||||
/>
|
||||
</group>
|
||||
</group>
|
||||
|
||||
Reference in New Issue
Block a user