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

[10.0] add new module to manage seasonal products #262

Merged
merged 4 commits into from Mar 23, 2021

Conversation

Cedric-Pigeon
Copy link
Contributor

@Cedric-Pigeon Cedric-Pigeon commented May 5, 2017

Coming from #117 and adapted to V10

@Cedric-Pigeon Cedric-Pigeon force-pushed the 10.0-product_life_period-cpi branch 2 times, most recently from 5dccc09 to d1cb02d Compare June 2, 2017 08:08
product_life_period/README.rst Outdated Show resolved Hide resolved
product_life_period/README.rst Outdated Show resolved Hide resolved
@rousseldenis
Copy link
Sponsor Contributor

@Cedric-Pigeon Is this still applicable ?

@Cedric-Pigeon
Copy link
Contributor Author

@rousseldenis Yes we still use it

Copy link
Sponsor Contributor

@rousseldenis rousseldenis left a 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

"version": "10.0.1.0.0",
'author': "Acsone SA/NV, Odoo Community Association (OCA)",
"category": "Product",
"website": "http://www.acsone.eu",
Copy link
Sponsor Contributor

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'})
Copy link
Sponsor Contributor

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.

Change OCA website
Add indexes
Prefer using set of product ids to write once
@rousseldenis
Copy link
Sponsor Contributor

@LoisRForgeFlow Could you update your review ?

Copy link
Sponsor Contributor

@lmignon lmignon left a 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)

@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). 🤖

@rousseldenis
Copy link
Sponsor Contributor

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 10.0-ocabot-merge-pr-262-by-rousseldenis-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 33a5a66 into OCA:10.0 Mar 23, 2021
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 016b721. Thanks a lot for contributing to OCA. ❤️

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