From e14741f15a492b2d22e6939a8f80b1dd7bf609ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 7 Jul 2020 23:56:10 +0200 Subject: [PATCH] Add model, record and records attribute on Wizard issue9421 review309861012 --- party.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/party.py b/party.py index 91d57c91ff..88ffd085fd 100644 --- a/party.py +++ b/party.py @@ -514,12 +514,9 @@ class CheckVIES(Wizard): ]) def transition_check(self): - Party = Pool().get('party.party') - parties_succeed = [] parties_failed = [] - parties = Party.browse(Transaction().context.get('active_ids')) - for party in parties: + for party in self.records: for identifier in party.identifiers: if identifier.type != 'eu_vat': continue