| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
<record id="account_analytic_account_view_form_inherit" model="ir.ui.view"> |
| 4 |
<field name="name">account.analytic.account.form.inherit</field> |
| 5 |
<field name="model">account.analytic.account</field> |
| 6 |
<field name="inherit_id" ref="analytic.view_account_analytic_account_form"/> |
| 7 |
<field eval="40" name="priority"/> |
| 8 |
<field name="arch" type="xml"> |
| 9 |
<xpath expr="//button[@name='%(analytic.account_analytic_line_action)d']" position="before"> |
| 10 |
<button class="oe_stat_button" type="object" name="action_view_projects" |
| 11 |
icon="fa-puzzle-piece" invisible="project_count == 0"> |
| 12 |
<field string="Projects" name="project_count" widget="statinfo"/> |
| 13 |
</button> |
| 14 |
</xpath> |
| 15 |
<xpath expr="//form" position="attributes"> |
| 16 |
<attribute name="js_class">analytic_account_form_view</attribute> |
| 17 |
</xpath> |
| 18 |
</field> |
| 19 |
</record> |
| 20 |
|
| 21 |
<record id="view_account_analytic_account_list_inherit" model="ir.ui.view"> |
| 22 |
<field name="name">account.analytic.account.list.inherit</field> |
| 23 |
<field name="model">account.analytic.account</field> |
| 24 |
<field name="inherit_id" ref="analytic.view_account_analytic_account_list"/> |
| 25 |
<field name="priority">40</field> |
| 26 |
<field name="arch" type="xml"> |
| 27 |
<xpath expr="//list" position="attributes"> |
| 28 |
<attribute name="js_class">analytic_account_list_view</attribute> |
| 29 |
</xpath> |
| 30 |
<xpath expr="//list" position="inside"> |
| 31 |
<field name="project_count" column_invisible="1"/> |
| 32 |
</xpath> |
| 33 |
</field> |
| 34 |
</record> |
| 35 |
</odoo> |