mirror of
				https://github.com/brain-tec/account_ebics.git
				synced 2025-11-04 15:10:34 +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:
		@@ -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):
 | 
			
		||||
 
 | 
			
		||||
@@ -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" />
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user