Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@thomaspaulb
Copy link

Description of the issue/feature this PR addresses:

The default Odoo Journal Items view (account.move.line tree view) contains a component to add a button next to the partner name on the grouping header. When one of the custom modules defines a field called "partner_id" on the "res.partner" model, an endless loop occurs, because the groupby tag is handled again in the nested view postprocessing call and the condition to not handle the groupby tag in the nested call is flawed.

The real solution would probably be to render only the child items underneath the groupby tag, but this solution works also.

Current behavior before PR:

If your custom module defines 'partner_id' field on 'res.partner', the default Journal Items tree view in Odoo breaks. This is just one of the examples that can go wrong, there are sure to be others.

Desired behavior after PR is merged:

Nested groupby calls are broken off and this bug does not happen anymore.


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

The default Odoo Journal Items view (account.move.line tree view) contains
a <groupby> component to add a button next to the partner name on the grouping
header. When one of the custom modules defines a field called "partner_id" on
the "res.partner" model, an endless loop occurs, because the groupby tag
is handled again in the nested view postprocessing call and the condition to
not handle the groupby tag in the nested call is flawed.

The real solution would probably be to render only the child items underneath
the groupby tag, but this solution works also.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant