diff options
| author | Pedro M. Baeza <pedro.baeza@gmail.com> | 2018-06-05 19:05:58 +0200 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2018-06-08 12:24:19 +0200 |
| commit | 64645457dd3cc834970a6892bc32a29ed281e8c8 (patch) | |
| tree | 1019c5eeacff6a53cbf7a8fe4aa1bdfdcaccfcf1 /setup/setup_dev.py | |
| parent | 4f2442c4f6f9cfc2b694b3a4fc7b5c01a48a1cd5 (diff) | |
[FIX] base: Allow to create a contact without type
If you don't define an explicit address type, then the
record is not going to be accessible.
In the ORM:
>>> env['res.partner'].create({'name': 'Test', 'type': False})
res.partner(44356,)
>>> env['res.partner'].search([('type', '!=', 'private'), ('id', '=', 44356)])
res.partner()
>>> env['res.partner'].search([('type', '=', False), ('id', '=', 44356)])
res.partner(44356,)
due to the fact that NULL in the database is undefined and can't be
compared to a specific key.
Diffstat (limited to 'setup/setup_dev.py')
0 files changed, 0 insertions, 0 deletions
