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.

76 lines
4.0 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
  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="inherit_id" ref="account.account_common_report_view"/>
  12. <field name="arch" type="xml">
  13. <data>
  14. <xpath expr="/form/label[@string='']" position="replace">
  15. <separator string="Trial Balance" colspan="4"/>
  16. <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"/>
  17. </xpath>
  18. <field name="chart_account_id" position='attributes'>
  19. <attribute name="colspan">4</attribute>
  20. </field>
  21. <page name="filters" position="after">
  22. <page string="Accounts Filters" name="accounts">
  23. <separator string="Print only" colspan="4"/>
  24. <field name="account_ids" colspan="4" nolabel="1" domain="[('type', '=', 'view')]">
  25. <tree>
  26. <field name="code"/>
  27. <field name="name"/>
  28. <field name="type"/>
  29. <field name="company_id"/>
  30. </tree>
  31. </field>
  32. </page>
  33. <page name="placeholder"/>
  34. </page>
  35. <page name="journal_ids" position="attributes">
  36. <attribute name="invisible">True</attribute>
  37. </page>
  38. <page name="filters" position="attributes">
  39. <attribute name="string">Time Filters</attribute>
  40. </page>
  41. <field name="period_from" position="attributes">
  42. <attribute name="domain">[('fiscalyear_id', '=', fiscalyear_id), ('special', '=', False)]</attribute>
  43. </field>
  44. <field name="period_to" position="attributes">
  45. <attribute name="domain">[('fiscalyear_id', '=', fiscalyear_id), ('special', '=', False)]</attribute>
  46. </field>
  47. <field name="fiscalyear_id" position="attributes">
  48. <attribute name="attrs">{'required': [('filter', '=', 'filter_opening')]}</attribute>
  49. </field>
  50. </data>
  51. </field>
  52. </record>
  53. <record id="action_account_trial_balance_menu_webkit" model="ir.actions.act_window">
  54. <field name="name">Trial Balance</field>
  55. <field name="type">ir.actions.act_window</field>
  56. <field name="res_model">trial.balance.webkit</field>
  57. <field name="view_type">form</field>
  58. <field name="view_mode">form</field>
  59. <field name="view_id" ref="account_trial_balance_view_webkit"/>
  60. <field name="target">new</field>
  61. </record>
  62. <record model="ir.values" id="action_account_trial_balance_values_webkit">
  63. <field name="model_id" ref="account.model_account_account"/>
  64. <field name="name">Trial Balance</field>
  65. <field name="key2">client_print_multi</field>
  66. <field name="value"
  67. eval="'ir.actions.act_window,' +str(ref('action_account_trial_balance_menu_webkit'))"/>
  68. <field name="key">action</field>
  69. <field name="model">account.account</field>
  70. </record>
  71. </data>
  72. </openerp>