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_elaboration: Migration to v14 #2203

Merged
merged 21 commits into from
Sep 30, 2022

Conversation

CarlosRoca13
Copy link
Contributor

cc @Tecnativa TT37689

please @carlosdauden @sergio-teruel review this

sergio-teruel and others added 20 commits September 28, 2022 12:10
Currently translated at 36.7% (11 of 30 strings)

Translation: sale-workflow-11.0/sale-workflow-11.0-sale_elaboration
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-11-0/sale-workflow-11-0-sale_elaboration/de/
…sale order view to store the value in onchange method
@CarlosRoca13
Copy link
Contributor Author

This PR superseds this other: #1341

@rousseldenis
Copy link
Contributor

/ocabot migration sale_elaboration

@OCA-git-bot
Copy link
Contributor

The migration issue (#1274) has been updated to reference the current pull request.
however, a previous pull request was referenced : #1341.
Perhaps you should check that there is no duplicate work.
CC : @JSeguiN97

from odoo import api, fields, models


def _execute_onchanges(records, field_name):
Copy link
Contributor

@rousseldenis rousseldenis Sep 29, 2022

Choose a reason for hiding this comment

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

I know you don't like onchange_helper, but you could avoid code duplicates like this...

I encourage you to reconsider

@CarlosRoca13
Copy link
Contributor Author

Added comment and added changes suggested by @victoralmau in other PR. We prefer to keep mantaing _execute_onchanges method @rousseldenis

Copy link
Member

@victoralmau victoralmau left a comment

Choose a reason for hiding this comment

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

Code review OK.

Copy link
Contributor

@carlosdauden carlosdauden left a comment

Choose a reason for hiding this comment

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

non-blocking suggestion

"""Give preference to codes on name search, appending
the rest of the results after.
"""
args = args if args else []
Copy link
Contributor

Choose a reason for hiding this comment

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

Since it is modified, this is simpler:

Suggested change
args = args if args else []
args = args or []

@CarlosRoca13
Copy link
Contributor Author

Changed @carlosdauden 😃

@pedrobaeza
Copy link
Member

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 14.0-ocabot-merge-pr-2203-by-pedrobaeza-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit ade420c into OCA:14.0 Sep 30, 2022
@OCA-git-bot
Copy link
Contributor

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

9 participants