[IMP] convert button into stat button for project

bzr revid: rajmyt@gmail.com-20140320094614-53ix0c0fdgrzbmsc
This commit is contained in:
Randhir Mayatra (OpenERP)
2014-03-20 15:16:14 +05:30
parent 750b2e9084
commit fbb5eea4ba
6 changed files with 56 additions and 34 deletions
@@ -102,9 +102,10 @@
<label for="use_phases"/>
</xpath>
<xpath expr="//div[@name='buttons']" position='inside'>
<button name="%(act_project_phases)d"
string="Phases" type="action"
attrs="{'invisible':[('use_phases','=', 0)]}"/>
<button class="oe_inline oe_stat_button" type="action"
attrs="{'invisible':[('use_phases','=', 0)]}" name="%(act_project_phases)d" icon="fa-qrcode">
<field string="Phases" name="phase_count" widget="statinfo"/>
</button>
</xpath>
</field>
</record>