[IMP] Show stat even if 0. Filter agreement with partner

This commit is contained in:
Maxime Chambreuil
2019-01-03 14:33:27 -06:00
committed by Vimal Patel
parent 4be8d39d2a
commit 1416e82f84
2 changed files with 2 additions and 2 deletions

View File

@@ -24,7 +24,6 @@
<xpath expr="//div[@name='button_box']" position="inside">
<button name="%(action_mrp_repair_agreement_specific)d"
type="action"
attrs="{'invisible': [('repair_count', '=', 0)]}"
class="oe_stat_button" icon="fa-wrench">
<div class="o_field_widget o_stat_info">
<span class="o_stat_value">

View File

@@ -7,7 +7,8 @@
<field name="inherit_id" ref="mrp_repair.view_repair_order_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='product_id']" position="before">
<field name="agreement_id"/>
<field name="agreement_id"
domain="[('partner_id', '=', partner_id)]"/>
<field name="serviceprofile_id"
domain="[('agreement_id', '=', agreement_id)]"/>
</xpath>