mirror of
				https://github.com/brain-tec/account_ebics.git
				synced 2025-11-04 15:10:34 +00:00 
			
		
		
		
	Merge pull request #66 from Noviat/18.0
Syncing from upstream Noviat/account_ebics (18.0)
This commit is contained in:
		@@ -15,7 +15,7 @@ Available addons
 | 
			
		||||
----------------
 | 
			
		||||
addon | version | maintainers | summary
 | 
			
		||||
--- | --- | --- | ---
 | 
			
		||||
[account_ebics](account_ebics/) | 18.0.1.0.1 |  | EBICS banking protocol
 | 
			
		||||
[account_ebics](account_ebics/) | 18.0.1.0.2 |  | EBICS banking protocol
 | 
			
		||||
[account_ebics_batch](account_ebics_batch/) | 18.0.1.0.0 |  | EBICS Files automated import and processing
 | 
			
		||||
[account_ebics_batch_payment](account_ebics_batch_payment/) | 18.0.1.0.0 |  | Upload Batch Payment via EBICS
 | 
			
		||||
[account_ebics_oca_statement_import](account_ebics_oca_statement_import/) | 18.0.1.0.0 |  | Use OCA Bank Statement Import with account_ebics
 | 
			
		||||
 
 | 
			
		||||
@@ -3,7 +3,7 @@
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
    "name": "EBICS banking protocol",
 | 
			
		||||
    "version": "18.0.1.0.1",
 | 
			
		||||
    "version": "18.0.1.0.2",
 | 
			
		||||
    "license": "LGPL-3",
 | 
			
		||||
    "author": "Noviat",
 | 
			
		||||
    "website": "https://www.noviat.com/",
 | 
			
		||||
 
 | 
			
		||||
@@ -28,6 +28,8 @@ try:
 | 
			
		||||
except ImportError:
 | 
			
		||||
    _logger.warning("Failed to import fintech")
 | 
			
		||||
 | 
			
		||||
INI_LETTER_LANGS = ["en", "de", "fr"]
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class EbicsBank(EbicsBank):
 | 
			
		||||
    def _next_order_id(self, partnerid):
 | 
			
		||||
@@ -475,6 +477,8 @@ class EbicsUserID(models.Model):
 | 
			
		||||
        else:
 | 
			
		||||
            lang = self.env.user.lang or self.env["res.lang"].search([])[0].code
 | 
			
		||||
            lang = lang[:2]
 | 
			
		||||
        lang = lang.lower()
 | 
			
		||||
        lang = lang if lang in INI_LETTER_LANGS else "en"
 | 
			
		||||
        fn_date = fields.Date.today().isoformat()
 | 
			
		||||
        fn = "_".join([self.ebics_config_id.ebics_host, "ini_letter", fn_date]) + ".pdf"
 | 
			
		||||
        letter = user.create_ini_letter(bankname=ebics_config_bank.name, lang=lang)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user