[8.0] Migration of magentorepconnect_order_comment#174
[8.0] Migration of magentorepconnect_order_comment#174hugosantosred wants to merge 2 commits intoOCA:8.0from
Conversation
Migrated module magentoerpconnect_order_comment to version 8.0 with new API
There was a problem hiding this comment.
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.
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.
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.
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