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] sale_order_product_recommendation: Migration to 15.0 #2052

Merged

Conversation

cesar-tecnativa
Copy link
Contributor

@cesar-tecnativa cesar-tecnativa commented Jun 6, 2022

@Tecnativa TT36525

@cesar-tecnativa
Copy link
Contributor Author

@sergio-teruel please review

@cesar-tecnativa cesar-tecnativa force-pushed the 15.0-mig-sale_order_product_recommendation branch 2 times, most recently from 0908a2b to f0f3b9e Compare June 6, 2022 16:18
@cesar-tecnativa cesar-tecnativa force-pushed the 15.0-mig-sale_order_product_recommendation branch 2 times, most recently from 011571b to 0e083cd Compare June 8, 2022 15:16
@willytal
Copy link

Please include #2065

@rousseldenis
Copy link
Sponsor Contributor

@cesar-tecnativa Could you fix tests ? Thanks

@cesar-tecnativa cesar-tecnativa force-pushed the 15.0-mig-sale_order_product_recommendation branch from 0e083cd to dbf0d46 Compare June 16, 2022 11:03
@cesar-tecnativa
Copy link
Contributor Author

Please include #2065

Done

@sergio-teruel
Copy link
Contributor

@cesar-tecnativa please... fix the tests

@cesar-tecnativa cesar-tecnativa force-pushed the 15.0-mig-sale_order_product_recommendation branch from 9536fe2 to ae405cc Compare June 28, 2022 08:42
@cesar-tecnativa
Copy link
Contributor Author

@victoralmau Could you please review this PR?

Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

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

Cherry-pick the commit for the new UoM column and put it before the migration

@cesar-tecnativa cesar-tecnativa force-pushed the 15.0-mig-sale_order_product_recommendation branch from ae405cc to 5074f9c Compare June 28, 2022 15:33
@cesar-tecnativa cesar-tecnativa force-pushed the 15.0-mig-sale_order_product_recommendation branch 4 times, most recently from a8933de to f812ab6 Compare June 29, 2022 13:10
@pedrobaeza
Copy link
Member

/ocabot migration sale_order_product_recommendation

@OCA-git-bot OCA-git-bot added this to the 15.0 milestone Jun 29, 2022
@cesar-tecnativa cesar-tecnativa force-pushed the 15.0-mig-sale_order_product_recommendation branch 2 times, most recently from c57bcee to 566d887 Compare June 30, 2022 13:50
@cesar-tecnativa
Copy link
Contributor Author

@chienandalu could you please review this?

@cesar-tecnativa
Copy link
Contributor Author

@LudLaf could you review this?

pedrobaeza and others added 11 commits July 26, 2022 09:45
…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.
For avoiding errors like accessing mail.tracking.value when changing values.
…ct.product model instead of product.template in wizard kanban view.

TT26749
…from listprice or from last sale order.

TT26727
…from listprice or from last sale order. Computed with ORM instead of sql queries

TT26727
… line with last_sale_order price unit from recommendation line

TT27183
…recommendation wizard always sort by times delivered desc (even if the sale order already has any line)
@cesar-tecnativa cesar-tecnativa force-pushed the 15.0-mig-sale_order_product_recommendation branch 2 times, most recently from ad58800 to 5d30bf7 Compare July 26, 2022 07:47
@LudLaf
Copy link

LudLaf commented Jul 26, 2022

@LudLaf could you review this?

Module functionality is working fine.

@pedrobaeza
Copy link
Member

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 15.0-ocabot-merge-pr-2052-by-pedrobaeza-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit e77b005 into OCA:15.0 Jul 26, 2022
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at c233726. Thanks a lot for contributing to OCA. ❤️

@pedrobaeza pedrobaeza deleted the 15.0-mig-sale_order_product_recommendation branch July 26, 2022 16:09
pilarvargas-tecnativa pushed a commit to Tecnativa/sale-workflow that referenced this pull request Feb 7, 2023
Signed-off-by pedrobaeza
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.