Skip to content

[19.0][MIG] product_pricelist_alternative: Migration to 19.0#2294

Open
yankinmax wants to merge 11 commits into
OCA:19.0from
camptocamp:19.0-mig-product_pricelist_alternative
Open

[19.0][MIG] product_pricelist_alternative: Migration to 19.0#2294
yankinmax wants to merge 11 commits into
OCA:19.0from
camptocamp:19.0-mig-product_pricelist_alternative

Conversation

@yankinmax
Copy link
Copy Markdown
Contributor

@yankinmax yankinmax commented May 12, 2026

This PR is opened to speed up migration while existing PR is still in draft:

  1. Supersedes (commits are preserved).

@yankinmax
Copy link
Copy Markdown
Contributor Author

Hello @bizzappdev can you pls take a look?

@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(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
string="Alternative pricelists",

)
is_alternative_to_pricelist_ids = fields.Many2many(
comodel_name="product.pricelist",
string="Is alternative to pricelists",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
string="Is alternative to pricelists",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants