|
|
@ -1,7 +1,8 @@ |
|
|
|
<?xml version="1.0" encoding="utf-8"?> |
|
|
|
<odoo> |
|
|
|
|
|
|
|
<record model="ir.actions.act_window" id="action_mrp_production_agreement_specific"> |
|
|
|
<record model="ir.actions.act_window" |
|
|
|
id="action_mrp_production_agreement_specific"> |
|
|
|
<field name="name">Manufacture Orders</field> |
|
|
|
<field name="type">ir.actions.act_window</field> |
|
|
|
<field name="res_model">mrp.production</field> |
|
|
@ -9,8 +10,8 @@ |
|
|
|
<field name="view_mode">tree,form</field> |
|
|
|
<field name="domain">[('agreement_id', '=', active_id)]</field> |
|
|
|
<field name="help" type="html"> |
|
|
|
<p class="oe_view_nocontent_create"> |
|
|
|
Create MOs |
|
|
|
<p class="oe_view_nocontent_create"> |
|
|
|
Create MOs |
|
|
|
</p> |
|
|
|
</field> |
|
|
|
</record> |
|
|
@ -21,9 +22,15 @@ |
|
|
|
<field name="inherit_id" ref="agreement.partner_agreement_form_view"/> |
|
|
|
<field name="arch" type="xml"> |
|
|
|
<xpath expr="//div[@name='button_box']" position="inside"> |
|
|
|
<button name="%(action_mrp_production_agreement_specific)d" type="action" attrs="{'invisible': [('mo_count', '=', 0)]}" class="oe_stat_button" icon="fa-wrench"> |
|
|
|
<button name="%(action_mrp_production_agreement_specific)d" |
|
|
|
type="action" |
|
|
|
attrs="{'invisible': [('mo_count', '=', 0)]}" |
|
|
|
class="oe_stat_button" icon="fa-wrench"> |
|
|
|
<div class="o_field_widget o_stat_info"> |
|
|
|
<span class="o_stat_value"><field name="mo_count" widget="statinfo" nolabel="1"/></span> |
|
|
|
<span class="o_stat_value"> |
|
|
|
<field name="mo_count" widget="statinfo" |
|
|
|
nolabel="1"/> |
|
|
|
</span> |
|
|
|
<span class="o_stat_text">MOs</span> |
|
|
|
</div> |
|
|
|
</button> |
|
|
|