diff --git a/modules/bnporc/pp/browser.py b/modules/bnporc/pp/browser.py index 6c13544c6a6c6e430e290af1aecd5da53eb96f73..7575425ceaab789cd91cdd97d8f435c30e859d6e 100644 --- a/modules/bnporc/pp/browser.py +++ b/modules/bnporc/pp/browser.py @@ -372,10 +372,8 @@ def init_transfer(self, account, recipient, amount, reason, exec_date): @need_login def send_code(self, recipient, **params): - # depending on whether recipient is a weboob or a budgea backend object. - _id = recipient.webid if hasattr(recipient, 'webid') else recipient.id data = {} - data['idBeneficiaire'] = _id + data['idBeneficiaire'] = recipient.id data['typeActivation'] = 1 data['codeActivation'] = params['code'] return self.activate_recip.go(data=json.dumps(data), headers={'Content-Type': 'application/json'}).get_recipient(recipient) diff --git a/modules/bnporc/pp/pages.py b/modules/bnporc/pp/pages.py index 2c9e67a496ea2ed6c27c20cd99231ee4a8bbbb19..0ca79a8fba504792d5bd68c1ed17dc02eb5907e1 100644 --- a/modules/bnporc/pp/pages.py +++ b/modules/bnporc/pp/pages.py @@ -828,7 +828,7 @@ class ActivateRecipPage(AddRecipPage): def get_recipient(self, recipient): r = Recipient() r.iban = recipient.iban - r.id = recipient.webid if hasattr(recipient, 'webid') else recipient.id + r.id = recipient.id r.label = recipient.label r.category = u'Externe' r.enabled_at = datetime.now().replace(microsecond=0) + timedelta(days=5)