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

[MIG] sale_exception: Migration to 18.0 #3359

Open
wants to merge 82 commits into
base: 18.0
Choose a base branch
from

Conversation

matiasperalta1
Copy link
Contributor

No description provided.

@matiasperalta1 matiasperalta1 force-pushed the 18.0-mig-sale_exception branch from 2253491 to e2092d0 Compare October 15, 2024 16:00
@rousseldenis
Copy link
Contributor

@matiasperalta1 Thanks for this. Don't forget to point to the depending PR in this description. Moreover, you can embed that PR here following: https://github.com/OCA/maintainer-tools/wiki/Use-temporary-reference%28s%29-to-another-pull-request%28s%29

This allows to run the tests and runboat to allow functional testing. Thanks

@rousseldenis
Copy link
Contributor

/ocabot migration sale_exception

@OCA-git-bot OCA-git-bot added this to the 18.0 milestone Oct 16, 2024
@OCA-git-bot OCA-git-bot mentioned this pull request Oct 16, 2024
50 tasks
@matiasperalta1 matiasperalta1 force-pushed the 18.0-mig-sale_exception branch 3 times, most recently from 32b16c3 to 8cc6b57 Compare October 21, 2024 15:27
@matiasperalta1
Copy link
Contributor Author

@rousseldenis Thank you! I embed the base exception model in order to test sale exception module

Copy link

@nicolascol nicolascol left a comment

Choose a reason for hiding this comment

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

Functional review OK

@rousseldenis
Copy link
Contributor

@matiasperalta1 Could you check tests ?

atchuthan and others added 16 commits November 27, 2024 16:55
Rule should only count available stock from selected warehouse from sale order.
Without warehouse in context, it currently sums all stock available in all warehouses.
The previous parent menu has an action attached, and with these modules,
it can't be clicked.
* [FIX] sale_exception confirm wizard
* [FIX] add test of test_all_draft_orders & flake8 & readme.rst
* [FIX] improve codecov test
* [FIX] delete odl translation
* [FIX] add Camptocamp to author
* [FIX] readme.rst
Raise SingletonError when you have a recordset with multiple sale order.
This restore the capability to write on multiple sale.order
Currently, it's located at the root menu because. It's a migration bug because the old menu was removed from 11.0.
aliciagaarzo and others added 17 commits November 27, 2024 16:55
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: sale-workflow-16.0/sale-workflow-16.0-sale_exception
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_exception/
Currently translated at 83.7% (36 of 43 strings)

Translation: sale-workflow-16.0/sale-workflow-16.0-sale_exception
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_exception/fr/
Currently translated at 100.0% (43 of 43 strings)

Translation: sale-workflow-16.0/sale-workflow-16.0-sale_exception
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_exception/es/
Currently translated at 100.0% (43 of 43 strings)

Translation: sale-workflow-16.0/sale-workflow-16.0-sale_exception
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_exception/es/
Currently translated at 100.0% (43 of 43 strings)

Translation: sale-workflow-17.0/sale-workflow-17.0-sale_exception
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-17-0/sale-workflow-17-0-sale_exception/it/
Currently translated at 100.0% (43 of 43 strings)

Translation: sale-workflow-17.0/sale-workflow-17.0-sale_exception
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-17-0/sale-workflow-17-0-sale_exception/sv/
Currently translated at 100.0% (43 of 43 strings)

Translation: sale-workflow-17.0/sale-workflow-17.0-sale_exception
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-17-0/sale-workflow-17-0-sale_exception/it/
@matiasperalta1 matiasperalta1 force-pushed the 18.0-mig-sale_exception branch 2 times, most recently from 644e443 to e536671 Compare November 27, 2024 20:04
@matiasperalta1
Copy link
Contributor Author

@rousseldenis The errors in the tests come from the base_exception module, could it be?

sale_exception/tests/test_sale_exception.py Outdated Show resolved Hide resolved
sale_exception/tests/test_sale_exception.py Outdated Show resolved Hide resolved
sale_exception/data/sale_exception_data.xml Outdated Show resolved Hide resolved
# together at the end even if we update the exception_ids many times.
# On previous versions, this could be unoptimized.
(self - records).exception_ids = [(3, rule.id)]
records.exception_ids = [(4, rule.id)]
Copy link
Member

Choose a reason for hiding this comment

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

Please use the appropriate command from fields.Command rather than literal 3, 4 etc.

@rousseldenis
Copy link
Contributor

@matiasperalta1

@matiasperalta1 matiasperalta1 force-pushed the 18.0-mig-sale_exception branch 3 times, most recently from e5d3416 to b44e26b Compare December 5, 2024 15:30
@matiasperalta1 matiasperalta1 force-pushed the 18.0-mig-sale_exception branch from b44e26b to 488de35 Compare December 5, 2024 15:54
@matiasperalta1
Copy link
Contributor Author

@rousseldenis Is it ready to merge?

@StefanRijnhart
Copy link
Member

@matiasperalta1 Please check #3359 (comment). I see you tried replacing 4 with set, but that is not correct. See https://github.com/odoo/odoo/blob/18.0/odoo/fields.py#L4229-L4235.

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.