-
-
Notifications
You must be signed in to change notification settings - Fork 498
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
[15.0][ADD] website_sale_product_publish_date #765
base: 15.0
Are you sure you want to change the base?
[15.0][ADD] website_sale_product_publish_date #765
Conversation
Why not modifying the controller to add a condition to the product search the same as website_blog does? The publish date can be by website, but that's something for the roadmap I think. Finally, I think it can be called |
@pedrobaeza I don't get your point. What part of controller are your mentioning in website_blog? |
The purpose of this module is to publish/publish the product with scheduler, not for reflecting actual publish_date via website or manual. For the product search, this module will not hide any product.(For instance, products may not have expected_publish_date but user can manually publish and will show in e-commerce. They only care about website_publish.). The module intends for the uses who want to publish some products that have a specific time to be published. So, they don't need to be updated manually even if it is late at night. |
aa8f0af
to
e2f66a9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Functional review
e2f66a9
to
8c771bd
Compare
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
20edab8
to
ad4069c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AungKoKoLin1997 As we just talked, can you please look into the possibility of extending website._search_exact() instead of using cron?
ad4069c
to
369d74d
Compare
369d74d
to
0e29ad5
Compare
publish_domain = self._get_publish_date_domain() | ||
combined_domain = expression.AND([base_domain, publish_domain]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should do this only on the product model.
It may also be safer to check website_published
is included in domain_list
.
@pedrobaeza Thanks for the suggestion and for pointing that out. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code review.
publish_domain = self._get_publish_date_domain() | ||
combined_domain = expression.AND([base_domain, publish_domain]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
publish_domain = self._get_publish_date_domain() | |
combined_domain = expression.AND([base_domain, publish_domain]) | |
publish_date_domain = self._get_publish_date_domain() | |
combined_domain = expression.AND([base_domain, publish_date_domain]) |
This PR has the |
0e29ad5
to
c99a8a9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AungKoKoLin1997 Can you please fix the commit message reflecting the module name.
c99a8a9
to
5371b54
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Functional review
5371b54
to
60cd342
Compare
The purpose of this module is to publish and unpublish products in ecommerce with timeframe.
@qrtl