[MIG] Migrated mrp_progress_button to v12

This commit is contained in:
Sudhir Arya
2018-12-04 14:43:15 +05:30
committed by AaronHForgeFlow
parent 6dd4d711d4
commit 3063248b4b
5 changed files with 29 additions and 26 deletions

View File

@@ -1,15 +1,15 @@
<?xml version="1.0"?>
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<record id="mrp_production_progress_button_form_view" model="ir.ui.view">
<field name="model">mrp.production</field>
<field name="inherit_id" ref="mrp.mrp_production_form_view"/>
<field name="arch" type="xml">
<button name="action_assign" position="after">
<button name="action_progress" attrs="{'invisible': ['|', ('state', '!=', 'confirmed'), ('routing_id', '!=', False)]}"
type="object" string="Mark As Started" class="oe_highlight"/>
</button>
</field>
</record>
<record id="mrp_production_progress_button_form_view" model="ir.ui.view">
<field name="model">mrp.production</field>
<field name="inherit_id" ref="mrp.mrp_production_form_view"/>
<field name="arch" type="xml">
<button name="action_assign" position="after">
<button name="action_progress" attrs="{'invisible': ['|', ('state', '!=', 'confirmed'), ('routing_id', '!=', False)]}"
type="object" string="Mark As Started" class="oe_highlight"/>
</button>
</field>
</record>
</odoo>