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:
Luc De Meyer 2024-05-14 20:37:54 +00:00
commit 1c45692364
2 changed files with 1 additions and 7 deletions

View File

@ -115,7 +115,6 @@ class EbicsXfer(models.TransientModel):
@api.onchange("ebics_config_id")
def _onchange_ebics_config_id(self):
ebics_userids = self.ebics_config_id.ebics_userid_ids
domain = {"ebics_userid_id": [("id", "in", ebics_userids.ids)]}
ctx = self.env.context
if ctx.get("ebics_download"):
download_formats = self.ebics_config_id.ebics_file_format_ids.filtered(
@ -140,11 +139,6 @@ class EbicsXfer(models.TransientModel):
)
if len(upload_formats) == 1:
self.format_id = upload_formats
domain["format_id"] = [
("type", "=", "up"),
("id", "in", upload_formats.ids),
]
return {"domain": domain}
@api.onchange("upload_data")
def _onchange_upload_data(self):

View File

@ -69,8 +69,8 @@
<field name="upload_format_ids" invisible="1" />
<field
name="format_id"
domain="[('id', 'in', upload_format_ids)]"
required="1"
domain="[('type', '=', 'up'), ('id', 'in', allowed_format_ids)]"
readonly="context.get('active_model') == 'account.payment.order'"
/>
<field name="order_type" />