Commit 56e120bf authored by Sylvie Ye's avatar Sylvie Ye Committed by Romain Bignon

[creditmutuel/cic] update transfer form

form with id 'P2:F' is not only for 'pro' account in CIC
parent b146c77d
......@@ -1547,10 +1547,7 @@ class ExternalTransferPage(InternalTransferPage):
self.env['origin_account']._external_recipients.add(Field('id')(self))
def get_transfer_form(self):
# internal and external transfer form are differents
if self.IS_PRO_PAGE:
return self.get_form(id='P2:F', submit='//input[@type="submit" and contains(@value, "Valider")]')
return self.get_form(id='P1:F', submit='//input[@type="submit" and contains(@value, "Valider")]')
return self.get_form(xpath='//form[@id="P1:F"] | //form[@id="P2:F"]', submit='//input[@type="submit" and contains(@value, "Valider")]')
class VerifCodePage(LoggedPage, HTMLPage):
HASHES = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment