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.

63 lines
2.9 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 type="object" name="view_tax_regular_lines"
  16. string="View tax regular lines" icon="fa-search-plus"/>
  17. <field name="base_balance_regular" sum="Base Total"/>
  18. <button type="object" name="view_base_regular_lines"
  19. string="View base regular lines" icon="fa-search-plus"/>
  20. <field name="balance_refund" sum="Total"/>
  21. <button type="object" name="view_tax_refund_lines"
  22. string="View tax refund lines" icon="fa-search-plus"/>
  23. <field name="base_balance_refund" sum="Base Total"/>
  24. <button type="object" name="view_base_refund_lines"
  25. string="View base refund lines" icon="fa-search-plus"/>
  26. <field name="balance" sum="Total"/>
  27. <button type="object" name="view_tax_lines"
  28. string="View tax lines" icon="fa-search-plus"/>
  29. <field name="base_balance" sum="Base Total"/>
  30. <button type="object" name="view_base_lines"
  31. string="View base lines" icon="fa-search-plus"/>
  32. </tree>
  33. </field>
  34. </record>
  35. <record id="view_tax_search_balance" model="ir.ui.view">
  36. <field name="name">account.tax.search.balance</field>
  37. <field name="model">account.tax</field>
  38. <field eval="100" name="priority"/>
  39. <field name="arch" type="xml">
  40. <search string="Account Tax">
  41. <field name="name"/>
  42. <field name="description" string="Short Name"/>
  43. <field name="type_tax_use"/>
  44. <group expand="0" string="Group By">
  45. <filter name="tax_group" string="Tax Group" domain="[]" context="{'group_by':'tax_group_id'}"/>
  46. <filter name="tax_scope" string="Tax Scope" domain="[]" context="{'group_by':'type_tax_use'}"/>
  47. </group>
  48. </search>
  49. </field>
  50. </record>
  51. <record id="action_tax_balances_tree" model="ir.actions.act_window">
  52. <field name="name">Taxes Balance</field>
  53. <field name="res_model">account.tax</field>
  54. <field name="view_mode">tree</field>
  55. <field name="domain">[('has_moves', '=', True)]</field>
  56. <field name="view_id" ref="view_tax_tree_balance"/>
  57. <field name="search_view_id" ref="view_tax_search_balance"/>
  58. </record>
  59. </odoo>