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.

72 lines
3.8 KiB

8 years ago
8 years ago
8 years ago
8 years ago
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <!-- TRIAL BALANCE -->
  4. <record id="trial_balance_wizard" model="ir.ui.view">
  5. <field name="name">Trial Balance</field>
  6. <field name="model">trial.balance.report.wizard</field>
  7. <field name="arch" type="xml">
  8. <form>
  9. <group name="main_info">
  10. <field name="company_id" options="{'no_create': True}" groups="base.group_multi_company"/>
  11. </group>
  12. <div attrs="{'invisible': [('not_only_one_unaffected_earnings_account', '=', True)]}">
  13. <group name="filters">
  14. <group name="date_range">
  15. <field name="date_range_id" domain="['|',('company_id','=',company_id), ('company_id','=',False)]"/>
  16. <field name="date_from"/>
  17. <field name="date_to"/>
  18. <field name="fy_start_date" invisible="1"/>
  19. </group>
  20. <group name="other_filters">
  21. <field name="target_move" widget="radio"/>
  22. <field name="hide_account_balance_at_0"/>
  23. <field name="show_partner_details"/>
  24. <field name="hierarchy_on" widget="radio" attrs="{'invisible':[('show_partner_details','=',True)]}"/>
  25. <field name="foreign_currency"/>
  26. </group>
  27. </group>
  28. <label for="partner_ids" attrs="{'invisible':[('show_partner_details','!=',True)]}"/>
  29. <field name="partner_ids" nolabel="1" options="{'no_create': True}" attrs="{'invisible':[('show_partner_details','!=',True)]}"/>
  30. <group attrs="{'invisible':[('show_partner_details','!=',True)]}"/>
  31. <label for="account_ids"/>
  32. <group col="4">
  33. <field name="receivable_accounts_only"/>
  34. <field name="payable_accounts_only"/>
  35. </group>
  36. <field name="account_ids" widget="many2many_tags" nolabel="1" options="{'no_create': True}"/>
  37. </div>
  38. <div attrs="{'invisible': [('not_only_one_unaffected_earnings_account', '=', False)]}">
  39. <field name="not_only_one_unaffected_earnings_account" invisible="1"/>
  40. <group/>
  41. <h4>Trial Balance can be computed only if selected company have only one unaffected earnings account.</h4>
  42. <group/>
  43. </div>
  44. <footer>
  45. <div attrs="{'invisible': [('not_only_one_unaffected_earnings_account', '=', True)]}">
  46. <button name="button_export_html" string="View"
  47. type="object" default_focus="1" class="oe_highlight"/>
  48. or
  49. <button name="button_export_pdf" string="Export PDF" type="object"/>
  50. or
  51. <button name="button_export_xlsx" string="Export XLSX" type="object"/>
  52. or
  53. <button string="Cancel" class="oe_link" special="cancel" />
  54. </div>
  55. <div attrs="{'invisible': [('not_only_one_unaffected_earnings_account', '=', False)]}">
  56. <button string="Cancel" class="oe_link" special="cancel" />
  57. </div>
  58. </footer>
  59. </form>
  60. </field>
  61. </record>
  62. <act_window id="action_trial_balance_wizard"
  63. name="Trial Balance"
  64. res_model="trial.balance.report.wizard"
  65. view_type="form"
  66. view_mode="form"
  67. view_id="trial_balance_wizard"
  68. target="new" />
  69. </odoo>