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.

78 lines
4.1 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <!-- inheriting views from more than 2 differents inherited models like
  5. trial.balance.webkit -> account.common.balance.report -> account.common.account.report
  6. is not supported so we have to copy paste the same view for trial balance, balance sheet, profit & loss
  7. -->
  8. <record id="account_trial_balance_view_webkit" model="ir.ui.view">
  9. <field name="name">Trial Balance</field>
  10. <field name="model">trial.balance.webkit</field>
  11. <field name="type">form</field>
  12. <field name="inherit_id" ref="account.account_common_report_view"/>
  13. <field name="arch" type="xml">
  14. <data>
  15. <xpath expr="/form/label[@string='']" position="replace">
  16. <separator string="Trial Balance" colspan="4"/>
  17. <label nolabel="1" colspan="4" string="This report allows you to print or generate a pdf of your trial balance allowing you to quickly check the balance of each of your accounts in a single report"/>
  18. </xpath>
  19. <field name="chart_account_id" position='attributes'>
  20. <attribute name="colspan">4</attribute>
  21. </field>
  22. <page name="filters" position="after">
  23. <page string="Accounts Filters" name="accounts">
  24. <separator string="Print only" colspan="4"/>
  25. <field name="account_ids" colspan="4" nolabel="1" domain="[('type', '=', 'view')]">
  26. <tree>
  27. <field name="code"/>
  28. <field name="name"/>
  29. <field name="type"/>
  30. <field name="company_id"/>
  31. </tree>
  32. </field>
  33. </page>
  34. <page name="placeholder"/>
  35. </page>
  36. <page name="journal_ids" position="attributes">
  37. <attribute name="invisible">True</attribute>
  38. </page>
  39. <page name="filters" position="attributes">
  40. <attribute name="string">Time Filters</attribute>
  41. </page>
  42. <field name="period_from" position="attributes">
  43. <attribute name="domain">[('fiscalyear_id', '=', fiscalyear_id), ('special', '=', False)]</attribute>
  44. </field>
  45. <field name="period_to" position="attributes">
  46. <attribute name="domain">[('fiscalyear_id', '=', fiscalyear_id), ('special', '=', False)]</attribute>
  47. </field>
  48. <field name="fiscalyear_id" position="attributes">
  49. <attribute name="attrs">{'required': [('filter', '=', 'filter_opening')]}</attribute>
  50. </field>
  51. </data>
  52. </field>
  53. </record>
  54. <record id="action_account_trial_balance_menu_webkit" model="ir.actions.act_window">
  55. <field name="name">Trial Balance</field>
  56. <field name="type">ir.actions.act_window</field>
  57. <field name="res_model">trial.balance.webkit</field>
  58. <field name="view_type">form</field>
  59. <field name="view_mode">form</field>
  60. <field name="view_id" ref="account_trial_balance_view_webkit"/>
  61. <field name="target">new</field>
  62. </record>
  63. <record model="ir.values" id="action_account_trial_balance_values_webkit">
  64. <field name="model_id" ref="account.model_account_account"/>
  65. <field name="object" eval="1"/>
  66. <field name="name">Trial Balance</field>
  67. <field name="key2">client_print_multi</field>
  68. <field name="value"
  69. eval="'ir.actions.act_window,' +str(ref('action_account_trial_balance_menu_webkit'))"/>
  70. <field name="key">action</field>
  71. <field name="model">account.account</field>
  72. </record>
  73. </data>
  74. </openerp>