diff options
| author | Martin Trigaux <mat@odoo.com> | 2018-04-06 14:05:15 +0200 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2018-04-06 14:31:52 +0200 |
| commit | eb9f72ba627a7d859951d84c9372a6c3db2c75a0 (patch) | |
| tree | da90a55882529df69959992522f6c3c580977b44 /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | e5fd52d28c2758ab81aee083320b27f8ef68d095 (diff) | |
[FIX] web_calendar: unlink parsed id
The id of the record may be a real database id or a string containing a virtual
id (e.g. "42-20380119031417").
The id is always stored as a string but must be converted to int when sent to
the ORM (to avoid self.browse('42'))
The calendar modules do handle correctly virtual ids in its unlink method but it
is not the case of the other modules that are expecting integers.
Convert to int if we are working with real ids
Replace and closes #22115
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
