-
-
Notifications
You must be signed in to change notification settings - Fork 212
[8.0] Migration of magentorepconnect_order_comment #174
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
base: 8.0
Are you sure you want to change the base?
Conversation
Migrated module magentoerpconnect_order_comment to version 8.0 with new API
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.
Help messages are automatically translated, you should not use _() on them.
(I know it was wrong before but it is the right opportunity to correct it)
|
Only a small remark regarding a correction with Thanks |
|
I didn't know that about help on fields and translations. Thanks! @guewen |
| 'Store id', | ||
| help=MAGENTO_HELP) | ||
|
|
||
| @api.model |
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.
On the create method, you need to apply the @api.returns('self', lambda value: value.id) decorator for backwards compatibility with old API overrides of this method (you know, just in case...)
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 was sure it was inherited. This comment would tend to confirm that, but it could be wrong https://github.com/odoo/odoo/blob/9.0/openerp/api.py#L77
Had you ever had issues with that?
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.
You are right: I can't seem to reproduce any such issues with a quick test. Thanks for the pointer!
|
Can you catch ImportError for the import of bs4 and then at runtime (in a method where you use the import) check if bs4 is defined, and raise then? |
|
You seem to miss 0ead0327ecc2, and I think you would need to take the i18n directory as well. |
Migrated module magentoerpconnect_order_comment to version 8.0 with new API