From 6f702d8b70ca7eba5f8a3ec70a92f85e4ffe8c5a Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Wed, 10 Jan 2018 00:05:55 +0100 Subject: [PATCH] account_usability: account.reconcile.model don't copy name to label via onchange --- account_usability/account.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/account_usability/account.py b/account_usability/account.py index 7045372..fffa571 100644 --- a/account_usability/account.py +++ b/account_usability/account.py @@ -393,3 +393,14 @@ class AccountFiscalPosition(models.Model): if fps: return fps[0] return False + + +class AccountReconcileModel(models.Model): + _inherit = 'account.reconcile.model' + + @api.onchange('name') + def onchange_name(self): + # Do NOT copy by default name on label + # Because it's much better to have the bank statement line label as + # label of the counter-part move line, then the label of the button + assert True # Stupid line of code just to have something...