summaryrefslogtreecommitdiff
path: root/doc/reference/javascript_reference.rst
diff options
context:
space:
mode:
authorPedro M. Baeza <pedro.baeza@gmail.com>2018-06-05 19:05:58 +0200
committerYannick Tivisse <yti@odoo.com>2018-06-08 12:24:19 +0200
commit64645457dd3cc834970a6892bc32a29ed281e8c8 (patch)
tree1019c5eeacff6a53cbf7a8fe4aa1bdfdcaccfcf1 /doc/reference/javascript_reference.rst
parent4f2442c4f6f9cfc2b694b3a4fc7b5c01a48a1cd5 (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 'doc/reference/javascript_reference.rst')
0 files changed, 0 insertions, 0 deletions