mirror of
https://github.com/brain-tec/account_ebics.git
synced 2024-11-22 12:12:03 +00:00
Merge branch '14-file-format-on-ebics-upload' into '14.0'
[IMP]EBICS File Format on Payment Mode See merge request Noviat/Noviat_Generic/accounting-ebics!49
This commit is contained in:
commit
1c45692364
@ -115,7 +115,6 @@ class EbicsXfer(models.TransientModel):
|
|||||||
@api.onchange("ebics_config_id")
|
@api.onchange("ebics_config_id")
|
||||||
def _onchange_ebics_config_id(self):
|
def _onchange_ebics_config_id(self):
|
||||||
ebics_userids = self.ebics_config_id.ebics_userid_ids
|
ebics_userids = self.ebics_config_id.ebics_userid_ids
|
||||||
domain = {"ebics_userid_id": [("id", "in", ebics_userids.ids)]}
|
|
||||||
ctx = self.env.context
|
ctx = self.env.context
|
||||||
if ctx.get("ebics_download"):
|
if ctx.get("ebics_download"):
|
||||||
download_formats = self.ebics_config_id.ebics_file_format_ids.filtered(
|
download_formats = self.ebics_config_id.ebics_file_format_ids.filtered(
|
||||||
@ -140,11 +139,6 @@ class EbicsXfer(models.TransientModel):
|
|||||||
)
|
)
|
||||||
if len(upload_formats) == 1:
|
if len(upload_formats) == 1:
|
||||||
self.format_id = upload_formats
|
self.format_id = upload_formats
|
||||||
domain["format_id"] = [
|
|
||||||
("type", "=", "up"),
|
|
||||||
("id", "in", upload_formats.ids),
|
|
||||||
]
|
|
||||||
return {"domain": domain}
|
|
||||||
|
|
||||||
@api.onchange("upload_data")
|
@api.onchange("upload_data")
|
||||||
def _onchange_upload_data(self):
|
def _onchange_upload_data(self):
|
||||||
|
@ -69,8 +69,8 @@
|
|||||||
<field name="upload_format_ids" invisible="1" />
|
<field name="upload_format_ids" invisible="1" />
|
||||||
<field
|
<field
|
||||||
name="format_id"
|
name="format_id"
|
||||||
domain="[('id', 'in', upload_format_ids)]"
|
|
||||||
required="1"
|
required="1"
|
||||||
|
domain="[('type', '=', 'up'), ('id', 'in', allowed_format_ids)]"
|
||||||
readonly="context.get('active_model') == 'account.payment.order'"
|
readonly="context.get('active_model') == 'account.payment.order'"
|
||||||
/>
|
/>
|
||||||
<field name="order_type" />
|
<field name="order_type" />
|
||||||
|
Loading…
Reference in New Issue
Block a user