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 conflict with norecompute #13

Closed
wants to merge 120 commits into from

Conversation

kevinkhao
Copy link

@kevinkhao kevinkhao commented Feb 13, 2024

sbejaoui and others added 30 commits November 15, 2023 16:35
Signed-off-by lmignon
Signed-off-by sbidoul
Signed-off-by lmignon
Signed-off-by lmignon
Signed-off-by lmignon
This addon depends on shopinvader_address
Signed-off-by lmignon
Signed-off-by sebastienbeau
Signed-off-by lmignon
In a compute method, we must assign a value to the computed field only if it's different from the original one. Otherwise, the write method will be called every time.
oca-ci and others added 25 commits January 16, 2024 17:37
… /current/update routes

This is done to avoid problems when adding new routes, such as /payable,
that would conflict with /{uuid}.
Keep a more natural behavior.
Preserve the old routes, but set them as deprecated
Use sudo when running the wizard to avoid having to provide any sort of ACL and RR to related records.
Signed-off-by lmignon
Signed-off-by lmignon
Signed-off-by lmignon
Steps to reproduce:

- Perform an update without any existing cart

Exception:

```
TypeError: SaleOrder._create_empty_cart() missing 1 required positional
argument: 'partner_id'
```
This context manager has been deprecated since many versions now, and it's not
doing absolutely anything.

It was originally used to prevent computed fields to be recomputed when their
dependencies are updated, but that's not the case anymore since the apparition
of `flush`, where the recomputation is delayed.

See: https://github.com/odoo/odoo/blob/be4c1502/odoo/api.py#L823-L826
Also: odoo/odoo@9920f20e
Signed-off-by lmignon
Signed-off-by simahawk
@kevinkhao kevinkhao force-pushed the 16.0-add-option-rebased branch from 592538d to 993d33c Compare February 13, 2024 09:32
@kevinkhao kevinkhao closed this Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants