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.

49 lines
2.4 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. <button type="object" name="view_tax_lines" string="View tax lines" icon="gtk-find"></button>
  16. <button type="object" name="view_base_lines" string="View base lines" icon="gtk-copy"></button>
  17. </tree>
  18. </field>
  19. </record>
  20. <record id="view_tax_search_balance" model="ir.ui.view">
  21. <field name="name">account.tax.search.balance</field>
  22. <field name="model">account.tax</field>
  23. <field eval="100" name="priority"/>
  24. <field name="arch" type="xml">
  25. <search string="Account Tax">
  26. <field name="name"/>
  27. <field name="tag_ids"/>
  28. <field name="description" string="Short Name"/>
  29. <field name="type_tax_use"/>
  30. <field name="account_id"/>
  31. <group expand="0" string="Group By">
  32. <filter string="Tax Group" domain="[]" context="{'group_by':'tax_group_id'}"/>
  33. <filter string="Tax Scope" domain="[]" context="{'group_by':'type_tax_use'}"/>
  34. <filter string="Account" domain="[]" context="{'group_by':'account_id'}"/>
  35. </group>
  36. </search>
  37. </field>
  38. </record>
  39. <record id="action_tax_balances_tree" model="ir.actions.act_window">
  40. <field name="name">Taxes Balance</field>
  41. <field name="res_model">account.tax</field>
  42. <field name="view_type">form</field>
  43. <field name="view_mode">tree</field>
  44. <field name="view_id" ref="view_tax_tree_balance"/>
  45. <field name="search_view_id" ref="view_tax_search_balance"/>
  46. </record>
  47. </data>
  48. </openerp>