summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/basic_fields.js
diff options
context:
space:
mode:
authorxmo-odoo <xmo@odoo.com>2017-07-19 11:43:32 +0200
committerGitHub <noreply@github.com>2017-07-19 11:43:32 +0200
commit27127b73c14bf17fb88f6bb94145deae752476e0 (patch)
tree73d12277efd0d62b98b1447456cb3caf45f2a19b /addons/web/static/src/js/fields/basic_fields.js
parent1cf12a9ae4a9aaac2ded44093d0e3dd295adce77 (diff)
[FIX] Close POS session with amount 0 on statement lines
When trying to close a POS session (which confirms the bank statements which reconciles the statement lines) if one of the statement lines has an amount of 0 no payment object is created (addons/account/models/account_bank_statement.py:905) and thus ``payment`` remains set to ``False``. In the past this was not an issue but since b17e4a0f6b0af508e3e3f06b84aa43687bb8cae6 at the end of the method (line addons/account/models/account_bank_statement.py:1003) we unconditionally write to ``payment`` which blows up when it's ``False`` rather than a recordset. This can happen if e.g. a POS order is composed only of free products (don't ask...) Fix by using an empty recordset instead of a boolean for a non-payment, making payment.write a no-op. OPW-752922
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions