Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] [16.0] defuse possible endless loop in groupby rendering #1272

Open
wants to merge 1 commit into
base: 16.0
Choose a base branch
from

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