Purpose ======= While cleaning the stat buttons across all modules, we decided to move the (un)archiving from stat button to actions in the 'Action' dropdown. Specification ============= Remove the 'active' stat buttons in all views
22 lines
892 B
XML
22 lines
892 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<!--
|
|
Analytic Accounts with project
|
|
-->
|
|
<record id="account_analytic_account_view_form_inherit" model="ir.ui.view">
|
|
<field name="name">account.analytic.account.form.inherit</field>
|
|
<field name="model">account.analytic.account</field>
|
|
<field name="inherit_id" ref="analytic.view_account_analytic_account_form"/>
|
|
<field eval="18" name="priority"/>
|
|
<field name="arch" type="xml">
|
|
<div name="button_box" position="inside">
|
|
<button class="oe_stat_button" type="object" name="action_view_projects"
|
|
icon="fa-puzzle-piece" attrs="{'invisible': [('project_count', '=', 0)]}">
|
|
<field string="Projects" name="project_count" widget="statinfo"/>
|
|
</button>
|
|
</div>
|
|
</field>
|
|
</record>
|
|
|
|
</odoo>
|