From 385d60dca85f26e5f4ce077455baed55965b180e Mon Sep 17 00:00:00 2001 From: Fekete Mihai Date: Thu, 25 Jan 2018 15:18:07 +0200 Subject: [PATCH] Remove variable partner_id since i changed the validation of partners number. --- account_netting/wizards/account_move_make_netting.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/account_netting/wizards/account_move_make_netting.py b/account_netting/wizards/account_move_make_netting.py index 617e84b1f..fe23e1705 100644 --- a/account_netting/wizards/account_move_make_netting.py +++ b/account_netting/wizards/account_move_make_netting.py @@ -47,12 +47,10 @@ class AccountMoveMakeNetting(models.TransientModel): "operations on different accounts for the same partner.\n" "In this case all selected entries belong to the same " "account.\n Please use the 'Reconcile' function.")) - partner_id = None if len(move_lines.mapped('partner_id')) != 1: raise exceptions.ValidationError( _("All entries should have a partner and the partner must " "be the same for all.")) - partner_id = move_lines[0].partner_id res = super(AccountMoveMakeNetting, self).default_get(fields) res['move_line_ids'] = [(6, 0, move_lines.ids)] balance = (sum(move_lines.mapped('debit')) -