[19.0][MIG] product_pricelist_alternative: Migration to 19.0#2294
Open
yankinmax wants to merge 11 commits into
Open
[19.0][MIG] product_pricelist_alternative: Migration to 19.0#2294yankinmax wants to merge 11 commits into
yankinmax wants to merge 11 commits into
Conversation
…th based formula pricelist
Currently translated at 100.0% (13 of 13 strings) Translation: product-attribute-16.0/product-attribute-16.0-product_pricelist_alternative Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_pricelist_alternative/it/
Currently translated at 100.0% (13 of 13 strings) Translation: product-attribute-18.0/product-attribute-18.0-product_pricelist_alternative Translate-URL: https://translation.odoo-community.org/projects/product-attribute-18-0/product-attribute-18-0-product_pricelist_alternative/it/
Contributor
Author
|
Hello @bizzappdev can you pls take a look? |
Ricardoalso
approved these changes
May 13, 2026
vvrossem
approved these changes
May 13, 2026
| @api.depends("is_alternative_to_pricelist_ids") | ||
| def _compute_is_alternative_to_pricelist_count(self): | ||
| groups = self.read_group( | ||
| groups = self.env["product.pricelist"]._read_group( |
Contributor
There was a problem hiding this comment.
Suggested change
| groups = self.env["product.pricelist"]._read_group( | |
| groups = self._read_group( |
|
|
||
| alternative_pricelist_ids = fields.Many2many( | ||
| comodel_name="product.pricelist", | ||
| string="Alternative pricelists", |
Contributor
There was a problem hiding this comment.
Suggested change
| string="Alternative pricelists", |
| ) | ||
| is_alternative_to_pricelist_ids = fields.Many2many( | ||
| comodel_name="product.pricelist", | ||
| string="Is alternative to pricelists", |
Contributor
There was a problem hiding this comment.
Suggested change
| string="Is alternative to pricelists", |
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.
This PR is opened to speed up migration while existing PR is still in draft: