Skip to content
Merged
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ Available addons
----------------
addon | version | maintainers | summary
--- | --- | --- | ---
[account_ebics](account_ebics/) | 18.0.1.1.2 | | EBICS banking protocol
[account_ebics](account_ebics/) | 18.0.1.2.0 | | 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_batch_payment](account_ebics_batch_payment/) | 18.0.1.1.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
[account_ebics_oe](account_ebics_oe/) | 18.0.1.0.0 | | Deploy account_ebics module on Odoo Enterprise
[account_ebics_payment_order](account_ebics_payment_order/) | 18.0.1.1.0 | | Upload Payment Order via EBICS
[account_ebics_payment_order](account_ebics_payment_order/) | 18.0.1.2.0 | | Upload Payment Order via EBICS

[//]: # (end addons)

Expand Down
2 changes: 1 addition & 1 deletion account_ebics/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

{
"name": "EBICS banking protocol",
"version": "18.0.1.1.2",
"version": "18.0.1.2.0",
"license": "LGPL-3",
"author": "Noviat",
"website": "https://www.noviat.com/",
Expand Down
37 changes: 37 additions & 0 deletions account_ebics/i18n/account_ebics.pot
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ msgstr ""
#. module: account_ebics
#: model_terms:ir.ui.view,arch_db:account_ebics.ebics_change_passphrase_view_form
#: model_terms:ir.ui.view,arch_db:account_ebics.ebics_xfer_view_form_download
#: model_terms:ir.ui.view,arch_db:account_ebics.ebics_xfer_view_form_mark_as_downloaded
#: model_terms:ir.ui.view,arch_db:account_ebics.ebics_xfer_view_form_upload
msgid "Cancel"
msgstr ""
Expand Down Expand Up @@ -601,6 +602,11 @@ msgstr ""
msgid "EBICS Manager"
msgstr ""

#. module: account_ebics
#: model_terms:ir.ui.view,arch_db:account_ebics.ebics_xfer_view_form_mark_as_downloaded
msgid "EBICS Mark as Downloaded"
msgstr ""

#. module: account_ebics
#. odoo-python
#: code:addons/account_ebics/wizards/ebics_xfer.py:0
Expand Down Expand Up @@ -788,6 +794,12 @@ msgstr ""
msgid "EBICS version mismatch."
msgstr ""

#. module: account_ebics
#: model:ir.model.fields,field_description:account_ebics.field_account_journal__ebics_config_id
#: model:ir.model.fields,field_description:account_ebics.field_account_journal__ebics_config_ids
msgid "Ebics Config"
msgstr ""

#. module: account_ebics
#: model:ir.model.fields,field_description:account_ebics.field_ebics_userid__ebics_keys_fn
msgid "Ebics Keys Fn"
Expand Down Expand Up @@ -1011,6 +1023,11 @@ msgstr ""
msgid "Invalid XML file."
msgstr ""

#. module: account_ebics
#: model:ir.model,name:account_ebics.model_account_journal
msgid "Journal"
msgstr ""

#. module: account_ebics
#: model:ir.model.fields,field_description:account_ebics.field_ebics_admin_order__write_uid
#: model:ir.model.fields,field_description:account_ebics.field_ebics_change_passphrase__write_uid
Expand Down Expand Up @@ -1038,6 +1055,17 @@ msgstr ""
msgid "Locality Name [L]"
msgstr ""

#. module: account_ebics
#: model_terms:ir.ui.view,arch_db:account_ebics.ebics_xfer_view_form_mark_as_downloaded
msgid "Mark as Downloaded"
msgstr ""

#. module: account_ebics
#: model:ir.actions.act_window,name:account_ebics.ebics_xfer_action_mark_as_downloaded
#: model:ir.ui.menu,name:account_ebics.ebics_xfer_menu_mark_as_downloaded
msgid "Mark files as Downloaded"
msgstr ""

#. module: account_ebics
#: model:ir.model.fields,help:account_ebics.field_ebics_file_format__btf_format
msgid ""
Expand Down Expand Up @@ -1291,6 +1319,7 @@ msgstr ""

#. module: account_ebics
#: model_terms:ir.ui.view,arch_db:account_ebics.ebics_xfer_view_form_download
#: model_terms:ir.ui.view,arch_db:account_ebics.ebics_xfer_view_form_mark_as_downloaded
#: model_terms:ir.ui.view,arch_db:account_ebics.ebics_xfer_view_form_upload
msgid "Select your bank :"
msgstr ""
Expand Down Expand Up @@ -1440,6 +1469,14 @@ msgstr ""
msgid "Test Mode"
msgstr ""

#. module: account_ebics
#: model_terms:ir.ui.view,arch_db:account_ebics.ebics_xfer_view_form_mark_as_downloaded
msgid ""
"The EBICS Files (Bank Statements) selected via this screen will not become available in Odoo as EBICS files but will be marked by your bank as downloaded.\n"
" <br/>\n"
" As a consequence, these Bank Statements will not be retrieved by the next 'EBICS Batch Import' scheduled action."
msgstr ""

#. module: account_ebics
#: model_terms:ir.ui.view,arch_db:account_ebics.ebics_config_view_form
msgid ""
Expand Down
40 changes: 40 additions & 0 deletions account_ebics/i18n/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ msgstr "Relevés"
#. module: account_ebics
#: model_terms:ir.ui.view,arch_db:account_ebics.ebics_change_passphrase_view_form
#: model_terms:ir.ui.view,arch_db:account_ebics.ebics_xfer_view_form_download
#: model_terms:ir.ui.view,arch_db:account_ebics.ebics_xfer_view_form_mark_as_downloaded
#: model_terms:ir.ui.view,arch_db:account_ebics.ebics_xfer_view_form_upload
msgid "Cancel"
msgstr "Annuler"
Expand Down Expand Up @@ -616,6 +617,11 @@ msgstr ""
msgid "EBICS Manager"
msgstr ""

#. module: account_ebics
#: model_terms:ir.ui.view,arch_db:account_ebics.ebics_xfer_view_form_mark_as_downloaded
msgid "EBICS Mark as Downloaded"
msgstr ""

#. module: account_ebics
#. odoo-python
#: code:addons/account_ebics/wizards/ebics_xfer.py:0
Expand Down Expand Up @@ -803,6 +809,12 @@ msgstr ""
msgid "EBICS version mismatch."
msgstr ""

#. module: account_ebics
#: model:ir.model.fields,field_description:account_ebics.field_account_journal__ebics_config_id
#: model:ir.model.fields,field_description:account_ebics.field_account_journal__ebics_config_ids
msgid "Ebics Config"
msgstr ""

#. module: account_ebics
#: model:ir.model.fields,field_description:account_ebics.field_ebics_userid__ebics_keys_fn
msgid "Ebics Keys Fn"
Expand Down Expand Up @@ -1029,6 +1041,11 @@ msgstr ""
msgid "Invalid XML file."
msgstr ""

#. module: account_ebics
#: model:ir.model,name:account_ebics.model_account_journal
msgid "Journal"
msgstr ""

#. module: account_ebics
#: model:ir.model.fields,field_description:account_ebics.field_ebics_admin_order__write_uid
#: model:ir.model.fields,field_description:account_ebics.field_ebics_change_passphrase__write_uid
Expand Down Expand Up @@ -1056,6 +1073,17 @@ msgstr "Dernière mise à jour le"
msgid "Locality Name [L]"
msgstr ""

#. module: account_ebics
#: model_terms:ir.ui.view,arch_db:account_ebics.ebics_xfer_view_form_mark_as_downloaded
msgid "Mark as Downloaded"
msgstr ""

#. module: account_ebics
#: model:ir.actions.act_window,name:account_ebics.ebics_xfer_action_mark_as_downloaded
#: model:ir.ui.menu,name:account_ebics.ebics_xfer_menu_mark_as_downloaded
msgid "Mark files as Downloaded"
msgstr ""

#. module: account_ebics
#: model:ir.model.fields,help:account_ebics.field_ebics_file_format__btf_format
msgid ""
Expand Down Expand Up @@ -1315,6 +1343,7 @@ msgstr ""

#. module: account_ebics
#: model_terms:ir.ui.view,arch_db:account_ebics.ebics_xfer_view_form_download
#: model_terms:ir.ui.view,arch_db:account_ebics.ebics_xfer_view_form_mark_as_downloaded
#: model_terms:ir.ui.view,arch_db:account_ebics.ebics_xfer_view_form_upload
msgid "Select your bank :"
msgstr ""
Expand Down Expand Up @@ -1464,6 +1493,17 @@ msgstr ""
msgid "Test Mode"
msgstr "Mode de test"

#. module: account_ebics
#: model_terms:ir.ui.view,arch_db:account_ebics.ebics_xfer_view_form_mark_as_downloaded
msgid ""
"The EBICS Files (Bank Statements) selected via this screen will not become "
"available in Odoo as EBICS files but will be marked by your bank as "
"downloaded.\n"
" <br/>\n"
" As a consequence, these Bank Statements will not be "
"retrieved by the next 'EBICS Batch Import' scheduled action."
msgstr ""

#. module: account_ebics
#: model_terms:ir.ui.view,arch_db:account_ebics.ebics_config_view_form
msgid ""
Expand Down
40 changes: 40 additions & 0 deletions account_ebics/i18n/nl.po
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ msgstr "Afschriften"
#. module: account_ebics
#: model_terms:ir.ui.view,arch_db:account_ebics.ebics_change_passphrase_view_form
#: model_terms:ir.ui.view,arch_db:account_ebics.ebics_xfer_view_form_download
#: model_terms:ir.ui.view,arch_db:account_ebics.ebics_xfer_view_form_mark_as_downloaded
#: model_terms:ir.ui.view,arch_db:account_ebics.ebics_xfer_view_form_upload
msgid "Cancel"
msgstr "Annuleer"
Expand Down Expand Up @@ -616,6 +617,11 @@ msgstr ""
msgid "EBICS Manager"
msgstr ""

#. module: account_ebics
#: model_terms:ir.ui.view,arch_db:account_ebics.ebics_xfer_view_form_mark_as_downloaded
msgid "EBICS Mark as Downloaded"
msgstr ""

#. module: account_ebics
#. odoo-python
#: code:addons/account_ebics/wizards/ebics_xfer.py:0
Expand Down Expand Up @@ -803,6 +809,12 @@ msgstr ""
msgid "EBICS version mismatch."
msgstr ""

#. module: account_ebics
#: model:ir.model.fields,field_description:account_ebics.field_account_journal__ebics_config_id
#: model:ir.model.fields,field_description:account_ebics.field_account_journal__ebics_config_ids
msgid "Ebics Config"
msgstr ""

#. module: account_ebics
#: model:ir.model.fields,field_description:account_ebics.field_ebics_userid__ebics_keys_fn
msgid "Ebics Keys Fn"
Expand Down Expand Up @@ -1029,6 +1041,11 @@ msgstr ""
msgid "Invalid XML file."
msgstr ""

#. module: account_ebics
#: model:ir.model,name:account_ebics.model_account_journal
msgid "Journal"
msgstr ""

#. module: account_ebics
#: model:ir.model.fields,field_description:account_ebics.field_ebics_admin_order__write_uid
#: model:ir.model.fields,field_description:account_ebics.field_ebics_change_passphrase__write_uid
Expand Down Expand Up @@ -1056,6 +1073,17 @@ msgstr "Laatst bijgewerkt op"
msgid "Locality Name [L]"
msgstr ""

#. module: account_ebics
#: model_terms:ir.ui.view,arch_db:account_ebics.ebics_xfer_view_form_mark_as_downloaded
msgid "Mark as Downloaded"
msgstr ""

#. module: account_ebics
#: model:ir.actions.act_window,name:account_ebics.ebics_xfer_action_mark_as_downloaded
#: model:ir.ui.menu,name:account_ebics.ebics_xfer_menu_mark_as_downloaded
msgid "Mark files as Downloaded"
msgstr ""

#. module: account_ebics
#: model:ir.model.fields,help:account_ebics.field_ebics_file_format__btf_format
msgid ""
Expand Down Expand Up @@ -1315,6 +1343,7 @@ msgstr ""

#. module: account_ebics
#: model_terms:ir.ui.view,arch_db:account_ebics.ebics_xfer_view_form_download
#: model_terms:ir.ui.view,arch_db:account_ebics.ebics_xfer_view_form_mark_as_downloaded
#: model_terms:ir.ui.view,arch_db:account_ebics.ebics_xfer_view_form_upload
msgid "Select your bank :"
msgstr ""
Expand Down Expand Up @@ -1464,6 +1493,17 @@ msgstr ""
msgid "Test Mode"
msgstr ""

#. module: account_ebics
#: model_terms:ir.ui.view,arch_db:account_ebics.ebics_xfer_view_form_mark_as_downloaded
msgid ""
"The EBICS Files (Bank Statements) selected via this screen will not become "
"available in Odoo as EBICS files but will be marked by your bank as "
"downloaded.\n"
" <br/>\n"
" As a consequence, these Bank Statements will not be "
"retrieved by the next 'EBICS Batch Import' scheduled action."
msgstr ""

#. module: account_ebics
#: model_terms:ir.ui.view,arch_db:account_ebics.ebics_config_view_form
msgid ""
Expand Down
1 change: 1 addition & 0 deletions account_ebics/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from . import fintech_ebics_register
from . import account_bank_statement
from . import account_journal
from . import ebics_config
from . import ebics_file
from . import ebics_file_format
Expand Down
26 changes: 26 additions & 0 deletions account_ebics/models/account_journal.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright 2026 Noviat.
# License LGPL-3 or later (https://www.gnu.org/licenses/lgpl).

from odoo import api, fields, models


class AccountJournal(models.Model):
_inherit = "account.journal"

ebics_config_ids = fields.Many2many(
comodel_name="ebics.config",
relation="account_journal_ebics_config_rel",
readonly=True,
)
ebics_config_id = fields.Many2one(
comodel_name="ebics.config",
compute="_compute_ebics_config_id",
compute_sudo=True,
)

@api.depends("ebics_config_ids")
def _compute_ebics_config_id(self):
for rec in self:
rec.ebics_config_id = rec.ebics_config_ids.filtered(
lambda r: r.state == "confirm"
)[:1]
25 changes: 5 additions & 20 deletions account_ebics/models/ebics_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ class EbicsConfig(models.Model):
comodel_name="res.company",
relation="ebics_config_res_company_rel",
string="Companies",
readonly=True,
compute="_compute_company_ids",
store=True,
help="Companies sharing this EBICS contract.",
)

Expand Down Expand Up @@ -154,26 +155,10 @@ def _check_order_number(self):
)
)

