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.
@robodoo
Copy link
Contributor

robodoo commented Dec 14, 2024

Pull request status dashboard

@C3POdoo C3POdoo requested review from a team, kmagusiak and rco-odoo and removed request for a team December 14, 2024 13:56
@C3POdoo C3POdoo added the ORM ORM, python Framework related label Dec 14, 2024
@kmagusiak kmagusiak requested review from ryv-odoo and removed request for kmagusiak July 28, 2025 16:02
@ryv-odoo
Copy link
Contributor

Hello @thomaspaulb ,

I don't really get the issue. Can you add an example/test to show clearly the problem ?

(Also it seems that runbot is red, not sure it is related. You should try to rebase)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ORM ORM, python Framework related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants