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.

46 lines
2.2 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record id="view_tax_tree_balance" model="ir.ui.view">
  5. <field name="name">account.tax.tree.balance</field>
  6. <field name="model">account.tax</field>
  7. <field eval="100" name="priority"/>
  8. <field name="arch" type="xml">
  9. <tree string="Account Tax" create="false" delete="false">
  10. <field name="name"/>
  11. <field name="description" string="Short Name"/>
  12. <field name="account_id"/>
  13. <field name="balance" sum="Total"></field>
  14. <field name="base_balance" sum="Base Total"></field>
  15. </tree>
  16. </field>
  17. </record>
  18. <record id="view_tax_search_balance" model="ir.ui.view">
  19. <field name="name">account.tax.search.balance</field>
  20. <field name="model">account.tax</field>
  21. <field eval="100" name="priority"/>
  22. <field name="arch" type="xml">
  23. <search string="Account Tax">
  24. <field name="name"/>
  25. <field name="tag_ids"/>
  26. <field name="description" string="Short Name"/>
  27. <field name="type_tax_use"/>
  28. <field name="account_id"/>
  29. <group expand="0" string="Group By">
  30. <filter string="Tax Group" domain="[]" context="{'group_by':'tax_group_id'}"/>
  31. <filter string="Tax Scope" domain="[]" context="{'group_by':'type_tax_use'}"/>
  32. <filter string="Account" domain="[]" context="{'group_by':'account_id'}"/>
  33. </group>
  34. </search>
  35. </field>
  36. </record>
  37. <record id="action_tax_balances_tree" model="ir.actions.act_window">
  38. <field name="name">Tax Balances</field>
  39. <field name="res_model">account.tax</field>
  40. <field name="view_type">form</field>
  41. <field name="view_mode">tree</field>
  42. <field name="view_id" ref="view_tax_tree_balance"/>
  43. <field name="search_view_id" ref="view_tax_search_balance"/>
  44. </record>
  45. </data>
  46. </openerp>