From 418e53c026492d705212d195b57b450f792b72c4 Mon Sep 17 00:00:00 2001 From: Enric Tobella Date: Mon, 30 Nov 2020 15:40:16 +0100 Subject: [PATCH 01/57] [ADD] edi_account --- edi_account_oca/README.rst | 88 ++++ edi_account_oca/__init__.py | 1 + edi_account_oca/__manifest__.py | 19 + edi_account_oca/models/__init__.py | 1 + edi_account_oca/models/account_move.py | 31 ++ edi_account_oca/readme/CONTRIBUTORS.rst | 1 + edi_account_oca/readme/DESCRIPTION.rst | 16 + edi_account_oca/static/description/icon.png | Bin 0 -> 5055 bytes edi_account_oca/static/description/index.html | 431 ++++++++++++++++++ edi_account_oca/tests/__init__.py | 1 + edi_account_oca/tests/test_edi.py | 102 +++++ edi_account_oca/views/account_journal.xml | 15 + edi_account_oca/views/account_move.xml | 28 ++ edi_account_oca/views/res_partner.xml | 15 + 14 files changed, 749 insertions(+) create mode 100644 edi_account_oca/README.rst create mode 100644 edi_account_oca/__init__.py create mode 100644 edi_account_oca/__manifest__.py create mode 100644 edi_account_oca/models/__init__.py create mode 100644 edi_account_oca/models/account_move.py create mode 100644 edi_account_oca/readme/CONTRIBUTORS.rst create mode 100644 edi_account_oca/readme/DESCRIPTION.rst create mode 100644 edi_account_oca/static/description/icon.png create mode 100644 edi_account_oca/static/description/index.html create mode 100644 edi_account_oca/tests/__init__.py create mode 100644 edi_account_oca/tests/test_edi.py create mode 100644 edi_account_oca/views/account_journal.xml create mode 100644 edi_account_oca/views/account_move.xml create mode 100644 edi_account_oca/views/res_partner.xml diff --git a/edi_account_oca/README.rst b/edi_account_oca/README.rst new file mode 100644 index 000000000..e9f15481a --- /dev/null +++ b/edi_account_oca/README.rst @@ -0,0 +1,88 @@ +=========== +Edi Account +=========== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fedi-lightgray.png?logo=github + :target: https://github.com/OCA/edi/tree/13.0/edi_account + :alt: OCA/edi +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/edi-13-0/edi-13-0-edi_account + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/226/13.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module intends to create a base to be extended by local edi rules +for accounting. + +In order to add a new integration for an account, you need to create a listener: + +.. code-block:: python + + class MyEventListener(Component): + _name = "account.move.event.listener.demo" + _inherit = "base.event.listener" + _apply_on = ["account.move"] + + def on_post_account_move(self, move): + """Add your code here about creation of record""" + +A skip if decorator can be added in order to make some checks on the state of the move + +**Table of contents** + +.. contents:: + :local: + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Creu Blanca + +Contributors +~~~~~~~~~~~~ + +* Enric Tobella + +Maintainers +~~~~~~~~~~~ + +This module is maintained by the OCA. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +This module is part of the `OCA/edi `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/edi_account_oca/__init__.py b/edi_account_oca/__init__.py new file mode 100644 index 000000000..0650744f6 --- /dev/null +++ b/edi_account_oca/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/edi_account_oca/__manifest__.py b/edi_account_oca/__manifest__.py new file mode 100644 index 000000000..103db93f9 --- /dev/null +++ b/edi_account_oca/__manifest__.py @@ -0,0 +1,19 @@ +# Copyright 2020 Creu Blanca +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + "name": "Edi Account", + "summary": """ + Define EDI Configuration for Account Moves""", + "version": "13.0.1.0.0", + "license": "AGPL-3", + "author": "Creu Blanca,Odoo Community Association (OCA)", + "website": "https://github.com/OCA/edi", + "depends": ["account", "edi", "component_event"], + "data": [ + "views/account_journal.xml", + "views/res_partner.xml", + "views/account_move.xml", + ], + "demo": [], +} diff --git a/edi_account_oca/models/__init__.py b/edi_account_oca/models/__init__.py new file mode 100644 index 000000000..9c0a42138 --- /dev/null +++ b/edi_account_oca/models/__init__.py @@ -0,0 +1 @@ +from . import account_move diff --git a/edi_account_oca/models/account_move.py b/edi_account_oca/models/account_move.py new file mode 100644 index 000000000..aa78189ff --- /dev/null +++ b/edi_account_oca/models/account_move.py @@ -0,0 +1,31 @@ +# Copyright 2020 Creu Blanca +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import models + + +class AccountMove(models.Model): + _name = "account.move" + _inherit = ["account.move", "edi.exchange.consumer.mixin"] + + def post(self): + result = super().post() + # We will use this event to know which documents needs to be executed + if self: + self._event("on_post_account_move").notify(self) + return result + + def button_cancel(self): + """This could be used to notify our provider that we are not accepting the + invoice""" + result = super().button_cancel() + if self: + self._event("on_cancel_account_move").notify(self) + return result + + def action_invoice_paid(self): + """This could be used to notify our provider that we are paying""" + result = super().action_invoice_paid() + if self: + self._event("on_paid_account_move").notify(self) + return result diff --git a/edi_account_oca/readme/CONTRIBUTORS.rst b/edi_account_oca/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..93ec993e0 --- /dev/null +++ b/edi_account_oca/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Enric Tobella diff --git a/edi_account_oca/readme/DESCRIPTION.rst b/edi_account_oca/readme/DESCRIPTION.rst new file mode 100644 index 000000000..4db73f89f --- /dev/null +++ b/edi_account_oca/readme/DESCRIPTION.rst @@ -0,0 +1,16 @@ +This module intends to create a base to be extended by local edi rules +for accounting. + +In order to add a new integration for an account, you need to create a listener: + +.. code-block:: python + + class MyEventListener(Component): + _name = "account.move.event.listener.demo" + _inherit = "base.event.listener" + _apply_on = ["account.move"] + + def on_post_account_move(self, move): + """Add your code here about creation of record""" + +A skip if decorator can be added in order to make some checks on the state of the move diff --git a/edi_account_oca/static/description/icon.png b/edi_account_oca/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..a79752645ce327baadb6aba260751a044a5e4a8a GIT binary patch literal 5055 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 literal 0 HcmV?d00001 diff --git a/edi_account_oca/static/description/index.html b/edi_account_oca/static/description/index.html new file mode 100644 index 000000000..bf8b2736e --- /dev/null +++ b/edi_account_oca/static/description/index.html @@ -0,0 +1,431 @@ + + + + + + +Edi Account + + + +
+

