You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
1.1 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Copyright 2018 ACSONE SA/NV.
  4. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  5. -->
  6. <odoo>
  7. <record id="account_analytic_account_recurring_form_form"
  8. model="ir.ui.view">
  9. <field name="model">account.analytic.account</field>
  10. <field name="inherit_id"
  11. ref="contract.account_analytic_account_recurring_form_form"/>
  12. <field name="arch" type="xml">
  13. <xpath expr="//div[@name='button_box']" position="inside">
  14. <button class="oe_stat_button" name="action_view_sales_orders"
  15. type="object" icon="fa-edit"
  16. attrs="{'invisible': [('sale_order_count', '=', 0)]}">
  17. <div class="o_field_widget o_stat_info">
  18. <span class="o_stat_value">
  19. <field name="sale_order_count"/>
  20. </span>
  21. <span class="o_stat_text">Sale Orders</span>
  22. </div>
  23. </button>
  24. </xpath>
  25. </field>
  26. </record>
  27. </odoo>