← 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)

 

** Changed in: openobject-server
       Status: In Progress => Fix Released

-- 
[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 the OpenERP Project Group.

Status in OpenObject Server: Fix Released

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