Edi Account

+ + +

Beta License: AGPL-3 OCA/edi Translate me on Weblate Try me on Runbot

+

This module intends to create a base to be extended by local edi rules +for accounting.

+

In order to add a new integration for an account, you need to create a listener:

+
+class MyEventListener(Component):
+    _name = "account.move.event.listener.demo"
+    _inherit = "base.event.listener"
+    _apply_on = ["account.move"]
+
+    def on_post_account_move(self, move):
+        """Add your code here about creation of record"""
+
+

A skip if decorator can be added in order to make some checks on the state of the move

+

Table of contents

+ +
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +feedback.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • Creu Blanca
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use.

+

This module is part of the OCA/edi project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/edi_account_oca/tests/__init__.py b/edi_account_oca/tests/__init__.py new file mode 100644 index 000000000..25aeb70b8 --- /dev/null +++ b/edi_account_oca/tests/__init__.py @@ -0,0 +1 @@ +from . import test_edi diff --git a/edi_account_oca/tests/test_edi.py b/edi_account_oca/tests/test_edi.py new file mode 100644 index 000000000..8d1bca89f --- /dev/null +++ b/edi_account_oca/tests/test_edi.py @@ -0,0 +1,102 @@ +# Copyright 2020 Creu Blanca +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +import logging + +from odoo import fields + +from odoo.addons.account.tests.account_test_savepoint import AccountTestInvoicingCommon +from odoo.addons.component.core import Component +from odoo.addons.component.tests.common import SavepointComponentRegistryCase + +_logger = logging.getLogger(__name__) + + +class EDIBackendTestCase(AccountTestInvoicingCommon, SavepointComponentRegistryCase): + @classmethod + def setUpClass(cls, chart_template_ref=None): + super().setUpClass(chart_template_ref=chart_template_ref) + cls.env = cls.env(context=dict(cls.env.context, tracking_disable=True)) + + class AccountMoveEventListenerDemo(Component): + _name = "account.move.event.listener.demo" + _inherit = "base.event.listener" + + def on_post_account_move(self, move): + move.name = "new_name" + + def on_paid_account_move(self, move): + move.name = "paid" + + def on_cancel_account_move(self, move): + move.name = "cancelled" + + AccountMoveEventListenerDemo._build_component(cls.comp_registry) + cls.comp_registry._cache.clear() + cls.test_move = ( + cls.env["account.move"] + .with_context(components_registry=cls.comp_registry) + .create( + { + "type": "out_invoice", + "partner_id": cls.partner_a.id, + "date": fields.Date.from_string("2016-01-01"), + "invoice_line_ids": [ + ( + 0, + None, + { + "name": "revenue line 1", + "account_id": cls.company_data[ + "default_account_revenue" + ].id, + "quantity": 1.0, + "price_unit": 100.0, + }, + ), + ( + 0, + None, + { + "name": "revenue line 2", + "account_id": cls.company_data[ + "default_account_revenue" + ].id, + "quantity": 1.0, + "price_unit": 100.0, + "tax_ids": [ + (6, 0, cls.company_data["default_tax_sale"].ids) + ], + }, + ), + ], + } + ) + ) + cls.test_move.refresh() + + def test_paid_move(self): + self.test_move.post() + self.assertEqual(self.test_move.name, "new_name") + + payment_action = self.test_move.action_invoice_register_payment() + payment = ( + self.env[payment_action["res_model"]] + .with_context(**payment_action["context"]) + .create( + { + "payment_method_id": self.env.ref( + "account.account_payment_method_manual_in" + ).id, + "journal_id": self.company_data["default_journal_bank"].id, + } + ) + ) + payment.with_context(components_registry=self.comp_registry).post() + self.assertEqual(self.test_move.name, "paid") + + def test_cancel_move(self): + self.test_move.post() + self.assertEqual(self.test_move.name, "new_name") + self.test_move.button_cancel() + self.assertEqual(self.test_move.name, "cancelled") diff --git a/edi_account_oca/views/account_journal.xml b/edi_account_oca/views/account_journal.xml new file mode 100644 index 000000000..a461f9ffb --- /dev/null +++ b/edi_account_oca/views/account_journal.xml @@ -0,0 +1,15 @@ + + + + + account.journal.form (in edi_account) + account.journal + + + + + + + + diff --git a/edi_account_oca/views/account_move.xml b/edi_account_oca/views/account_move.xml new file mode 100644 index 000000000..b6e4c843a --- /dev/null +++ b/edi_account_oca/views/account_move.xml @@ -0,0 +1,28 @@ + + + + + account.move.form (in edi_account) + account.move + + + + + + + + diff --git a/edi_account_oca/views/res_partner.xml b/edi_account_oca/views/res_partner.xml new file mode 100644 index 000000000..d1327d990 --- /dev/null +++ b/edi_account_oca/views/res_partner.xml @@ -0,0 +1,15 @@ + + + + + res.partner.form (in edi_account) + res.partner + + + + + + + + From 9a0ca54273ab3d749dc40516f9d33338e1fc4a87 Mon Sep 17 00:00:00 2001 From: oca-travis Date: Tue, 1 Dec 2020 17:32:52 +0000 Subject: [PATCH 02/57] [UPD] Update edi_account.pot --- edi_account_oca/i18n/edi_account.pot | 30 ++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 edi_account_oca/i18n/edi_account.pot diff --git a/edi_account_oca/i18n/edi_account.pot b/edi_account_oca/i18n/edi_account.pot new file mode 100644 index 000000000..938887ab6 --- /dev/null +++ b/edi_account_oca/i18n/edi_account.pot @@ -0,0 +1,30 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * edi_account +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 13.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: edi_account +#: model_terms:ir.ui.view,arch_db:edi_account.account_move_form_view +msgid "EDI" +msgstr "" + +#. module: edi_account +#: model_terms:ir.ui.view,arch_db:edi_account.view_account_journal_form +#: model_terms:ir.ui.view,arch_db:edi_account.view_partner_form +msgid "EDI Configuration" +msgstr "" + +#. module: edi_account +#: model:ir.model,name:edi_account.model_account_move +msgid "Journal Entries" +msgstr "" From d437af033e31895aec1572224e7f6458c4632a5b Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Tue, 1 Dec 2020 17:44:07 +0000 Subject: [PATCH 03/57] [UPD] README.rst --- edi_account_oca/static/description/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edi_account_oca/static/description/index.html b/edi_account_oca/static/description/index.html index bf8b2736e..fd6d42b45 100644 --- a/edi_account_oca/static/description/index.html +++ b/edi_account_oca/static/description/index.html @@ -3,7 +3,7 @@ - + Edi Account -
-

