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] sale_loyalty_industry #2859

Closed

Conversation

santostelmo
Copy link
Contributor

This module allow to restrict the industries in which the sale loyalty program applies.

Copy link
Contributor

@simahawk simahawk left a comment

Choose a reason for hiding this comment

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

LG overall, minor remark for tests

2,
"The promo offer is not applied to industry_B.",
)
self.immediate_promotion_program.industry_ids = self.industry_B
Copy link
Contributor

Choose a reason for hiding this comment

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

these are all different cases, right? If yes, rule of thumb: define 1 method for each of them unless it gets too complicated w/ the setup

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done splitted unit test in several ones

[IMP] sale_loyalty_industry: Split unit tests
@santostelmo
Copy link
Contributor Author

Moved that PR to sale-promotion: OCA/sale-promotion#197

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants