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

[14.0][MIG] sale_order_product_recommendation: Migration to 14.0 #1540

Conversation

ShivamS-SerpentCS
Copy link

No description provided.

yajo and others added 30 commits April 1, 2021 14:53
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.
Updated by Update PO files to match POT (msgmerge) hook in Weblate.
- Improve test declaration inherability
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

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

Translation: sale-workflow-13.0/sale-workflow-13.0-sale_order_product_recommendation
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-13-0/sale-workflow-13-0-sale_order_product_recommendation/
…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 <[email protected]>
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.
@ShivamS-SerpentCS ShivamS-SerpentCS changed the title [MIG] 14.0 mig sale order product recommendation [14.0] [MIG] sale_order_product_recommendation: Migration to 14.0 Apr 1, 2021
@ShivamS-SerpentCS ShivamS-SerpentCS changed the title [14.0] [MIG] sale_order_product_recommendation: Migration to 14.0 [14.0][MIG] sale_order_product_recommendation: Migration to 14.0 Apr 1, 2021
@rousseldenis rousseldenis added this to the 14.0 milestone May 5, 2021
@rousseldenis rousseldenis mentioned this pull request May 5, 2021
87 tasks
"category": "Sales",
"website": "https:/OCA/sale-workflow",
"author": "Tecnativa, Odoo Community Association (OCA)",
"license": "AGPL-3",
"application": False,
"installable": True,
"depends": ["sale"],
"depends": ["sale_management"],
Copy link
Sponsor Contributor

Choose a reason for hiding this comment

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

Why this change ?

@@ -107,7 +107,7 @@ def _generate_recommendations(self):
key=lambda res: (res["product_id_count"], res["qty_delivered"]),
reverse=True,
)
found_dict = {l["product_id"][0]: l for l in found_lines}
found_dict = {L["product_id"][0]: L for L in found_lines}
Copy link
Sponsor Contributor

Choose a reason for hiding this comment

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

If warning was to change, not to go for caps. 😄 'line' is better

@francesco-ooops
Copy link
Contributor

@ShivamS-SerpentCS any plans to finish/merge this one?
Thanks!

@pedrobaeza
Copy link
Member

Please include #1980

@willytal
Copy link

Please include #2065

@rousseldenis
Copy link
Sponsor Contributor

@ShivamS-SerpentCS Do you plan to continue this ?

@github-actions
Copy link

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Mar 26, 2023
@github-actions github-actions bot closed this Apr 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
migration needs review stale PR/Issue without recent activity, it'll be soon closed automatically.
Projects
None yet
Development

Successfully merging this pull request may close these issues.