product_template.xml 1.1 KB

12345678910111213141516171819202122
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record id="product_template_only_form_view" model="ir.ui.view">
  5. <field name="model">product.template</field>
  6. <field name="inherit_id" ref="product.product_template_only_form_view"/>
  7. <field name="groups_id" eval="[(4, ref('account.group_account_invoice'))]"/>
  8. <field name="arch" type="xml">
  9. <xpath expr="//div[@name='buttons']" position="inside">
  10. <button class="oe_inline oe_stat_button" name="action_view_pt_supplier_invoice_lines" type="object"
  11. icon="fa-shopping-cart">
  12. <field string="Sup. Inv. Lines" name="sup_inv_lines_count" widget="statinfo"/>
  13. </button>
  14. <button class="oe_inline oe_stat_button" name="action_view_pt_customer_invoice_lines" type="object"
  15. icon="fa-strikethrough">
  16. <field string="Cus. Inv. Lines" name="cus_inv_lines_count" widget="statinfo"/>
  17. </button>
  18. </xpath>
  19. </field>
  20. </record>
  21. </data>
  22. </openerp>