summaryrefslogtreecommitdiff
path: root/addons/account/models/account_payment.py
diff options
context:
space:
mode:
Diffstat (limited to 'addons/account/models/account_payment.py')
-rw-r--r--addons/account/models/account_payment.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/addons/account/models/account_payment.py b/addons/account/models/account_payment.py
index 7fbb328c69d..d04a4b05520 100644
--- a/addons/account/models/account_payment.py
+++ b/addons/account/models/account_payment.py
@@ -454,7 +454,10 @@ class account_payment(models.Model):
move.line_ids.remove_move_reconcile()
move.button_cancel()
move.unlink()
- rec.state = 'cancelled'
+ rec.write({
+ 'state': 'cancelled',
+ 'move_name': False,
+ })
@api.multi
def unlink(self):