diff options
| author | Manuel Vázquez Acosta <manuel@merchise.org> | 2017-10-09 13:58:32 +0000 |
|---|---|---|
| committer | Xavier Morel <xmo@odoo.com> | 2018-10-11 16:59:49 +0000 |
| commit | c77f7fc5cdd12df85a574f8ec8c0385f018da9f9 (patch) | |
| tree | 05eaaaeba32f2db4249015a6a1d8856557df040e /addons/web/static/src/js/views/basic/basic_model.js | |
| parent | a5b3246dcd3949ad9b38a8dd3d113da2cda1119d (diff) | |
[FIX] models: Allow rich comparison with third party objects.
Instead of returning False directly when comparing a non-model, return
NotImplemented that will trigger the __eq__ test from the other side.
This allows third party objects (for instance a serialization/deserialization
scheme) that cannot be a Model to be considered equal is some scenarios.
closes odoo/odoo#19977
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions
