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

[16.0][IMP] base_tier_validation: support computed state field #970

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

Conversation

antonioburic
Copy link
Member

Computed fields bypass write, so we need to override _write for that case. Also, the current value before the update needs to be fetched from the database because the new value is already set in the cache.

backport of #939

@OCA-git-bot
Copy link
Contributor

Hi @LoisRForgeFlow,
some modules you are maintaining are being modified, check this out!

@antonioburic antonioburic force-pushed the 16.0-imp-base_tier_validation-computed_state_field branch 2 times, most recently from 6e019ed to 56bbea8 Compare November 13, 2024 09:21
Computed fields bypass `write`, so we need to override `_write` for that case.
Also, the current value before the update needs to be fetched from the database
because the new value is already set in the cache.
@antonioburic antonioburic force-pushed the 16.0-imp-base_tier_validation-computed_state_field branch from 56bbea8 to e0d791d Compare November 13, 2024 09:23
@antonioburic antonioburic marked this pull request as ready for review November 13, 2024 09:26
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.

3 participants