Browse Source

[ADD] attrs

12.0
Rémi FRANÇOIS 5 years ago
parent
commit
4ed8d3bfbd
  1. 3
      survey_partner_input/views/res_partner.xml

3
survey_partner_input/views/res_partner.xml

@ -14,7 +14,8 @@
<field string="Completed" name="sent_comp_ratio" widget="percentpie"/> <field string="Completed" name="sent_comp_ratio" widget="percentpie"/>
</button> </button>
<button type="object" name="action_survey_user_input" class="oe_stat_button" icon="fa-pencil-square-o" <button type="object" name="action_survey_user_input" class="oe_stat_button" icon="fa-pencil-square-o"
context="{'search_default_completed':1, 'link_only':1, 'search_default_partner_id': id}">
context="{'search_default_completed':1, 'link_only':1, 'search_default_partner_id': id}"
attrs="{'invisible':[('tot_sent_survey','=',0),('tot_comp_survey','=',0)]}">
<field string="Answers" name="tot_comp_survey" widget="statinfo"/> <field string="Answers" name="tot_comp_survey" widget="statinfo"/>
</button> </button>
</xpath> </xpath>

Loading…
Cancel
Save