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][FW] [15.0][IMP] product_pricelist_direct_print: Allow printing the products sold to a client from x date #1866

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

Conversation

bosd
Copy link
Contributor

@bosd bosd commented Feb 2, 2025

@OCA-git-bot
Copy link
Contributor

Hi @legalsylvain,
some modules you are maintaining are being modified, check this out!

@bosd bosd marked this pull request as ready for review February 2, 2025 11:47
Comment on lines +280 to +282
domain = expression.AND(
[domain, [("date_order", ">=", self.product_selling_date_threshold)]]
)
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
domain = expression.AND(
[domain, [("date_order", ">=", self.product_selling_date_threshold)]]
)
domain.append(("date_order", ">=", self.product_selling_date_threshold))

I know I review the PR in the previous version and I didn't put this suggestion, but seeing that it's a very simple domain we can save ourselves the use of expression.AND.

Copy link
Contributor

Choose a reason for hiding this comment

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

expression.AND is more explicit. And that is exactly the objective of this function.

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.

5 participants