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: compute called on project_id field when there is no change #585

Closed
wants to merge 1 commit into from

Conversation

leemannd
Copy link

@leemannd leemannd commented Apr 19, 2023

This is causing the field to be set as computed, but there is no real change

We don't want to compute the field in this case

To propagate the name & project_id on the aal, odoo has added https://github.com/odoo/odoo/pull/106164/files#diff-edc6b8dbe8bb37262518fb2d4e6dafd03a4aff0715a592ee1472c8d198e840ebR73

This is causing the field aal.project_id to be considered as computed, but it is not.
It will then call the @api.depends('project_id',...) on the computation of the unit_amount_rounded (even if there was no change on the value of aal.project_id.

When we create a new invoice or delete it, we don't want to change the value of unit_amount_rounded

This is causing the field to be set as computed, but there is no real change

We don't want to compute the field in this case
@leemannd leemannd marked this pull request as draft April 20, 2023 12:26
@StephaneMangin
Copy link

Superseeded by #590

@leemannd
Copy link
Author

Closing in favor the the PR that superseeds it #590

@simahawk simahawk closed this Nov 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants