mirror of
https://github.com/brain-tec/account_ebics.git
synced 2025-09-09 03:00:54 +00:00
Merge pull request #65 from Noviat/17.0
Syncing from upstream Noviat/account_ebics (17.0)
This commit is contained in:
@@ -15,7 +15,7 @@ Available addons
|
|||||||
----------------
|
----------------
|
||||||
addon | version | maintainers | summary
|
addon | version | maintainers | summary
|
||||||
--- | --- | --- | ---
|
--- | --- | --- | ---
|
||||||
[account_ebics](account_ebics/) | 17.0.1.2.0 | | EBICS banking protocol
|
[account_ebics](account_ebics/) | 17.0.1.2.1 | | EBICS banking protocol
|
||||||
[account_ebics_batch](account_ebics_batch/) | 17.0.1.0.1 | | EBICS Files automated import and processing
|
[account_ebics_batch](account_ebics_batch/) | 17.0.1.0.1 | | EBICS Files automated import and processing
|
||||||
[account_ebics_batch_payment](account_ebics_batch_payment/) | 17.0.1.0.3 | | Upload Batch Payment via EBICS
|
[account_ebics_batch_payment](account_ebics_batch_payment/) | 17.0.1.0.3 | | Upload Batch Payment via EBICS
|
||||||
[account_ebics_oca_statement_import](account_ebics_oca_statement_import/) | 17.0.1.0.1 | | Use OCA Bank Statement Import with account_ebics
|
[account_ebics_oca_statement_import](account_ebics_oca_statement_import/) | 17.0.1.0.1 | | Use OCA Bank Statement Import with account_ebics
|
||||||
|
@@ -1,9 +1,9 @@
|
|||||||
# Copyright 2009-2025 Noviat.
|
# Copyright 2009-2025 Noviat.
|
||||||
# License LGPL-3 or later (http://www.gnu.org/licenses/lgpl).
|
# License LGPL-3 or later (https://www.gnu.org/licenses/lgpl).
|
||||||
|
|
||||||
{
|
{
|
||||||
"name": "EBICS banking protocol",
|
"name": "EBICS banking protocol",
|
||||||
"version": "17.0.1.2.0",
|
"version": "17.0.1.2.1",
|
||||||
"license": "LGPL-3",
|
"license": "LGPL-3",
|
||||||
"author": "Noviat",
|
"author": "Noviat",
|
||||||
"website": "https://www.noviat.com/",
|
"website": "https://www.noviat.com/",
|
||||||
|
@@ -28,6 +28,8 @@ try:
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
_logger.warning("Failed to import fintech")
|
_logger.warning("Failed to import fintech")
|
||||||
|
|
||||||
|
INI_LETTER_LANGS = ["en", "de", "fr"]
|
||||||
|
|
||||||
|
|
||||||
class EbicsBank(EbicsBank):
|
class EbicsBank(EbicsBank):
|
||||||
def _next_order_id(self, partnerid):
|
def _next_order_id(self, partnerid):
|
||||||
@@ -467,6 +469,8 @@ class EbicsUserID(models.Model):
|
|||||||
else:
|
else:
|
||||||
lang = self.env.user.lang or self.env["res.lang"].search([])[0].code
|
lang = self.env.user.lang or self.env["res.lang"].search([])[0].code
|
||||||
lang = lang[:2]
|
lang = lang[:2]
|
||||||
|
lang = lang.lower()
|
||||||
|
lang = lang if lang in INI_LETTER_LANGS else "en"
|
||||||
fn_date = fields.Date.today().isoformat()
|
fn_date = fields.Date.today().isoformat()
|
||||||
fn = "_".join([self.ebics_config_id.ebics_host, "ini_letter", fn_date]) + ".pdf"
|
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)
|
letter = user.create_ini_letter(bankname=ebics_config_bank.name, lang=lang)
|
||||||
|
Reference in New Issue
Block a user