[19.0][MIG] purchase_last_price_info : migrate to 19.0#2851
Open
therbin200 wants to merge 57 commits intoOCA:19.0from
Open
[19.0][MIG] purchase_last_price_info : migrate to 19.0#2851therbin200 wants to merge 57 commits intoOCA:19.0from
therbin200 wants to merge 57 commits intoOCA:19.0from
Conversation
[IMP] <purchase_last_price_info> Deleted dependency [IMP] <purchase_last_price> Changed to avoid initializing to False [IMP] <purchase_last_price_info> Minor changes [IMP] <purchase_last_price_info> added test [IMP] <purchase_last_price_info> OCA required _id added [FIX] <purchase_last_price_info> test fixed [IMP] Update <purchase_last_price_info> New version format and Try me button [IMP] <purchase_last_price_info> Test updated data when purchase.order is confirmed
[ADD] post-init hook [ADD] migration script
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: purchase-workflow-11.0/purchase-workflow-11.0-purchase_last_price_info Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-11-0/purchase-workflow-11-0-purchase_last_price_info/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: purchase-workflow-12.0/purchase-workflow-12.0-purchase_last_price_info Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-12-0/purchase-workflow-12-0-purchase_last_price_info/
Currently translated at 100.0% (7 of 7 strings) Translation: purchase-workflow-12.0/purchase-workflow-12.0-purchase_last_price_info Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-12-0/purchase-workflow-12-0-purchase_last_price_info/zh_CN/
Currently translated at 100.0% (7 of 7 strings) Translation: purchase-workflow-12.0/purchase-workflow-12.0-purchase_last_price_info Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-12-0/purchase-workflow-12-0-purchase_last_price_info/es/
Currently translated at 100.0% (7 of 7 strings) Translation: purchase-workflow-12.0/purchase-workflow-12.0-purchase_last_price_info Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-12-0/purchase-workflow-12-0-purchase_last_price_info/pt_BR/
Currently translated at 100.0% (7 of 7 strings) Translation: purchase-workflow-13.0/purchase-workflow-13.0-purchase_last_price_info Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-13-0/purchase-workflow-13-0-purchase_last_price_info/zh_CN/
Currently translated at 100.0% (7 of 7 strings) Translation: purchase-workflow-13.0/purchase-workflow-13.0-purchase_last_price_info Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-13-0/purchase-workflow-13-0-purchase_last_price_info/de/
Currently translated at 100.0% (7 of 7 strings) Translation: purchase-workflow-13.0/purchase-workflow-13.0-purchase_last_price_info Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-13-0/purchase-workflow-13-0-purchase_last_price_info/fr/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: purchase-workflow-13.0/purchase-workflow-13.0-purchase_last_price_info Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-13-0/purchase-workflow-13-0-purchase_last_price_info/
Currently translated at 100.0% (7 of 7 strings) Translation: purchase-workflow-14.0/purchase-workflow-14.0-purchase_last_price_info Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-14-0/purchase-workflow-14-0-purchase_last_price_info/fr_FR/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: purchase-workflow-16.0/purchase-workflow-16.0-purchase_last_price_info Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-16-0/purchase-workflow-16-0-purchase_last_price_info/
Currently translated at 100.0% (14 of 14 strings) Translation: purchase-workflow-16.0/purchase-workflow-16.0-purchase_last_price_info Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-16-0/purchase-workflow-16-0-purchase_last_price_info/hr/
Currently translated at 100.0% (11 of 11 strings) Translation: purchase-workflow-16.0/purchase-workflow-16.0-purchase_last_price_info Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-16-0/purchase-workflow-16-0-purchase_last_price_info/pt_BR/
Currently translated at 100.0% (11 of 11 strings) Translation: purchase-workflow-16.0/purchase-workflow-16.0-purchase_last_price_info Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-16-0/purchase-workflow-16-0-purchase_last_price_info/es/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: purchase-workflow-16.0/purchase-workflow-16.0-purchase_last_price_info Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-16-0/purchase-workflow-16-0-purchase_last_price_info/
…ency Depending on the installed modules, the company currency may be USD or EUR, affecting the result of these tests. With this PR, the results are adjusted for both cases.
Currently translated at 100.0% (11 of 11 strings) Translation: purchase-workflow-16.0/purchase-workflow-16.0-purchase_last_price_info Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-16-0/purchase-workflow-16-0-purchase_last_price_info/it/
On purchase.order.line creation, `_update_inverses` is called before the value of purchase.order.line.company_id is computed. `_update_inverses` causes Odoo to filter purchase.order.line to find the correct lines to put into the cache, which in turn causes access rights check. And because company_id is not yet computed it fails. Fixing by removing domain from `last_purchase_line_ids` to avoid filtering and filter it later manually.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: purchase-workflow-18.0/purchase-workflow-18.0-purchase_last_price_info Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-18-0/purchase-workflow-18-0-purchase_last_price_info/
Currently translated at 100.0% (11 of 11 strings) Translation: purchase-workflow-18.0/purchase-workflow-18.0-purchase_last_price_info Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-18-0/purchase-workflow-18-0-purchase_last_price_info/tr/
Currently translated at 18.1% (2 of 11 strings) Translation: purchase-workflow-18.0/purchase-workflow-18.0-purchase_last_price_info Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-18-0/purchase-workflow-18-0-purchase_last_price_info/pt/
6c63cf7 to
be00419
Compare
Member
|
/ocabot migration purchase_last_price_info |
Contributor
LoisRForgeFlow
left a comment
There was a problem hiding this comment.
Could you cherry-pick the fix done here #2822 ?
Thanks!
HviorForgeFlow
requested changes
Mar 2, 2026
Member
HviorForgeFlow
left a comment
There was a problem hiding this comment.
Tests are failing
Attend #2851 (review)
Contributor
|
LGTM |
|
Hi @therbin200, tests are failing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.