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

[15.0][MIG] stock_request_analytic #1587

Merged
merged 29 commits into from
Mar 20, 2023

Conversation

ps-tubtim
Copy link
Member

@ps-tubtim ps-tubtim commented Dec 22, 2022

@rousseldenis
Copy link
Contributor

@ps-tubtim Thanks for this. FYI, you can follow this guide if you want this PR being tested by github and allowing runboat to be launched : https://github.com/OCA/maintainer-tools/wiki/Use-temporary-reference%28s%29-to-another-pull-request%28s%29

@rousseldenis
Copy link
Contributor

/ocabot migration stock_request_analytic

@rousseldenis
Copy link
Contributor

@ps-tubtim Please pay attention to put version change in migration commit, not in pre-commit stuff one. Thanks

@ps-tubtim ps-tubtim force-pushed the 15.0-mig-stock_request_analytic branch from 9814b29 to 0638e56 Compare December 22, 2022 08:03
@ps-tubtim
Copy link
Member Author

@ps-tubtim Please pay attention to put version change in migration commit, not in pre-commit stuff one. Thanks

Ok, I changed it.

@ps-tubtim ps-tubtim force-pushed the 15.0-mig-stock_request_analytic branch from 0638e56 to f916822 Compare January 30, 2023 18:05
@ps-tubtim ps-tubtim force-pushed the 15.0-mig-stock_request_analytic branch from f916822 to bc0d595 Compare February 16, 2023 04:43
@@ -0,0 +1 @@
account-analytic
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not needed anymore.

If this depends on another pull request, the good method is this one: https://github.com/OCA/maintainer-tools/wiki/Use-temporary-reference%28s%29-to-another-pull-request%28s%29

Either, the addon in account analytic will be found by pip automatically

Copy link
Member Author

Choose a reason for hiding this comment

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

Thank you. I deleted this file.

@ps-tubtim ps-tubtim force-pushed the 15.0-mig-stock_request_analytic branch from bc0d595 to 6bd3af5 Compare February 17, 2023 02:13
stock_request_analytic/models/stock_request.py Outdated Show resolved Hide resolved
stock_request_analytic/models/stock_rule.py Outdated Show resolved Hide resolved
AaronHForgeFlow and others added 16 commits February 22, 2023 18:02
 * clean views.
 * allow to create a stock.request with no analytic account.
 * remove copy attribute in non-stored field.
 * remove non-existing field from compute method.
Currently translated at 100.0% (8 of 8 strings)

Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-stock_request_analytic
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_request_analytic/zh_CN/
Currently translated at 100.0% (8 of 8 strings)

Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-stock_request_analytic
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_request_analytic/pt_BR/
Co-authored-by: Pimolnat Suntian <pimolnats@ecosoft.co.th>

TT28896
@ps-tubtim ps-tubtim force-pushed the 15.0-mig-stock_request_analytic branch 3 times, most recently from dd1b865 to ba32949 Compare February 23, 2023 03:40
@ps-tubtim
Copy link
Member Author

@rousseldenis I already updated my code. Could you review it again?

if self.order_id and self.order_id.default_analytic_account_id:
self.analytic_account_id = self.order_id.default_analytic_account_id
return res
for req in self.sudo():
Copy link
Contributor

Choose a reason for hiding this comment

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

@ps-tubtim Have you try to add 'compute_sudo=True' on field directly ?

Copy link
Member Author

Choose a reason for hiding this comment

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

@rousseldenis I already added compute_sudo=True on field. Please review it again.

@ps-tubtim ps-tubtim force-pushed the 15.0-mig-stock_request_analytic branch from ba32949 to bd7b4c9 Compare February 27, 2023 03:50
Copy link
Member

@Saran440 Saran440 left a comment

Choose a reason for hiding this comment

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

Functional Test 👍

Copy link
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

@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
Contributor

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 15.0-ocabot-merge-pr-1587-by-rousseldenis-bump-patch, awaiting test results.

@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 2d66ab4. 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.