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
[10.0] add new module to manage seasonal products #262
Conversation
5dccc09
to
d1cb02d
Compare
2404c1b
to
f33f71e
Compare
@Cedric-Pigeon Is this still applicable ? |
@rousseldenis Yes we still use it |
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. Some comments
product_life_period/__manifest__.py
Outdated
"version": "10.0.1.0.0", | ||
'author': "Acsone SA/NV, Odoo Community Association (OCA)", | ||
"category": "Product", | ||
"website": "http://www.acsone.eu", |
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.
Please change this key
end_life_periods = self.search( | ||
[('end_date', '<=', fields.Date.today())]) | ||
for end_life_period in end_life_periods: | ||
end_life_period.product_ids.write({'state': 'end'}) |
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.
Build product ids set and write on all once.
aeb1281
to
2199d7c
Compare
Change OCA website Add indexes Prefer using set of product ids to write once
2199d7c
to
7747727
Compare
@LoisRForgeFlow Could you update your review ? |
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.
Thank you @Cedric-Pigeon LGTM (Code review only)
This PR has the |
/ocabot merge patch |
This PR looks fantastic, let's merge it! |
Congratulations, your PR was merged at 016b721. Thanks a lot for contributing to OCA. ❤️ |
Coming from #117 and adapted to V10