account_tax_analysis_view.xml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <openerp>
  3. <data>
  4. <record id="view_account_move_line_filter_vat_analysis" model="ir.ui.view">
  5. <field name="name">Journal Items Tax</field>
  6. <field name="model">account.move.line</field>
  7. <field eval="32" name="priority"/>
  8. <field name="arch" type="xml">
  9. <search string="Search Journal Items">
  10. <group string="Filters">
  11. <separator orientation="vertical"/>
  12. <filter icon="terp-document-new"
  13. string="Unposted"
  14. domain="[('move_id.state','=','draft')]"
  15. help="Unposted Journal Items"/>
  16. <filter name="posted"
  17. icon="terp-camera_test"
  18. string="Posted"
  19. domain="[('move_id.state','=','posted')]"
  20. help="Posted Journal Items"/>
  21. <separator orientation="vertical"/>
  22. <field name="date"/>
  23. <field name="account_id"/>
  24. </group>
  25. <newline/>
  26. <newline/>
  27. <group expand="1" string="Group By...">
  28. <filter string="Partner" icon="terp-partner"
  29. name="group_by_partner"
  30. domain="[]"
  31. context="{'group_by': 'partner_id'}"/>
  32. <separator orientation="vertical"/>
  33. <filter string="Account"
  34. name="group_by_account"
  35. icon="terp-folder-green"
  36. context="{'group_by': 'account_id'}"/>
  37. <separator orientation="vertical"/>
  38. <filter string="Period"
  39. name="group_by_period"
  40. icon="terp-go-month"
  41. domain="[]"
  42. context="{'group_by': 'period_id'}"/>
  43. <filter string="Journal"
  44. name="group_by_journal"
  45. domain="[]"
  46. context="{'group_by': 'journal_id'}"/>
  47. <filter string="Account / Tax"
  48. name="group_by_account_tax"
  49. icon="terp-folder-green"
  50. domain="[]"
  51. context="{'group_by': ['tax_code_id', 'account_id'] }"/>
  52. <filter string="Tax account"
  53. name="group_by_tax"
  54. icon="terp-go-month"
  55. domain="[]"
  56. context="{'group_by': 'tax_code_id'}"/>
  57. </group>
  58. <newline/>
  59. </search>
  60. </field>
  61. </record>
  62. <record id="view_move_line_tree_tax_analysis" model="ir.ui.view">
  63. <field name="name">account.move.line.tree</field>
  64. <field name="model">account.move.line</field>
  65. <field eval="16" name="priority"/>
  66. <field name="arch" type="xml">
  67. <tree string="Journal Items" editable="top" on_write="on_create_write">
  68. <field name="tax_code_id" />
  69. <field name="name"/>
  70. <field name="ref"/>
  71. <field name="period_id"/>
  72. <field name="date"/>
  73. <field name="partner_id" />
  74. <field name="account_id" domain="[('journal_id','=',journal_id), ('company_id', '=', company_id)]"/>
  75. <field name="debit" sum="Total debit"/>
  76. <field name="credit" sum="Total credit"/>
  77. <field name="tax_amount" sum="Total Taxe"/>
  78. <field name="invoice"/>
  79. <field name="amount_currency"/>
  80. <field name="currency_id"/>
  81. </tree>
  82. </field>
  83. </record>
  84. <record id="action_view_tax_analysis" model="ir.actions.act_window">
  85. <field name="name">Taxes Analysis</field>
  86. <field name="res_model">account.move.line</field>
  87. <field name="view_type">form</field>
  88. <field name="view_mode">tree,form</field>
  89. <field name="context">{'search_default_group_by_account_tax': 1}</field>
  90. <field name="search_view_id" ref="view_account_move_line_filter_vat_analysis"/>
  91. <field name="view_id" ref="view_move_line_tree_tax_analysis"/>
  92. </record>
  93. <record id="view_account_vat_declaration_analysis" model="ir.ui.view">
  94. <field name="name">Análisis de IVA </field>
  95. <field name="model">account.vat.declaration.analysis</field>
  96. <field name="arch" type="xml">
  97. <form string="Taxes Report">
  98. <separator string="Taxes Report" colspan="4"/>
  99. <field name="fiscalyear_id"/>
  100. <separator string="Periods" colspan="4"/>
  101. <field name="period_list" domain="[('fiscalyear_id', '=', fiscalyear_id)]"/>
  102. <footer>
  103. <button name="show_vat" string="Ver líneas de impuestos" type="object" class="oe_highlight"/>
  104. or
  105. <button special="cancel" string="Cancelar" class="oe_link"/>
  106. </footer>
  107. </form>
  108. </field>
  109. </record>
  110. <record id="action_account_vat_declaration_analysis" model="ir.actions.act_window">
  111. <field name="name">Análisis de IVA</field>
  112. <field name="type">ir.actions.act_window</field>
  113. <field name="res_model">account.vat.declaration.analysis</field>
  114. <field name="view_type">form</field>
  115. <field name="view_mode">form</field>
  116. <field name="target">new</field>
  117. <field name="help">This menu print a VAT declaration based on invoices or payments. You can select one or several periods of the fiscal year. Information required for a tax declaration is automatically generated by OpenERP from invoices (or payments, in some countries). This data is updated in real time. That’s very useful because it enables you to preview at any time the tax that you owe at the start and end of the month or quarter.</field>
  118. </record>
  119. <menuitem
  120. name="Análisis de impuestos"
  121. parent="eiru_reports.account_parent_menu"
  122. action="action_account_vat_declaration_analysis"
  123. id="menu_account_vat_declaration_analysis"
  124. icon="STOCK_PRINT"/>
  125. </data>
  126. </openerp>