summaryrefslogtreecommitdiff
path: root/addons/document/wizard/document_configuration_view.xml
diff options
context:
space:
mode:
authorRaphael Collet <rco@openerp.com>2014-09-25 14:30:22 +0200
committerRaphael Collet <rco@openerp.com>2014-09-25 15:37:50 +0200
commitb3a74f37491dc4bceb19a6d519fa12f2de753c68 (patch)
tree5b397f81e66eaaa8017c651af0488660652b857f /addons/document/wizard/document_configuration_view.xml
parent932eccc7a7c0a48d7758048b0035593543cc8014 (diff)
[FIX] account_voucher: do not unlink records in onchange method
The method recompute_voucher_lines() is used by several onchange methods of account.voucher. It used to unlink() the voucher lines before recomputing new voucher lines. As a side effect, if you edit a voucher and discard your changes, your voucher has lost its lines, although you did not save your changes! Moreover, the call to unlink() is invalidating the record cache, which screws up completely the onchange() method. So, instead of unlinking the existing lines, the onchange generates commands [(2, id), ...] to remove the existing lines only when saving the changes.
Diffstat (limited to 'addons/document/wizard/document_configuration_view.xml')
0 files changed, 0 insertions, 0 deletions