[IMP] mrp_progress_button: black, isort, prettier

This commit is contained in:
Bernat Puig Font
2021-10-18 16:07:37 +02:00
committed by AaronHForgeFlow
parent 89fb7ef419
commit 0dd628175c
7 changed files with 87 additions and 61 deletions

View File

@@ -1,13 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<?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="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
name="action_progress"
attrs="{'invisible': ['|', ('state', '!=', 'confirmed'), ('routing_id', '!=', False)]}"
type="object"
string="Mark As Started"
class="oe_highlight"
/>
</button>
</field>
</record>