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

[16.0][MIG] sale_order_secondary_unit: Migration to 16.0 #2635

Closed
wants to merge 35 commits into from

Conversation

anddago78
Copy link

This module extends the functionality of sale orders to allow sale products in
secondary unit of distinct category.

MT-3490 @moduon @rafaelbn @EmilioPascual @fcvalgar please reviews :)

sergio-teruel and others added 30 commits August 4, 2023 12:59
…his module instead of product_secondary_unit
Added domain to limit `secondary_uom_id` to the one defined in product template
As the test should only test that no change on the UoM quantity is done
when modifying the secondary unit, we remember the existing quantity and
compare it later with the final value, instead of testing against a
fixed value, so any interaction with other modules don't interfere.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: sale-workflow-15.0/sale-workflow-15.0-sale_order_secondary_unit
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-15-0/sale-workflow-15-0-sale_order_secondary_unit/
@anddago78 anddago78 changed the title [16.0][MIG] sale_order_secondary_unit [16.0][MIG] sale_order_secondary_unit: Migration to 16.0 Aug 10, 2023
@rafaelbn
Copy link
Member

/ocabot migration sale_order_secondary_unit

@OCA-git-bot OCA-git-bot added this to the 16.0 milestone Aug 10, 2023
@OCA-git-bot
Copy link
Contributor

The migration issue (#2215) has not been updated to reference the current pull request because a previous pull request (#2486) is not closed.
Perhaps you should check that there is no duplicate work.
CC @remihb

@rafaelbn
Copy link
Member

/ocabot migration sale_order_secondary_unit

@OCA-git-bot OCA-git-bot mentioned this pull request Aug 10, 2023
97 tasks
@rafaelbn rafaelbn requested a review from fcvalgar August 10, 2023 10:13
@rafaelbn
Copy link
Member

CI errors are not related to this module

2021-10-02 15:30:00,000 250 ERROR odoo odoo.addons.sale_order_product_recommendation.tests.test_recommendation: FAIL: RecommendationCaseTests.test_recommendations_last_sale_price_to_sale_order Traceback (most recent call last): File "/__w/sale-workflow/sale-workflow/sale_order_product_recommendation/tests/test_recommendation.py", line 157, in test_recommendations_last_sale_price_to_sale_order self.assertEqual(so_line_prod1.price_unit, 24.50) AssertionError: 25.0 != 24.5

2023-08-10 09:28:40,273 250 ERROR odoo odoo.addons.sale_order_qty_change_no_recompute.tests.test_sale_order_qty_change: FAIL: TestSaleOrderQtyChange.test_sale_line_misc Traceback (most recent call last): File "/__w/sale-workflow/sale-workflow/sale_order_qty_change_no_recompute/tests/test_sale_order_qty_change.py", line 37, in test_sale_line_misc self.assertEqual(self.line_form.price_subtotal, 60) AssertionError: 30.0 != 60

Ready to review!

Copy link

@fcvalgar fcvalgar left a comment

Choose a reason for hiding this comment

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

@rafaelbn
Copy link
Member

Hello @sergio-teruel ! Do you want to take a look! 😄 🙏🏼 ❤️ Thank you!

@sergio-teruel
Copy link
Contributor

I am seeing that this commit from v15 is missing
https:/OCA/sale-workflow/pull/2331/files#diff-4d7e4714e57f20ebf63b3686c00dd4a264e9d3abab40e1b37eafc66f0dcf16e4

Please review your work... all changes are in v15, so I think that your origin is not at date...

@sergio-teruel
Copy link
Contributor

In these commit the test of module sale_order_qty_change_no_recompute was fixed... but in your migration I do not see these fix

@rafaelbn
Copy link
Member

Hello @anddago78 !

Thank you for this migration ❤️

Please:

  • Attend comments of Sergio, I guess to followed the Migration to versión 16 OCA Guidelines, and somthing were wrong in the process. Could you you please repeat the process in the same PR?

  • I've tested the module in Odoo 15 and this PR in Odoo 16 and this PR has a BUG because the "subtotal prices" are not updating when changing the invoicing uom when in Odoo.com runbit it works perfect. I've recorded a video where you can when this BUG and in the las 15 seconds of the video you will see how it works perfect in runbot of odoo.com. Note: in OCA 15 this module updates the price perfectly :-D


Odoo16.-.sale_order_product_secondary_unit.-.rafaelbn.functional.test.mp4

Odoo.15.-.sale_order_product_secondary_unit.-.rafaelbn.functional.test.mp4

Thank you! Let's rock! ⭐ 🚀

@rafaelbn
Copy link
Member

Superseed by #2645

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.