diff options
| author | wan <wan@odoo.com> | 2019-09-18 12:10:07 +0000 |
|---|---|---|
| committer | wan <wan@odoo.com> | 2019-09-20 13:59:21 +0000 |
| commit | d3ddcc613f873b2f7073c45fea16c1f57abe278a (patch) | |
| tree | e527f98e564941b861217ac0571e671b6770ad74 /addons/hr_org_chart/controllers | |
| parent | e41f468972b606801e4f663863a92896ac82e5a3 (diff) | |
[FIX] account: constraint on empty account
If SQL, if you do
```display_type IN ('line_section', 'line_note') OR account_id IS NOT NULL```
and `display_type` is `NULL` then you can only have `'t'` because
`SELECT NULL OR 'f';` yields `NULL`
`SELECT NULL OR 't';` yields `'t'`
The check of NULL is not blocking, hence the constraint doesn't work.
closes odoo/odoo#37075
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
Diffstat (limited to 'addons/hr_org_chart/controllers')
0 files changed, 0 insertions, 0 deletions
