diff options
| author | Martin Trigaux <mat@odoo.com> | 2017-03-28 10:54:44 +0200 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2017-04-25 14:20:34 +0200 |
| commit | 79519ce40096b64d447c293c241c1ef9c05c99e3 (patch) | |
| tree | 081045785318c685a95a6804a8674e5392e755f3 /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 7416afed578f0c933c215fbc5f0354ac663a9340 (diff) | |
[FIX] registry: load inheritS models too
When adding a field on a model, only the _inherit were checked, not the _inherits.
This commit fixes the following bug:
1. install `sale` (adding the field `sale_order_count` on `res.partner`)
- field `sale_order_count` is created on `res.partner`
- the ir.model.field is tagged with module `sale`
2. install `point_of_sale` (adding another field on `res.users`)
- field `sale_order_count` is created on `res.users`
- the ir.model.field is tagged with module `point_of_sale`
When installing sale, the model res.partner is returned in the list of impacted
models, on which _create_fields method is called but not res.users.
A direct consequence of this bug is that, the fields translations are in the
wrong module. May fix some uninstallation bugs too.
Closes #16104
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
