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.

43 lines
1.9 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. <record id="wmca-1" model="wizard.multi.charts.accounts">
  25. <field name="company_id" ref="base.main_company"/>
  26. <field name="only_one_chart_template" eval="1"/>
  27. <field name="complete_tax_set" eval="1"/>
  28. <field name="currency_id" ref="base.EUR"/>
  29. <field name="chart_template_id" ref="l10n_fr.l10n_fr_pcg_chart_template"/>
  30. <field name="sale_tax" ref="l10n_fr.tva_normale"/>
  31. <field name="purchase_tax" ref="l10n_fr.tva_acq_normale"/>
  32. <field name="transfer_account_id" ref="l10n_fr.pcg_58"/>
  33. <field name="code_digits" eval="6"/>
  34. </record>
  35. <!-- Execute wizard multi charts accounts -->
  36. <function model="wizard.multi.charts.accounts" name="auto_execute"/>
  37. </data>
  38. </openerp>