Commit 6caea2f9 authored by Maxime Gasselin's avatar Maxime Gasselin Committed by Romain Bignon

[creditmutuel] id form changes for cards

The last id form seems to not exists anymore. But with all children,
it's safier to keep it.

Closes: 37603@sibi
parent ea945ca7
......@@ -776,7 +776,11 @@ class CardPage(OperationsPage, LoggedPage):
if Attr('.', 'selected', default=None)(option):
break
form = self.get_form(id="I1:fm")
try:
# Maybe obsolete
form = self.get_form(id="I1:fm")
except FormNotFound:
form = self.get_form(id='I1:P:F')
form['_FID_DoChangeCardDetails'] = ""
form['Data_SelectedCardItemKey'] = Attr('.', 'value')(option)
return self.browser.open(form.url, data=dict(form)).page
......
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