mirror of
https://github.com/brain-tec/account_ebics.git
synced 2025-08-13 22:25:35 +00:00
[MIG] account_ebics: Migration to 17.0
This commit is contained in:
@@ -13,10 +13,7 @@
|
||||
<field name="new_pass" password="True" />
|
||||
<field name="new_pass_check" password="True" />
|
||||
</group>
|
||||
<group
|
||||
name="sig_pass"
|
||||
attrs="{'invisible': [('ebics_sig_passphrase_invisible', '=', True)]}"
|
||||
>
|
||||
<group name="sig_pass" invisible="ebics_sig_passphrase_invisible">
|
||||
<field name="old_sig_pass" password="True" />
|
||||
<field name="new_sig_pass" password="True" />
|
||||
<field name="new_sig_pass_check" password="True" />
|
||||
|
@@ -444,7 +444,9 @@ class EbicsXfer(models.TransientModel):
|
||||
def _payment_order_postprocess(self, ebics_file):
|
||||
active_model = self.env.context.get("active_model")
|
||||
if active_model == "account.payment.order":
|
||||
order = self.env[active_model].browse(self.env.context["active_id"])
|
||||
order = self.env["account.payment.order"].browse(
|
||||
self.env.context["active_id"]
|
||||
)
|
||||
order.generated2uploaded()
|
||||
|
||||
def _setup_client(self):
|
||||
|
@@ -23,7 +23,8 @@
|
||||
<field
|
||||
name="ebics_passphrase"
|
||||
password="True"
|
||||
attrs="{'invisible': [('ebics_passphrase_store', '=', True)], 'required': [('ebics_passphrase_store', '=', False)]}"
|
||||
invisible="ebics_passphrase_store"
|
||||
required="not ebics_passphrase_store"
|
||||
/>
|
||||
<field name="ebics_passphrase_store" invisible="1" />
|
||||
<field name="date_from" />
|
||||
@@ -76,12 +77,13 @@
|
||||
<field
|
||||
name="ebics_passphrase"
|
||||
password="True"
|
||||
attrs="{'invisible': [('ebics_passphrase_store', '=', True)], 'required': [('ebics_passphrase_store', '=', False)]}"
|
||||
invisible="ebics_passphrase_store"
|
||||
required="not ebics_passphrase_store"
|
||||
/>
|
||||
<field
|
||||
name="ebics_sig_passphrase"
|
||||
password="True"
|
||||
attrs="{'invisible': [('ebics_sig_passphrase_invisible', '=', True)]}"
|
||||
invisible="ebics_sig_passphrase_invisible"
|
||||
/>
|
||||
<field name="ebics_passphrase_store" invisible="1" />
|
||||
<field name="ebics_sig_passphrase_invisible" invisible="1" />
|
||||
@@ -95,10 +97,7 @@
|
||||
domain="[('type', '=', 'up'), ('id', 'in', allowed_format_ids)]"
|
||||
/>
|
||||
<field name="order_type" />
|
||||
<field
|
||||
name="test_mode"
|
||||
attrs="{'invisible': [('order_type', 'not in', ('FUL', 'BTU'))]}"
|
||||
/>
|
||||
<field name="test_mode" invisible="order_type not in ('FUL', 'BTU')" />
|
||||
<field name="allowed_format_ids" invisible="1" />
|
||||
</group>
|
||||
<footer>
|
||||
|
Reference in New Issue
Block a user