diff options
| author | Xavier Morel <xmo@odoo.com> | 2020-08-24 12:10:55 +0000 |
|---|---|---|
| committer | Xavier Morel <xmo@odoo.com> | 2020-08-24 12:17:30 +0000 |
| commit | 11d676b464d739d10b61bc666fef65698ebc03a6 (patch) | |
| tree | b2e3934f16649c2f07d37a0179596d24565fbf3b /addons/mail/static/src/models/messaging_notification_handler | |
| parent | 8e19904bcaff8300803a7b596c02ec45fcf36ae6 (diff) | |
[FIX] base: ir_sequence UI
ir_sequence is currently broken when trying to view the list of
sequences (if there are any in the system) and when trying to create
one:
During the sql-thingie, I prepared the `params` local to differentiate
the params to provide in both cases of a conditional, then promptly
forgot to do that, so no parameter is provided when one is needed,
which breaks... on every pg >= 10 (which at this point is probably all
of them).
Correct this error.
Furthermore, the "computes are onchange" was not impacted on
`_get_number_next_actual`. On creation, this leads to trying to format
a NewId as a number. If that is just defaulted, we will then try and
`_predict_nextval` for a sequence which doesn't exist in the database.
Just yield `0` if the sequence hasn't been created yet.
closes odoo/odoo#56397
Reported-by: @youring
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
Diffstat (limited to 'addons/mail/static/src/models/messaging_notification_handler')
0 files changed, 0 insertions, 0 deletions
