← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 535157] Re: [trunk] Chart of Account Configuration wizard may fail if executed from Accounting > Configuration menu)

 

More info: I think we can solve the problems with the Spanish
localization, so it may use the accounting installation wizard:

About REASON A, I think that it may be worked around by:
  - Allowing the users to skip the fiscal year / period creation (as now there is a single wizard).
  - Overwriting the create_period3 method of the 'account.fiscalyear' object on the Spanish localization (or any localization needing special periods). This should work as long as the installer wizard installs the localization module before creating the fiscal year and periods.

About REASON B: I just seen on the code, that if the module is named
"l10n_es" (instead of l10n_chart_es) OpenERP would suggest Spanish users
to install "Spain - Chart of Accounts 2008" by default. So, with a bit
of refactoring (renaming this module [or better: improving the install
wizard, so it checks for l10n_chart_XX modules too] and removing the
l10n_chart_sp module) we may solve this.

About REASON C: I discovered that if I add an XML like this:

<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
	<record id="config_call_account_template_es" model="ir.actions.todo">
            <field name="name">Crear el plan de cuentas a partir de una plantilla</field>
            <field name="note">Ahora puede crear el plan de cuentas a partir de una de las plantillas instaladas.</field>
            <field name="action_id" ref="account.action_wizard_multi_chart"/>
            <field name="state">open</field>
    	</record>
    </data>
</openerp>

Then the "create chart of accounts from template" step shows during the
installation wizard: So problem C solved.


Note: I'll try to create a 6.0 version of the Spanish chart of accounts with those proposed fixes, but anyway the original problem is still valid: the wizard can not be called directly from the accounting configuration (nor you can not create two chart of accounts without creating two fiscal years!).

-- 
[trunk] Chart of Account Configuration wizard may fail if executed from Accounting > Configuration menu)
https://bugs.launchpad.net/bugs/535157
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP OpenObject.

Status in OpenObject Server: In Progress

Bug description:
It's not possible to use the "Generate chart of Accounts from a Chart Template" wizard (wizard.multi.charts.accounts) directly, it only works if used during the installation.

Full description:

The wizard "Generate chart of Accounts from a Chart Template" of account module inherits of res.config, this wizard not is an installation wizard, when you finish to install account you can generate your accounts with this wizard, the installation or configuration was completed then when you execute this wizard it executes action_next with next button, in first line of this function call to _set_previous_todo(cr, uid, state='done') and in this function (_set_previous_todo) executes:
previous_todo = self._next_action(cr, uid) this function it searches for open ir.actions.todo but as I said before the installation is finised and it doesn't found anything open then the behavior is:
 if not previous_todo:
      raise LookupError(_("Couldn't find previous ir.actions.todo"))

And the wizard doesn't continue. I think it is an bug in this behavior or in the wizard that mustn't inherit of res.config.

Thanks