Edi Account

+
+ + +Odoo Community Association + +
+

Edi Account

-

Beta License: LGPL-3 OCA/edi-framework Translate me on Weblate Try me on Runboat

+

Beta License: LGPL-3 OCA/edi-framework Translate me on Weblate Try me on Runboat

This module intends to create a base to be extended by local edi rules for accounting.

In order to add a new integration for an account, you need to create a listener:

-class MyEventListener(Component):
+class MyEventListener(Component):
     _name = "account.move.event.listener.demo"
     _inherit = "base.event.listener"
     _apply_on = ["account.move"]
 
-    def on_post_account_move(self, move):
+    def on_post_account_move(self, move):
         """Add your code here about creation of record"""
 

A skip if decorator can be added in order to make some checks on the @@ -398,7 +403,7 @@

Edi Account

-

Bug Tracker

+

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed @@ -406,15 +411,15 @@

Bug Tracker

Do not contact contributors directly about support or help with technical issues.

-

Credits

+

Credits

-

Authors

+

Authors

  • Creu Blanca
-

Contributors

+

Contributors

-

Maintainers

+

Maintainers

This module is maintained by the OCA.

Odoo Community Association @@ -439,5 +444,6 @@

Maintainers

+
From 9207639d1814c5d4668978aa09de2779486e7ae1 Mon Sep 17 00:00:00 2001 From: oca-ci Date: Thu, 11 Sep 2025 11:57:42 +0000 Subject: [PATCH 50/57] [UPD] Update edi_account_oca.pot --- edi_account_oca/i18n/edi_account_oca.pot | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/edi_account_oca/i18n/edi_account_oca.pot b/edi_account_oca/i18n/edi_account_oca.pot index 249173289..ae0f72f11 100644 --- a/edi_account_oca/i18n/edi_account_oca.pot +++ b/edi_account_oca/i18n/edi_account_oca.pot @@ -80,6 +80,11 @@ msgstr "" msgid "Exchange Record Count" msgstr "" +#. module: edi_account_oca +#: model:ir.model.fields,field_description:edi_account_oca.field_account_move__exchange_related_record_ids +msgid "Exchange Related Record" +msgstr "" + #. module: edi_account_oca #: model:ir.ui.menu,name:edi_account_oca.menu_account_edi_root msgid "Exchange records" From 857f5f00ef27429a2514704887f0914ba975dd3f Mon Sep 17 00:00:00 2001 From: Weblate Date: Thu, 11 Sep 2025 12:01:15 +0000 Subject: [PATCH 51/57] Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: edi-framework-18.0/edi-framework-18.0-edi_account_oca Translate-URL: https://translation.odoo-community.org/projects/edi-framework-18-0/edi-framework-18-0-edi_account_oca/ --- edi_account_oca/i18n/fr.po | 5 +++++ edi_account_oca/i18n/it.po | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/edi_account_oca/i18n/fr.po b/edi_account_oca/i18n/fr.po index 1a37c0649..de0d4ce2f 100644 --- a/edi_account_oca/i18n/fr.po +++ b/edi_account_oca/i18n/fr.po @@ -83,6 +83,11 @@ msgstr "" msgid "Exchange Record Count" msgstr "" +#. module: edi_account_oca +#: model:ir.model.fields,field_description:edi_account_oca.field_account_move__exchange_related_record_ids +msgid "Exchange Related Record" +msgstr "" + #. module: edi_account_oca #: model:ir.ui.menu,name:edi_account_oca.menu_account_edi_root msgid "Exchange records" diff --git a/edi_account_oca/i18n/it.po b/edi_account_oca/i18n/it.po index 97af3c1c2..9cf08d3fd 100644 --- a/edi_account_oca/i18n/it.po +++ b/edi_account_oca/i18n/it.po @@ -83,6 +83,11 @@ msgstr "Record di scambio" msgid "Exchange Record Count" msgstr "Conteggio record di scambio" +#. module: edi_account_oca +#: model:ir.model.fields,field_description:edi_account_oca.field_account_move__exchange_related_record_ids +msgid "Exchange Related Record" +msgstr "" + #. module: edi_account_oca #: model:ir.ui.menu,name:edi_account_oca.menu_account_edi_root msgid "Exchange records" From a63729e15cf182b46e962f992a683c3543759b42 Mon Sep 17 00:00:00 2001 From: mymage Date: Mon, 15 Sep 2025 06:37:30 +0000 Subject: [PATCH 52/57] Translated using Weblate (Italian) Currently translated at 100.0% (19 of 19 strings) Translation: edi-framework-18.0/edi-framework-18.0-edi_account_oca Translate-URL: https://translation.odoo-community.org/projects/edi-framework-18-0/edi-framework-18-0-edi_account_oca/it/ --- edi_account_oca/i18n/it.po | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/edi_account_oca/i18n/it.po b/edi_account_oca/i18n/it.po index 9cf08d3fd..92691710d 100644 --- a/edi_account_oca/i18n/it.po +++ b/edi_account_oca/i18n/it.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 16.0\n" "Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: 2025-03-18 11:50+0000\n" +"PO-Revision-Date: 2025-09-15 08:42+0000\n" "Last-Translator: mymage \n" "Language-Team: none\n" "Language: it\n" @@ -14,7 +14,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" "Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: Weblate 5.10.2\n" +"X-Generator: Weblate 5.10.4\n" #. module: edi_account_oca #: model_terms:ir.ui.view,arch_db:edi_account_oca.account_move_form_view @@ -86,7 +86,7 @@ msgstr "Conteggio record di scambio" #. module: edi_account_oca #: model:ir.model.fields,field_description:edi_account_oca.field_account_move__exchange_related_record_ids msgid "Exchange Related Record" -msgstr "" +msgstr "Record relativo allo scambio" #. module: edi_account_oca #: model:ir.ui.menu,name:edi_account_oca.menu_account_edi_root From e6ce2562c288dbe6142c29dcc8c3a415411f9125 Mon Sep 17 00:00:00 2001 From: Enric Tobella Date: Fri, 29 Aug 2025 19:20:13 +0200 Subject: [PATCH 53/57] [IMP] edi_account_oca: Remove all non component logic --- edi_account_oca/__manifest__.py | 19 ++++------- .../migrations/18.0.1.1.0/pre-migration.py | 15 +++++++++ edi_account_oca/models/account_move.py | 9 ++--- edi_account_oca/readme/DESCRIPTION.md | 3 -- edi_account_oca/tests/test_edi.py | 2 +- edi_account_oca/views/account_journal.xml | 15 --------- edi_account_oca/views/account_move.xml | 33 ------------------- edi_account_oca/views/edi_exchange_record.xml | 29 ---------------- edi_account_oca/views/res_partner.xml | 16 --------- 9 files changed, 26 insertions(+), 115 deletions(-) create mode 100644 edi_account_oca/migrations/18.0.1.1.0/pre-migration.py delete mode 100644 edi_account_oca/views/account_journal.xml delete mode 100644 edi_account_oca/views/account_move.xml delete mode 100644 edi_account_oca/views/edi_exchange_record.xml delete mode 100644 edi_account_oca/views/res_partner.xml diff --git a/edi_account_oca/__manifest__.py b/edi_account_oca/__manifest__.py index 9b8607e3d..f60307a65 100644 --- a/edi_account_oca/__manifest__.py +++ b/edi_account_oca/__manifest__.py @@ -1,22 +1,17 @@ -# Copyright 2020 Creu Blanca +# Copyright 2020 Dixmit # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). { - "name": "Edi Account", + "name": "Account Listeners", "summary": """ - Define EDI Configuration for Account Moves""", - "version": "18.0.1.0.1", + Define some component listeners for Account Moves""", + "version": "18.0.1.1.0", "license": "LGPL-3", - "author": "Creu Blanca,Odoo Community Association (OCA)", + "author": "Dixmit,Odoo Community Association (OCA)", "maintainers": ["etobella"], "development_status": "Beta", "website": "https://github.com/OCA/edi-framework", - "depends": ["account", "edi_oca", "component_event"], - "data": [ - "views/account_journal.xml", - "views/res_partner.xml", - "views/account_move.xml", - "views/edi_exchange_record.xml", - ], + "depends": ["edi_account_core_oca", "component_event"], + "data": [], "demo": [], } diff --git a/edi_account_oca/migrations/18.0.1.1.0/pre-migration.py b/edi_account_oca/migrations/18.0.1.1.0/pre-migration.py new file mode 100644 index 000000000..66c07613f --- /dev/null +++ b/edi_account_oca/migrations/18.0.1.1.0/pre-migration.py @@ -0,0 +1,15 @@ +from openupgradelib import openupgrade + + +@openupgrade.migrate() +def migrate(env, version): + # We recreate the ir.model.data records in the + # edi_oca module to ensure that other modules work properly + for module in ["edi_account_core_oca"]: + for data in env["ir.model.data"].search([("module", "=", module)]): + if not env["ir.model.data"].search_count( + [("module", "=", "edi_account_oca"), ("name", "=", data.name)] + ): + data.copy( + {"module": "edi_account_oca", "noupdate": True} + ).name = data.name diff --git a/edi_account_oca/models/account_move.py b/edi_account_oca/models/account_move.py index f0d87882c..d359978f4 100644 --- a/edi_account_oca/models/account_move.py +++ b/edi_account_oca/models/account_move.py @@ -1,14 +1,11 @@ -# Copyright 2020 Creu Blanca +# Copyright 2020 Dixmit # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -from odoo import fields, models +from odoo import models class AccountMove(models.Model): - _name = "account.move" - _inherit = ["account.move", "edi.exchange.consumer.mixin"] - - edi_disable_auto = fields.Boolean() + _inherit = "account.move" def _post(self, soft=True): result = super()._post(soft=soft) diff --git a/edi_account_oca/readme/DESCRIPTION.md b/edi_account_oca/readme/DESCRIPTION.md index 99a98abfd..bab6513c8 100644 --- a/edi_account_oca/readme/DESCRIPTION.md +++ b/edi_account_oca/readme/DESCRIPTION.md @@ -1,6 +1,3 @@ -This module intends to create a base to be extended by local edi rules -for accounting. - In order to add a new integration for an account, you need to create a listener: diff --git a/edi_account_oca/tests/test_edi.py b/edi_account_oca/tests/test_edi.py index 12d1ab030..69b72c75e 100644 --- a/edi_account_oca/tests/test_edi.py +++ b/edi_account_oca/tests/test_edi.py @@ -1,4 +1,4 @@ -# Copyright 2020 Creu Blanca +# Copyright 2020 Dixmit # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). import logging diff --git a/edi_account_oca/views/account_journal.xml b/edi_account_oca/views/account_journal.xml deleted file mode 100644 index 60a07a511..000000000 --- a/edi_account_oca/views/account_journal.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - account.journal.form (in edi_account) - account.journal - - - - - - - - diff --git a/edi_account_oca/views/account_move.xml b/edi_account_oca/views/account_move.xml deleted file mode 100644 index 5b568f39f..000000000 --- a/edi_account_oca/views/account_move.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - account.move.form (in edi_account) - account.move - - - - - - - - - - - - - diff --git a/edi_account_oca/views/edi_exchange_record.xml b/edi_account_oca/views/edi_exchange_record.xml deleted file mode 100644 index ff79f025f..000000000 --- a/edi_account_oca/views/edi_exchange_record.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - Account Moves Exchange Record - ir.actions.act_window - edi.exchange.record - list,form - [('model', '=', 'account.move')] - {} - - - - diff --git a/edi_account_oca/views/res_partner.xml b/edi_account_oca/views/res_partner.xml deleted file mode 100644 index 31a5fcbf4..000000000 --- a/edi_account_oca/views/res_partner.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - res.partner.form (in edi_account) - res.partner - - - - - - - - - From d8935dc1b87a593536bb33fb91973dbb41a36253 Mon Sep 17 00:00:00 2001 From: oca-ci Date: Mon, 29 Sep 2025 15:26:55 +0000 Subject: [PATCH 54/57] [UPD] Update edi_account_oca.pot --- edi_account_oca/i18n/edi_account_oca.pot | 93 ------------------------ 1 file changed, 93 deletions(-) diff --git a/edi_account_oca/i18n/edi_account_oca.pot b/edi_account_oca/i18n/edi_account_oca.pot index ae0f72f11..e88ef45c6 100644 --- a/edi_account_oca/i18n/edi_account_oca.pot +++ b/edi_account_oca/i18n/edi_account_oca.pot @@ -13,100 +13,7 @@ msgstr "" "Content-Transfer-Encoding: \n" "Plural-Forms: \n" -#. module: edi_account_oca -#: model_terms:ir.ui.view,arch_db:edi_account_oca.account_move_form_view -msgid "EDI" -msgstr "" - -#. module: edi_account_oca -#: model:ir.actions.act_window,name:edi_account_oca.act_open_edi_exchange_record_account_move_view -msgid "Account Moves Exchange Record" -msgstr "" - -#. module: edi_account_oca -#: model:ir.model.fields,field_description:edi_account_oca.field_account_bank_statement_line__edi_disable_auto -#: model:ir.model.fields,field_description:edi_account_oca.field_account_move__edi_disable_auto -msgid "Disable auto" -msgstr "" - -#. module: edi_account_oca -#: model_terms:ir.ui.view,arch_db:edi_account_oca.view_account_journal_form -#: model_terms:ir.ui.view,arch_db:edi_account_oca.view_partner_form -msgid "EDI Configuration" -msgstr "" - -#. module: edi_account_oca -#: model:ir.model.fields,field_description:edi_account_oca.field_account_move__origin_edi_endpoint_id -msgid "EDI origin endpoint" -msgstr "" - -#. module: edi_account_oca -#: model:ir.model.fields,field_description:edi_account_oca.field_account_move__origin_exchange_type_id -msgid "EDI origin exchange type" -msgstr "" - -#. module: edi_account_oca -#: model:ir.model.fields,field_description:edi_account_oca.field_account_move__origin_exchange_record_id -msgid "EDI origin record" -msgstr "" - -#. module: edi_account_oca -#: model:ir.model.fields,help:edi_account_oca.field_account_move__origin_exchange_record_id -msgid "EDI record that originated this document." -msgstr "" - -#. module: edi_account_oca -#: model:ir.model.fields,field_description:edi_account_oca.field_account_move__edi_config -msgid "Edi Config" -msgstr "" - -#. module: edi_account_oca -#: model:ir.model.fields,field_description:edi_account_oca.field_account_move__edi_has_form_config -msgid "Edi Has Form Config" -msgstr "" - -#. module: edi_account_oca -#: model_terms:ir.ui.view,arch_db:edi_account_oca.account_move_form_view -msgid "Electronic Data Interchange" -msgstr "" - -#. module: edi_account_oca -#: model:ir.model.fields,field_description:edi_account_oca.field_account_move__exchange_record_ids -msgid "Exchange Record" -msgstr "" - -#. module: edi_account_oca -#: model:ir.model.fields,field_description:edi_account_oca.field_account_move__exchange_record_count -msgid "Exchange Record Count" -msgstr "" - -#. module: edi_account_oca -#: model:ir.model.fields,field_description:edi_account_oca.field_account_move__exchange_related_record_ids -msgid "Exchange Related Record" -msgstr "" - -#. module: edi_account_oca -#: model:ir.ui.menu,name:edi_account_oca.menu_account_edi_root -msgid "Exchange records" -msgstr "" - #. module: edi_account_oca #: model:ir.model,name:edi_account_oca.model_account_move msgid "Journal Entry" msgstr "" - -#. module: edi_account_oca -#: model:ir.ui.menu,name:edi_account_oca.menu_account_edi_exchange_record -msgid "Moves" -msgstr "" - -#. module: edi_account_oca -#: model:ir.model.fields,help:edi_account_oca.field_account_move__origin_edi_endpoint_id -msgid "Record generated via this endpoint" -msgstr "" - -#. module: edi_account_oca -#: model:ir.model.fields,help:edi_account_oca.field_account_bank_statement_line__edi_disable_auto -#: model:ir.model.fields,help:edi_account_oca.field_account_move__edi_disable_auto -msgid "When marked, EDI automatic processing will be avoided" -msgstr "" From ee27b56e813c9c734bc21317382284e34cfafbe3 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Mon, 29 Sep 2025 15:30:38 +0000 Subject: [PATCH 55/57] [BOT] post-merge updates --- edi_account_oca/README.rst | 13 +++++-------- edi_account_oca/__manifest__.py | 2 +- edi_account_oca/static/description/index.html | 10 ++++------ 3 files changed, 10 insertions(+), 15 deletions(-) diff --git a/edi_account_oca/README.rst b/edi_account_oca/README.rst index 0bcba5503..5d5633f6e 100644 --- a/edi_account_oca/README.rst +++ b/edi_account_oca/README.rst @@ -2,16 +2,16 @@ :target: https://odoo-community.org/get-involved?utm_source=readme :alt: Odoo Community Association -=========== -Edi Account -=========== +================= +Account Listeners +================= .. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:741b73613b9deb2b515aca45a66a869f15f36a51f328d8de487d5701ee038a8b + !! source digest: sha256:9c622b5f50e49edfdafbe10326f54e8154153ab55e2d0734a2a4cd1672659d4b !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png @@ -32,9 +32,6 @@ Edi Account |badge1| |badge2| |badge3| |badge4| |badge5| -This module intends to create a base to be extended by local edi rules -for accounting. - In order to add a new integration for an account, you need to create a listener: @@ -72,7 +69,7 @@ Credits Authors ------- -* Creu Blanca +* Dixmit Contributors ------------ diff --git a/edi_account_oca/__manifest__.py b/edi_account_oca/__manifest__.py index f60307a65..c75c0a635 100644 --- a/edi_account_oca/__manifest__.py +++ b/edi_account_oca/__manifest__.py @@ -5,7 +5,7 @@ "name": "Account Listeners", "summary": """ Define some component listeners for Account Moves""", - "version": "18.0.1.1.0", + "version": "18.0.1.1.1", "license": "LGPL-3", "author": "Dixmit,Odoo Community Association (OCA)", "maintainers": ["etobella"], diff --git a/edi_account_oca/static/description/index.html b/edi_account_oca/static/description/index.html index 6934526a9..96e0cb148 100644 --- a/edi_account_oca/static/description/index.html +++ b/edi_account_oca/static/description/index.html @@ -366,17 +366,15 @@ Odoo Community Association -
-

