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][ADD] pos_loyalty_exclude #1217

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

Conversation

trisdoan
Copy link
Contributor

@trisdoan trisdoan commented Jul 9, 2024

No description provided.

rule.product_ids
or rule.product_category_id
or rule.product_tag_id
or rule.product_domain not in ("[]", "[['sale_ok', '=', True]]")

Choose a reason for hiding this comment

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

is [['sale_ok', '=', True]] intended or do you meant [('sale_ok', '=', True)]

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

Comment on lines 28 to 34
rule.valid_product_ids = self.env["product.product"].search(
[("loyalty_exclude", "=", False)]
)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
rule.valid_product_ids = self.env["product.product"].search(
[("loyalty_exclude", "=", False)]
)
rule.valid_product_ids = self.env["product.product"].search(
[("loyalty_exclude", "=", False), ("available_in_pos", "=", True)], order="id"
)

@trisdoan trisdoan force-pushed the 16.0-add-pos_loyalty_exclude branch from 3140a53 to 8039559 Compare July 16, 2024 02:36
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.

None yet

5 participants