-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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] iap_alternative_provider: Migration to 17.0 #2914
[17.0][MIG] iap_alternative_provider: Migration to 17.0 #2914
Conversation
Moving this behaviour in a new module in server-env repo
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: server-tools-15.0/server-tools-15.0-iap_alternative_provider Translate-URL: https://translation.odoo-community.org/projects/server-tools-15-0/server-tools-15-0-iap_alternative_provider/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: server-tools-16.0/server-tools-16.0-iap_alternative_provider Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-iap_alternative_provider/
Currently translated at 100.0% (6 of 6 strings) Translation: server-tools-16.0/server-tools-16.0-iap_alternative_provider Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-iap_alternative_provider/es/
Currently translated at 100.0% (6 of 6 strings) Translation: server-tools-16.0/server-tools-16.0-iap_alternative_provider Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-iap_alternative_provider/it/
Currently translated at 100.0% (6 of 6 strings) Translation: server-tools-16.0/server-tools-16.0-iap_alternative_provider Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-iap_alternative_provider/it/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: server-tools-16.0/server-tools-16.0-iap_alternative_provider Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-iap_alternative_provider/
Currently translated at 100.0% (7 of 7 strings) Translation: server-tools-16.0/server-tools-16.0-iap_alternative_provider Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-iap_alternative_provider/it/
Currently translated at 100.0% (7 of 7 strings) Translation: server-tools-16.0/server-tools-16.0-iap_alternative_provider Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-iap_alternative_provider/es/
eec4bcf
to
ad8f2a6
Compare
@@ -9,7 +9,6 @@ class IapAccount(models.Model): | |||
_inherit = "iap.account" | |||
_name = "iap.account" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line is not needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know the module, but maybe there is a reason it combines both _inherit
and _name
, cf. https://www.odoo.com/documentation/17.0/developer/reference/backend/orm.html#classical-inheritance
Also, this line is present since 12.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not needed, the model already exists and you need to define the name if you want to create a new module or have multiple inheritances. It is not the case
@@ -7,14 +7,17 @@ | |||
<xpath expr="//group[@name='account']" position="before"> | |||
<group string="Info" name="info"> | |||
<field name="provider" /> | |||
<field name="name" /> | |||
<field name="company_ids" position="move" /> | |||
<field name="name" position="move" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the move has no sense IMO...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agreed, if name
is removed on the model side, it can be removed too on the xml side.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The move was removing the field from the view. Just remove the line.
I would recommend to contact original authors of the module and people that did interesting contributions @sebastienbeau @FernandoRomera @petrus-v @hendrixcosta Can you provide your point of view, please? 🙏 |
ad8f2a6
to
06719ba
Compare
/ocabot merge nobump |
This PR looks fantastic, let's merge it! |
Congratulations, your PR was merged at b36099a. Thanks a lot for contributing to OCA. ❤️ |
Minimal changes for iap_alternative_provider to work on Odoo 17