Edi Account

+
+

Account Listeners

Beta License: LGPL-3 OCA/edi-framework Translate me on Weblate Try me on Runboat

-

This module intends to create a base to be extended by local edi rules -for accounting.

In order to add a new integration for an account, you need to create a listener:

@@ -415,7 +413,7 @@ 

Credits

Authors

    -
  • Creu Blanca
  • +
  • Dixmit
From 306b6b4a5de6f7e67dcdbee8fd4066d7c83db03e Mon Sep 17 00:00:00 2001 From: Weblate Date: Mon, 29 Sep 2025 15:31:43 +0000 Subject: [PATCH 56/57] Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: edi-framework-18.0/edi-framework-18.0-edi_account_oca Translate-URL: https://translation.odoo-community.org/projects/edi-framework-18-0/edi-framework-18-0-edi_account_oca/ --- edi_account_oca/i18n/fr.po | 93 ----------------------------- edi_account_oca/i18n/it.po | 117 +++++++++++++------------------------ 2 files changed, 39 insertions(+), 171 deletions(-) diff --git a/edi_account_oca/i18n/fr.po b/edi_account_oca/i18n/fr.po index de0d4ce2f..18420acf2 100644 --- a/edi_account_oca/i18n/fr.po +++ b/edi_account_oca/i18n/fr.po @@ -16,103 +16,10 @@ msgstr "" "Plural-Forms: nplurals=2; plural=n > 1;\n" "X-Generator: Weblate 4.3.2\n" -#. module: edi_account_oca -#: model_terms:ir.ui.view,arch_db:edi_account_oca.account_move_form_view -msgid "EDI" -msgstr "" - -#. module: edi_account_oca -#: model:ir.actions.act_window,name:edi_account_oca.act_open_edi_exchange_record_account_move_view -msgid "Account Moves Exchange Record" -msgstr "" - -#. module: edi_account_oca -#: model:ir.model.fields,field_description:edi_account_oca.field_account_bank_statement_line__edi_disable_auto -#: model:ir.model.fields,field_description:edi_account_oca.field_account_move__edi_disable_auto -msgid "Disable auto" -msgstr "" - -#. module: edi_account_oca -#: model_terms:ir.ui.view,arch_db:edi_account_oca.view_account_journal_form -#: model_terms:ir.ui.view,arch_db:edi_account_oca.view_partner_form -msgid "EDI Configuration" -msgstr "" - -#. module: edi_account_oca -#: model:ir.model.fields,field_description:edi_account_oca.field_account_move__origin_edi_endpoint_id -msgid "EDI origin endpoint" -msgstr "" - -#. module: edi_account_oca -#: model:ir.model.fields,field_description:edi_account_oca.field_account_move__origin_exchange_type_id -msgid "EDI origin exchange type" -msgstr "" - -#. module: edi_account_oca -#: model:ir.model.fields,field_description:edi_account_oca.field_account_move__origin_exchange_record_id -msgid "EDI origin record" -msgstr "" - -#. module: edi_account_oca -#: model:ir.model.fields,help:edi_account_oca.field_account_move__origin_exchange_record_id -msgid "EDI record that originated this document." -msgstr "" - -#. module: edi_account_oca -#: model:ir.model.fields,field_description:edi_account_oca.field_account_move__edi_config -msgid "Edi Config" -msgstr "" - -#. module: edi_account_oca -#: model:ir.model.fields,field_description:edi_account_oca.field_account_move__edi_has_form_config -msgid "Edi Has Form Config" -msgstr "" - -#. module: edi_account_oca -#: model_terms:ir.ui.view,arch_db:edi_account_oca.account_move_form_view -msgid "Electronic Data Interchange" -msgstr "" - -#. module: edi_account_oca -#: model:ir.model.fields,field_description:edi_account_oca.field_account_move__exchange_record_ids -msgid "Exchange Record" -msgstr "" - -#. module: edi_account_oca -#: model:ir.model.fields,field_description:edi_account_oca.field_account_move__exchange_record_count -msgid "Exchange Record Count" -msgstr "" - -#. module: edi_account_oca -#: model:ir.model.fields,field_description:edi_account_oca.field_account_move__exchange_related_record_ids -msgid "Exchange Related Record" -msgstr "" - -#. module: edi_account_oca -#: model:ir.ui.menu,name:edi_account_oca.menu_account_edi_root -msgid "Exchange records" -msgstr "" - #. module: edi_account_oca #: model:ir.model,name:edi_account_oca.model_account_move msgid "Journal Entry" msgstr "" -#. module: edi_account_oca -#: model:ir.ui.menu,name:edi_account_oca.menu_account_edi_exchange_record -msgid "Moves" -msgstr "" - -#. module: edi_account_oca -#: model:ir.model.fields,help:edi_account_oca.field_account_move__origin_edi_endpoint_id -msgid "Record generated via this endpoint" -msgstr "" - -#. module: edi_account_oca -#: model:ir.model.fields,help:edi_account_oca.field_account_bank_statement_line__edi_disable_auto -#: model:ir.model.fields,help:edi_account_oca.field_account_move__edi_disable_auto -msgid "When marked, EDI automatic processing will be avoided" -msgstr "" - #~ msgid "Display Name" #~ msgstr "Nom affiché" diff --git a/edi_account_oca/i18n/it.po b/edi_account_oca/i18n/it.po index 92691710d..336cdd86d 100644 --- a/edi_account_oca/i18n/it.po +++ b/edi_account_oca/i18n/it.po @@ -17,99 +17,60 @@ msgstr "" "X-Generator: Weblate 5.10.4\n" #. module: edi_account_oca -#: model_terms:ir.ui.view,arch_db:edi_account_oca.account_move_form_view -msgid "EDI" -msgstr "EDI" +#: model:ir.model,name:edi_account_oca.model_account_move +msgid "Journal Entry" +msgstr "Registrazione contabile" -#. module: edi_account_oca -#: model:ir.actions.act_window,name:edi_account_oca.act_open_edi_exchange_record_account_move_view -msgid "Account Moves Exchange Record" -msgstr "Recod scambio movimenti conto" +#~ msgid "EDI" +#~ msgstr "EDI" -#. module: edi_account_oca -#: model:ir.model.fields,field_description:edi_account_oca.field_account_bank_statement_line__edi_disable_auto -#: model:ir.model.fields,field_description:edi_account_oca.field_account_move__edi_disable_auto -msgid "Disable auto" -msgstr "Disabilita automatico" +#~ msgid "Account Moves Exchange Record" +#~ msgstr "Recod scambio movimenti conto" -#. module: edi_account_oca -#: model_terms:ir.ui.view,arch_db:edi_account_oca.view_account_journal_form -#: model_terms:ir.ui.view,arch_db:edi_account_oca.view_partner_form -msgid "EDI Configuration" -msgstr "Configurazione EDI" +#~ msgid "Disable auto" +#~ msgstr "Disabilita automatico" -#. module: edi_account_oca -#: model:ir.model.fields,field_description:edi_account_oca.field_account_move__origin_edi_endpoint_id -msgid "EDI origin endpoint" -msgstr "Endpoint origine EDI" +#~ msgid "EDI Configuration" +#~ msgstr "Configurazione EDI" -#. module: edi_account_oca -#: model:ir.model.fields,field_description:edi_account_oca.field_account_move__origin_exchange_type_id -msgid "EDI origin exchange type" -msgstr "Tipo scambio origine EDI" +#~ msgid "EDI origin endpoint" +#~ msgstr "Endpoint origine EDI" -#. module: edi_account_oca -#: model:ir.model.fields,field_description:edi_account_oca.field_account_move__origin_exchange_record_id -msgid "EDI origin record" -msgstr "Record origine EDI" +#~ msgid "EDI origin exchange type" +#~ msgstr "Tipo scambio origine EDI" -#. module: edi_account_oca -#: model:ir.model.fields,help:edi_account_oca.field_account_move__origin_exchange_record_id -msgid "EDI record that originated this document." -msgstr "Record EDI che ha generato questo documento." +#~ msgid "EDI origin record" +#~ msgstr "Record origine EDI" -#. module: edi_account_oca -#: model:ir.model.fields,field_description:edi_account_oca.field_account_move__edi_config -msgid "Edi Config" -msgstr "Configurazione EDI" +#~ msgid "EDI record that originated this document." +#~ msgstr "Record EDI che ha generato questo documento." -#. module: edi_account_oca -#: model:ir.model.fields,field_description:edi_account_oca.field_account_move__edi_has_form_config -msgid "Edi Has Form Config" -msgstr "EDI ha una maschera di configurazione" +#~ msgid "Edi Config" +#~ msgstr "Configurazione EDI" -#. module: edi_account_oca -#: model_terms:ir.ui.view,arch_db:edi_account_oca.account_move_form_view -msgid "Electronic Data Interchange" -msgstr "Scambio Dati Elettronico" +#~ msgid "Edi Has Form Config" +#~ msgstr "EDI ha una maschera di configurazione" -#. module: edi_account_oca -#: model:ir.model.fields,field_description:edi_account_oca.field_account_move__exchange_record_ids -msgid "Exchange Record" -msgstr "Record di scambio" +#~ msgid "Electronic Data Interchange" +#~ msgstr "Scambio Dati Elettronico" -#. module: edi_account_oca -#: model:ir.model.fields,field_description:edi_account_oca.field_account_move__exchange_record_count -msgid "Exchange Record Count" -msgstr "Conteggio record di scambio" +#~ msgid "Exchange Record" +#~ msgstr "Record di scambio" -#. module: edi_account_oca -#: model:ir.model.fields,field_description:edi_account_oca.field_account_move__exchange_related_record_ids -msgid "Exchange Related Record" -msgstr "Record relativo allo scambio" +#~ msgid "Exchange Record Count" +#~ msgstr "Conteggio record di scambio" -#. module: edi_account_oca -#: model:ir.ui.menu,name:edi_account_oca.menu_account_edi_root -msgid "Exchange records" -msgstr "Record di scambio" +#~ msgid "Exchange Related Record" +#~ msgstr "Record relativo allo scambio" -#. module: edi_account_oca -#: model:ir.model,name:edi_account_oca.model_account_move -msgid "Journal Entry" -msgstr "Registrazione contabile" +#~ msgid "Exchange records" +#~ msgstr "Record di scambio" -#. module: edi_account_oca -#: model:ir.ui.menu,name:edi_account_oca.menu_account_edi_exchange_record -msgid "Moves" -msgstr "Movimenti" +#~ msgid "Moves" +#~ msgstr "Movimenti" -#. module: edi_account_oca -#: model:ir.model.fields,help:edi_account_oca.field_account_move__origin_edi_endpoint_id -msgid "Record generated via this endpoint" -msgstr "Record generato attraverso questo endpoint" +#~ msgid "Record generated via this endpoint" +#~ msgstr "Record generato attraverso questo endpoint" -#. module: edi_account_oca -#: model:ir.model.fields,help:edi_account_oca.field_account_bank_statement_line__edi_disable_auto -#: model:ir.model.fields,help:edi_account_oca.field_account_move__edi_disable_auto -msgid "When marked, EDI automatic processing will be avoided" -msgstr "Quando selezionata, l'elaborazione EDI automatica verrà evitata" +#~ msgid "When marked, EDI automatic processing will be avoided" +#~ msgstr "Quando selezionata, l'elaborazione EDI automatica verrà evitata" From 6178337208e3d8776a5c21250aa9e02ed1902d2b Mon Sep 17 00:00:00 2001 From: JordiMForgeFlow Date: Fri, 10 Apr 2026 15:39:19 +0200 Subject: [PATCH 57/57] [MIG] edi_account_oca: migration to V19 --- edi_account_oca/README.rst | 10 +++++----- edi_account_oca/__manifest__.py | 2 +- .../migrations/18.0.1.1.0/pre-migration.py | 15 --------------- edi_account_oca/static/description/index.html | 6 +++--- 4 files changed, 9 insertions(+), 24 deletions(-) delete mode 100644 edi_account_oca/migrations/18.0.1.1.0/pre-migration.py diff --git a/edi_account_oca/README.rst b/edi_account_oca/README.rst index 5d5633f6e..d8f9b3f4a 100644 --- a/edi_account_oca/README.rst +++ b/edi_account_oca/README.rst @@ -21,13 +21,13 @@ Account Listeners :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html :alt: License: LGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fedi--framework-lightgray.png?logo=github - :target: https://github.com/OCA/edi-framework/tree/18.0/edi_account_oca + :target: https://github.com/OCA/edi-framework/tree/19.0/edi_account_oca :alt: OCA/edi-framework .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/edi-framework-18-0/edi-framework-18-0-edi_account_oca + :target: https://translation.odoo-community.org/projects/edi-framework-19-0/edi-framework-19-0-edi_account_oca :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png - :target: https://runboat.odoo-community.org/builds?repo=OCA/edi-framework&target_branch=18.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/edi-framework&target_branch=19.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -59,7 +59,7 @@ Bug Tracker Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -100,6 +100,6 @@ Current `maintainer `__: |maintainer-etobella| -This module is part of the `OCA/edi-framework `_ project on GitHub. +This module is part of the `OCA/edi-framework `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/edi_account_oca/__manifest__.py b/edi_account_oca/__manifest__.py index c75c0a635..dde8a1709 100644 --- a/edi_account_oca/__manifest__.py +++ b/edi_account_oca/__manifest__.py @@ -5,7 +5,7 @@ "name": "Account Listeners", "summary": """ Define some component listeners for Account Moves""", - "version": "18.0.1.1.1", + "version": "19.0.1.0.0", "license": "LGPL-3", "author": "Dixmit,Odoo Community Association (OCA)", "maintainers": ["etobella"], diff --git a/edi_account_oca/migrations/18.0.1.1.0/pre-migration.py b/edi_account_oca/migrations/18.0.1.1.0/pre-migration.py deleted file mode 100644 index 66c07613f..000000000 --- a/edi_account_oca/migrations/18.0.1.1.0/pre-migration.py +++ /dev/null @@ -1,15 +0,0 @@ -from openupgradelib import openupgrade - - -@openupgrade.migrate() -def migrate(env, version): - # We recreate the ir.model.data records in the - # edi_oca module to ensure that other modules work properly - for module in ["edi_account_core_oca"]: - for data in env["ir.model.data"].search([("module", "=", module)]): - if not env["ir.model.data"].search_count( - [("module", "=", "edi_account_oca"), ("name", "=", data.name)] - ): - data.copy( - {"module": "edi_account_oca", "noupdate": True} - ).name = data.name diff --git a/edi_account_oca/static/description/index.html b/edi_account_oca/static/description/index.html index 96e0cb148..a249416c4 100644 --- a/edi_account_oca/static/description/index.html +++ b/edi_account_oca/static/description/index.html @@ -374,7 +374,7 @@

Account Listeners

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:9c622b5f50e49edfdafbe10326f54e8154153ab55e2d0734a2a4cd1672659d4b !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: LGPL-3 OCA/edi-framework Translate me on Weblate Try me on Runboat

+

Beta License: LGPL-3 OCA/edi-framework Translate me on Weblate Try me on Runboat

In order to add a new integration for an account, you need to create a listener:

@@ -405,7 +405,7 @@ 

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed -feedback.

+feedback.

Do not contact contributors directly about support or help with technical issues.

@@ -437,7 +437,7 @@

Maintainers

promote its widespread use.

Current maintainer:

etobella

-

This module is part of the OCA/edi-framework project on GitHub.

+

This module is part of the OCA/edi-framework project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.