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

[17.0][MIG] sale_order_product_recommendation: Migration to 17.0 #3242

Merged

Conversation

jeer2234
Copy link

standard Migration

@jeer2234 jeer2234 force-pushed the 17.0-mig-sale_order_product_recommendation branch from 6e26886 to 0f87a76 Compare July 20, 2024 02:50
@jeer2234 jeer2234 mentioned this pull request Jul 20, 2024
78 tasks
@OCA-git-bot
Copy link
Contributor

Hi @smaciaosi, @dreispt, @ckolobow,
some modules you are maintaining are being modified, check this out!

@OCA-git-bot
Copy link
Contributor

Sorry @jeer2234 you are not allowed to mark the addon tobe migrated.

To do so you must either have push permissions on the repository, or be a declared maintainer of all modified addons.

If you wish to adopt an addon and become it's maintainer, open a pull request to add your GitHub login to the maintainers key of its manifest.

@rousseldenis
Copy link
Sponsor Contributor

/ocabot migration sale_order_product_recommendation

@OCA-git-bot OCA-git-bot added this to the 17.0 milestone Aug 19, 2024
@dreispt dreispt self-requested a review August 20, 2024 20:04
Copy link
Sponsor Member

@dreispt dreispt left a comment

Choose a reason for hiding this comment

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

There is a problem with the [IMP] sale_order_product_recommendation: pre-commit auto fixes commit - the diff touches a few other modules, and should only make changes to the module being migrated.

@jeer2234 jeer2234 force-pushed the 17.0-mig-sale_order_product_recommendation branch from 0f87a76 to ea26bb3 Compare August 22, 2024 03:47
@jeer2234 jeer2234 requested a review from dreispt August 22, 2024 03:50
@rousseldenis
Copy link
Sponsor Contributor

/ocabot rebase

yajo and others added 17 commits August 22, 2024 07:29
This wizard that you can see now in your quotations will let you add products quickly based on the customer's recent purchase history.
We can't limit results on read_group, because we can't set the same
criteria to order results, and thus the N groups populated might be
not the top ones looked for.
- When a SO is confirmed the button is still visible so the wizard can
be used to add or remove lines and products. The same restrictions that
exist editing the order manually apply to the wizard.
- Improve test declaration inherability
…ok products in recommendation wizard

BTW I fixed a bug that counted products in the active SO as delivered, when it was impossible in most cases. Fixed the test to reflect the new logic.

Co-Authored-By: Jairo Llopis <Yajo@users.noreply.github.com>
Add kanban + form for proper mobile usage.
…fied`

It's better to simply check the flag condition than to keep that field.
…t to product default one

Having a related field to default sale secondary UoM makes this recommendator to not fit
possible different secondary UoM to be used.

This commit fixes this behavior. A refactoring on the main module having a prepare
method hook has been needed.
…hanges

Previous code was not very resilient to possible extra adaptations or require
specific code to be added to the old hook `_trigger_so_line_onchanges`.

With this, we make sure all onchanges are executed thanks to the odoo.tests.Form
class.

We lose a bit of performance, but it's better than to have issues with data not
correctly synchronized.
Ivorra78 and others added 18 commits August 22, 2024 07:29
Currently translated at 100.0% (72 of 72 strings)

Translation: sale-workflow-16.0/sale-workflow-16.0-sale_order_product_recommendation
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_order_product_recommendation/es/
Before this patch, UoM wasn't being properly inherited into generated lines when those lines didn't exist previously in the SO.

Also, changing it manually didn't work as expected in that same case.

This is because the UoM was related to the SOL UoM. But if there was no SOL, it did nothing.

Now it's properly computed. UoM comes from the product if there's no SOL or it can't provide it. The user can change it to other UoM of the same category. The change is propagated when applying the wizard, both when creating lines and updating them. Tests added.

@moduon MT-4472
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

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

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

Translation: sale-workflow-16.0/sale-workflow-16.0-sale_order_product_recommendation
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_order_product_recommendation/it/
Product category was labeled as "Complete name" due to a typo in field definition, which didn't make any sense.

@moduon MT-5404
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: sale-workflow-16.0/sale-workflow-16.0-sale_order_product_recommendation
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_order_product_recommendation/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

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

Translation: sale-workflow-16.0/sale-workflow-16.0-sale_order_product_recommendation
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_order_product_recommendation/pt_BR/
@OCA-git-bot
Copy link
Contributor

Congratulations, PR rebased to 17.0.

@OCA-git-bot OCA-git-bot force-pushed the 17.0-mig-sale_order_product_recommendation branch from ea26bb3 to 5f3e03b Compare August 22, 2024 07:29
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 and functional review

@dreispt
Copy link
Sponsor Member

dreispt commented Aug 22, 2024

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 17.0-ocabot-merge-pr-3242-by-dreispt-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit f300f07 into OCA:17.0 Aug 22, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

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