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.

63 lines
2.7 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data noupdate="1">
  4. <!-- Add a server action and a todo action to set accounting options for all companies without popup window -->
  5. <record id="auto_config_charts_action_server" model="ir.actions.server">
  6. <field name="name">Set Accounting Options for all Companies</field>
  7. <field name="condition">True</field>
  8. <field name="type">ir.actions.server</field>
  9. <field name="model_id" ref="account.model_wizard_multi_charts_accounts"/>
  10. <field name="state">code</field>
  11. <field name="code">
  12. self.auto_execute(cr, uid, context=context)
  13. config = self.next(cr, uid, [], context=context) or {}
  14. if config.get('type') not in ('ir.actions.act_window_close',):
  15. action = config
  16. </field>
  17. </record>
  18. <record id="auto_config_charts_action_todo" model="ir.actions.todo">
  19. <field name="action_id" ref="auto_config_charts_action_server"/>
  20. <field name="sequence">10</field>
  21. <field name="type">automatic</field>
  22. <field name="state">open</field>
  23. </record>
  24. <!-- Disable standard Configure Accounting Data wizard -->
  25. <!--<record id="account.account_configuration_installer_todo" model="ir.actions.todo">-->
  26. <!--<field name="state">done</field>-->
  27. <!--</record>-->
  28. <!-- Disable standard Set Accounting Options wizard -->
  29. <!--<record id="account.action_wizard_multi_chart_todo" model="ir.actions.todo">-->
  30. <!--<field name="state">done</field>-->
  31. <!--</record>-->
  32. <!--Main Company -->
  33. <!--<record id="ai-1" model="account.installer">-->
  34. <!--<field name="company_id" ref="base.main_company"/>-->
  35. <!--<field name="charts">l10n_fr</field>-->
  36. <!--<field name="period">month</field>-->
  37. <!--<field name="has_default_company" eval="1"/>-->
  38. <!--</record>-->
  39. <record id="wmca-1" model="wizard.multi.charts.accounts">
  40. <field name="company_id" ref="base.main_company"/>
  41. <field name="only_one_chart_template" eval="1"/>
  42. <field name="complete_tax_set" eval="1"/>
  43. <field name="currency_id" ref="base.EUR"/>
  44. <field name="chart_template_id" ref="l10n_fr.l10n_fr_pcg_chart_template"/>
  45. <field name="sale_tax" ref="l10n_fr.tva_normale"/>
  46. <field name="purchase_tax" ref="l10n_fr.tva_acq_normale"/>
  47. <field name="transfer_account_id" ref="l10n_fr.pcg_58"/>
  48. <field name="code_digits" eval="6"/>
  49. </record>
  50. <!-- Execute wizard multi charts accounts -->
  51. <function model="wizard.multi.charts.accounts" name="auto_execute"/>
  52. </data>
  53. </openerp>