Comment 1 for bug 785147

Revision history for this message
Graeme Gellatly (gdgellatly) wrote : Re: [Bug 785147] [NEW] [stable 6.02] Bad code in New Company Financial Setting, or more likely in every localisation module in 6

I worked out why it is different between installing a chart, and using the
server action for the second part of the report. It also call Accounting
Chart Configuration in its list of todos.

Is there any reason in local charts we can't have the same code as the
server action embedded somehow, so periods and fiscals are created as well.

On Fri, May 20, 2011 at 12:38 AM, Graeme Gellatly <<email address hidden>
> wrote:

> Public bug reported:
>
> If you look at the server action for New Company Financial Settings it
> returns all the ir.todo's that match the window action id. Now if you
> look at every single certified l10n module every single one of them in
> the installer declares an ir.todo relating to the window action id
> <field name="action_id" ref="account.action_wizard_multi_chart"/>
>
> As a result, and to test just install a few charts, and you will see you
> get multiple configuration screens of the same stuff when you run that
> action.
>
> So for me there are a couple of options - change the server action so it
> only returns the right id's somehow. Or change every l10n module so it
> doesn't create a new ir.todo and just sets the already installed one to
> open.
>
> Also worth noting, that when you install a chart directly, and click
> start configuration there is no fiscal setup, but when using the server
> action, periods and years are created.
>
> ** Affects: openobject-addons
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are a direct subscriber
> of the bug.
> https://bugs.launchpad.net/bugs/785147
>
> Title:
> [stable 6.02] Bad code in New Company Financial Setting, or more
> likely in every localisation module in 6
>
> Status in OpenERP Modules (addons):
> New
>
> Bug description:
> If you look at the server action for New Company Financial Settings it
> returns all the ir.todo's that match the window action id. Now if you
> look at every single certified l10n module every single one of them in
> the installer declares an ir.todo relating to the window action id
> <field name="action_id" ref="account.action_wizard_multi_chart"/>
>
> As a result, and to test just install a few charts, and you will see
> you get multiple configuration screens of the same stuff when you run
> that action.
>
> So for me there are a couple of options - change the server action so
> it only returns the right id's somehow. Or change every l10n module
> so it doesn't create a new ir.todo and just sets the already installed
> one to open.
>
> Also worth noting, that when you install a chart directly, and click
> start configuration there is no fiscal setup, but when using the
> server action, periods and years are created.
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/openobject-addons/+bug/785147/+subscribe
>