mirror of
https://github.com/brain-tec/account_ebics.git
synced 2024-11-23 20:52:04 +00:00
[MIG] account_ebics_payment_order: Migration to 15.0
This commit is contained in:
parent
7313e49257
commit
8191bb2f92
@ -338,7 +338,22 @@ class EbicsXfer(models.TransientModel):
|
|||||||
OrderID = False
|
OrderID = False
|
||||||
try:
|
try:
|
||||||
order_type = self.order_type
|
order_type = self.order_type
|
||||||
if order_type == "FUL":
|
if order_type == "BTU":
|
||||||
|
btf = BusinessTransactionFormat(
|
||||||
|
ef_format.btf_service,
|
||||||
|
ef_format.btf_message,
|
||||||
|
scope=ef_format.btf_scope or None,
|
||||||
|
option=ef_format.btf_option or None,
|
||||||
|
container=ef_format.btf_container or None,
|
||||||
|
version=ef_format.btf_version or None,
|
||||||
|
variant=ef_format.btf_variant or None,
|
||||||
|
format=ef_format.btf_format or None,
|
||||||
|
)
|
||||||
|
kwargs = {}
|
||||||
|
if self.test_mode:
|
||||||
|
kwargs["TEST"] = "TRUE"
|
||||||
|
client.BTU(btf, upload_data, **kwargs)
|
||||||
|
elif order_type == "FUL":
|
||||||
kwargs = {}
|
kwargs = {}
|
||||||
bank = self.ebics_config_id.journal_ids[0].bank_id
|
bank = self.ebics_config_id.journal_ids[0].bank_id
|
||||||
cc = bank.country.code
|
cc = bank.country.code
|
||||||
|
@ -74,7 +74,7 @@
|
|||||||
<field name="order_type" />
|
<field name="order_type" />
|
||||||
<field
|
<field
|
||||||
name="test_mode"
|
name="test_mode"
|
||||||
attrs="{'invisible': [('order_type', '!=', 'FUL')]}"
|
attrs="{'invisible': [('order_type', 'not in', ('FUL', 'BTU'))]}"
|
||||||
/>
|
/>
|
||||||
<field name="allowed_format_ids" invisible="1" />
|
<field name="allowed_format_ids" invisible="1" />
|
||||||
</group>
|
</group>
|
||||||
|
Loading…
Reference in New Issue
Block a user