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.

93 lines
3.8 KiB

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!-- Copyright 2016 Lorenzo Battistini - Agile Business Group
  3. Copyright 2016 Antonio Espinosa <antonio.espinosa@tecnativa.com>
  4. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
  5. <odoo>
  6. <record id="view_tax_tree_balance" model="ir.ui.view">
  7. <field name="name">account.tax.tree.balance</field>
  8. <field name="model">account.tax</field>
  9. <field eval="100" name="priority" />
  10. <field name="arch" type="xml">
  11. <tree string="Account Tax" create="false" delete="false">
  12. <field name="name" />
  13. <field name="description" string="Short Name" />
  14. <field name="balance_regular" sum="Total" />
  15. <button
  16. type="object"
  17. name="view_tax_regular_lines"
  18. string="View tax regular lines"
  19. icon="fa-search-plus"
  20. />
  21. <field name="base_balance_regular" sum="Base Total" />
  22. <button
  23. type="object"
  24. name="view_base_regular_lines"
  25. string="View base regular lines"
  26. icon="fa-search-plus"
  27. />
  28. <field name="balance_refund" sum="Total" />
  29. <button
  30. type="object"
  31. name="view_tax_refund_lines"
  32. string="View tax refund lines"
  33. icon="fa-search-plus"
  34. />
  35. <field name="base_balance_refund" sum="Base Total" />
  36. <button
  37. type="object"
  38. name="view_base_refund_lines"
  39. string="View base refund lines"
  40. icon="fa-search-plus"
  41. />
  42. <field name="balance" sum="Total" />
  43. <button
  44. type="object"
  45. name="view_tax_lines"
  46. string="View tax lines"
  47. icon="fa-search-plus"
  48. />
  49. <field name="base_balance" sum="Base Total" />
  50. <button
  51. type="object"
  52. name="view_base_lines"
  53. string="View base lines"
  54. icon="fa-search-plus"
  55. />
  56. </tree>
  57. </field>
  58. </record>
  59. <record id="view_tax_search_balance" model="ir.ui.view">
  60. <field name="name">account.tax.search.balance</field>
  61. <field name="model">account.tax</field>
  62. <field eval="100" name="priority" />
  63. <field name="arch" type="xml">
  64. <search string="Account Tax">
  65. <field name="name" />
  66. <field name="description" string="Short Name" />
  67. <field name="type_tax_use" />
  68. <group expand="0" string="Group By">
  69. <filter
  70. name="tax_group"
  71. string="Tax Group"
  72. domain="[]"
  73. context="{'group_by':'tax_group_id'}"
  74. />
  75. <filter
  76. name="tax_scope"
  77. string="Tax Scope"
  78. domain="[]"
  79. context="{'group_by':'type_tax_use'}"
  80. />
  81. </group>
  82. </search>
  83. </field>
  84. </record>
  85. <record id="action_tax_balances_tree" model="ir.actions.act_window">
  86. <field name="name">Taxes Balance</field>
  87. <field name="res_model">account.tax</field>
  88. <field name="view_mode">tree</field>
  89. <field name="domain">[('has_moves', '=', True)]</field>
  90. <field name="view_id" ref="view_tax_tree_balance" />
  91. <field name="search_view_id" ref="view_tax_search_balance" />
  92. </record>
  93. </odoo>