diff options
| author | Lucas Perais (lpe) <lpe@odoo.com> | 2019-09-13 10:08:59 +0000 |
|---|---|---|
| committer | Lucas Perais (lpe) <lpe@odoo.com> | 2019-09-16 11:31:59 +0000 |
| commit | 69908089454b1e592177f93c667dffa8a5516c70 (patch) | |
| tree | e1bfadc8850fd4c87a83e1c3ea58af09aa18894a /addons/web/static/src/js/fields/basic_fields.js | |
| parent | 6d4192c2a3fac49ed9153260f063474ba2b0d813 (diff) | |
[FIX] account: payment keep move names on cancel
Reverts d91b1e5bd56373f869bdc0db2215818e9ce11cbc
But still handles the use case (cancelling transfer payment)
Make a payment, confirm it
The payment's move has a name, i.e. constructed from its sequence
Cancel it
the payment has no move anymore
Re-confirm the payment
Before this commit, the new move had a new name from a new sequence number
This is problematic to ensure accounting consistency
Besides, it was not the way it works for invoices' moves
After this commit, the former name of the move is taken
to build the new move of the re-confirmed payment
OPW 2046412
OPW 2070167
closes odoo/odoo#36868
closes odoo/odoo#36922
Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions
