account_move_line_view.xml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <!-- <record id="view_account_move_line_form" model="ir.ui.view">
  5. <field name="name">Tax Journal Items Tree</field>
  6. <field name="model">account.move.line</field>
  7. <field name="inherit_id" ref="account.view_move_line_form"/>
  8. <field name="arch" type="xml">
  9. <field name="statement_id" position="after">
  10. <field name="tax_settlement_move_id"/>
  11. </field>
  12. </field>
  13. </record> -->
  14. <record id="view_account_move_line_filter" model="ir.ui.view">
  15. <field name="name">Journal Items</field>
  16. <field name="model">account.move.line</field>
  17. <field name="inherit_id" ref="account.view_account_move_line_filter"/>
  18. <field name="arch" type="xml">
  19. <search>
  20. <field name="name" string="Asiento"/>
  21. <filter name="unreconciled" invisible="1" position="after">
  22. <filter string="Unsettled Tax" domain="[('tax_settlement_move_id','=',False), ('tax_code_id', '!=', False)]" help="Unsettled Tax Items" name="unsettled"/>
  23. </filter>
  24. </search>
  25. </field>
  26. </record>
  27. <record id="view_account_move_line_tree" model="ir.ui.view">
  28. <field name="name">Tax Journal Items Tree</field>
  29. <field name="model">account.move.line</field>
  30. <field name="priority" eval="99"/>
  31. <field name="arch" type="xml">
  32. <tree colors="blue:state == 'draft';black:state == 'posted'" string="Tax Journal Items">
  33. <field name="journal_id"/>
  34. <field name="period_id"/>
  35. <field name="date"/>
  36. <field name="name"/>
  37. <field name="ref"/>
  38. <field name="partner_id"/>
  39. <!-- <field name="account_id"/> -->
  40. <!-- <field name="move_id"/> -->
  41. <field name="debit" sum="Total Debit"/>
  42. <field name="credit" sum="Total Credit"/>
  43. <!-- <field name="date_maturity"/> -->
  44. <field name="analytic_account_id" invisible="1" groups="analytic.group_analytic_accounting"/>
  45. <field name="tax_code_id"/>
  46. <field name="tax_amount" sum="Total Tax"/>
  47. <field name="tax_state"/>
  48. <!-- <field name="tax_settlement_move_id"/> -->
  49. <!-- <field name="reconcile_ref" invisible="1"/> -->
  50. <field name="state" invisible="1"/>
  51. <!-- <button name="make_tax_settlement" icon="gtk-go-forward" string="Settle" help="Make a move to settle current tax line" attrs="{'invisible':[('tax_state', '!=', 'to_settle')]}" type="object"/>
  52. <button name="pay_tax_settlement" icon="terp-dolar" string="Pay" attrs="{'invisible':[('tax_state', '!=', 'to_pay')]}" type="object"/> -->
  53. </tree>
  54. </field>
  55. </record>
  56. <record model="ir.actions.act_window" id="action_account_move_line">
  57. <field name="name">Tax Journal Items</field>
  58. <field name="type">ir.actions.act_window</field>
  59. <field name="res_model">account.move.line</field>
  60. <field name="view_id" ref="view_account_move_line_tree"/>
  61. <field name="view_type">form</field>
  62. <field name="view_mode">tree,form</field>
  63. <field name="domain">[('tax_code_id', '!=', False)]</field>
  64. <!-- TODO, tal vez agregar filter "tax_settlement_move_id == false" como un settle -->
  65. <!-- <field name="context">{'search_default_unsettled': 1}</field> -->
  66. </record>
  67. <menuitem name="Análisis de impuestos" action="action_account_move_line" sequence="20" id="menu_account_move_line" parent="eiru_reports.account_parent_menu"/>
  68. </data>
  69. </openerp>
  70. <!-- vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4
  71. -->