def write(self, vals):
"""
Due to the multi-company nature of the EBICS config we
need to adapt the company_ids in the write method.
"""
if "journal_ids" not in vals:
return super().write(vals)
@api.depends("journal_ids.company_id")
def _compute_company_ids(self):
for rec in self:
old_company_ids = rec.journal_ids.mapped("company_id").ids
super(EbicsConfig, rec).write(vals)
new_company_ids = rec.journal_ids.mapped("company_id").ids
updates = []
for cid in new_company_ids:
if cid in old_company_ids:
old_company_ids.remove(cid)
else:
updates += [(4, cid)]
updates += [(3, x) for x in old_company_ids]
super(EbicsConfig, rec).write({"company_ids": updates})
return True
rec.company_ids = rec.journal_ids.mapped("company_id")

def unlink(self):
for ebics_config in self:
Expand Down
9 changes: 9 additions & 0 deletions account_ebics/views/menu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,13 @@
groups="account_ebics.group_ebics_manager"
sequence="30"
/>

<menuitem
id="ebics_xfer_menu_mark_as_downloaded"
name="Mark files as Downloaded"
parent="ebics_menu"
action="account_ebics.ebics_xfer_action_mark_as_downloaded"
groups="account_ebics.group_ebics_manager"
sequence="40"
/>
</odoo>
Loading
Loading