Skip to content

Conversation

@StefanRijnhart
Copy link
Member

Backport of #2416

Odoo 14 introduced the widescale usage of computed fields with readonly=False. In that case, the compute method functions as a default that can also be used to compute a value some time after the initial creation of the record.

In the OpenUpgrade analysis files, these fields would be misrepresented as computed fields rather than fields with a default function. This change fixes that.

…ted fields

Odoo 14 introduced the widescale usage of computed fields with readonly=False.
In that case, the compute method functions as a default that can also be used
to compute a value some time *after* the initial creation of the record.

In the OpenUpgrade analysis files, these fields would be misrepresented as
computed fields rather than fields with a default function. This change fixes
that.
@StefanRijnhart StefanRijnhart force-pushed the fix/14.0/openupgrade_analysis/compute_readwrite branch from 890e6cf to ed57cae Compare October 19, 2022 16:06
@MiquelRForgeFlow
Copy link
Contributor

Sad it's not retro-compatible haha

@MiquelRForgeFlow
Copy link
Contributor

Oh, this version also has the same problem with letsencrypt as #2416.

@StefanRijnhart
Copy link
Member Author

@MiquelRForgeFlow yes, we should move this code to an oca-upgrade-analysis-lib some time.

@StefanRijnhart
Copy link
Member Author

CI is fixed here: #2433

@pedrobaeza
Copy link
Member

/ocabot merge major

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 14.0-ocabot-merge-pr-2431-by-pedrobaeza-bump-major, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit bbb5020 into OCA:14.0 Oct 19, 2022
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 6931ea8. Thanks a lot for contributing to OCA. ❤️

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.

4 participants