Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
418e53c
[ADD] edi_account
etobella Nov 30, 2020
9a0ca54
[UPD] Update edi_account.pot
oca-travis Dec 1, 2020
d437af0
[UPD] README.rst
OCA-git-bot Dec 1, 2020
40b9567
edi_account 13.0.1.0.1
OCA-git-bot Dec 1, 2020
54e6745
[CHG] edi: Use more permissive licence: AGPL-> LGPL
etobella Mar 10, 2021
b586d04
[UPD] README.rst
OCA-git-bot Mar 15, 2021
b0ee6e9
edi_account 13.0.1.0.2
OCA-git-bot Mar 15, 2021
63894ad
[MIG] edi_account_oca: Migration to 14.0
etobella May 6, 2021
80eb9a5
[UPD] Update edi_account_oca.pot
oca-travis May 13, 2021
307ffb2
[UPD] README.rst
OCA-git-bot May 13, 2021
5ae31fa
Added translation using Weblate (French)
Yvesldff Jun 17, 2021
654ffd8
Translated using Weblate (French)
Yvesldff Jun 17, 2021
c812759
[IMP] edi_account: Add a menu for accounting people
etobella Oct 5, 2021
0c11df1
[IMP] edi_account: Add a disable automatic on account.move
etobella Oct 5, 2021
40f4cc2
[UPD] Update edi_account_oca.pot
Dec 9, 2021
5a190c8
edi_account_oca 14.0.1.1.0
OCA-git-bot Dec 9, 2021
78303e8
Update translation files
oca-transbot Dec 9, 2021
999eba4
[MIG] edi_account_oca: Migration to 15.0
ao-landoo Feb 23, 2022
0bdb8fd
[UPD] Update edi_account_oca.pot
Mar 1, 2022
7487756
[UPD] README.rst
OCA-git-bot Mar 1, 2022
71a7994
[FIX] edi_account_oca: Tests failing
etobella May 13, 2022
5709400
edi_account_oca 15.0.1.0.1
OCA-git-bot May 13, 2022
1ee62b8
[UPD] Update edi_account_oca.pot
Feb 2, 2023
0dea9b0
Update translation files
weblate Feb 2, 2023
0846dd1
[IMP] edi_account_oca: pre-commit stuff
OriolMForgeFlow Aug 1, 2023
0cfda05
[MIG] edi_account_oca: Migration to 16.0
OriolMForgeFlow Aug 1, 2023
10b4df3
[UPD] Update edi_account_oca.pot
Oct 17, 2023
5f752a6
[BOT] post-merge updates
OCA-git-bot Oct 17, 2023
66cbda4
Update translation files
weblate Oct 17, 2023
106303e
[IMP] edi_oca: add partner form page
Jan 10, 2024
c32bc3d
[BOT] post-merge updates
OCA-git-bot Jan 15, 2024
86cd860
[UPD] Update edi_account_oca.pot
Feb 4, 2024
4b252f9
Update translation files
weblate Feb 4, 2024
b5f45d7
Added translation using Weblate (Italian)
mymage May 13, 2024
e8307f0
[IMP] edi_account_oca: pre-commit auto fixes
Jun 20, 2024
984e3de
[MIG] edi_account_oca: Migration to 17.0
Jun 20, 2024
26aafc2
[UPD] Update edi_account_oca.pot
Jul 25, 2024
3ea35e8
[BOT] post-merge updates
OCA-git-bot Jul 25, 2024
747b689
Update translation files
weblate Jul 25, 2024
fddbb35
Translated using Weblate (Italian)
mymage Jul 29, 2024
c03fce4
[IMP] edi_account_oca: pre-commit stuff
JordiMForgeFlow Oct 23, 2024
a8301c0
[MIG] edi_account_oca: Migration to V18
JordiMForgeFlow Oct 23, 2024
bb52cdb
[UPD] Update edi_account_oca.pot
Jan 16, 2025
8467ad3
[BOT] post-merge updates
OCA-git-bot Jan 16, 2025
617be74
[UPD] Update edi_account_oca.pot
Mar 14, 2025
d15a094
Update translation files
weblate Mar 14, 2025
e847a2f
Translated using Weblate (Italian)
mymage Mar 18, 2025
2f27692
[FIX] edi_account_oca: Fix window action
grindtildeath Sep 3, 2025
cdb759a
[BOT] post-merge updates
OCA-git-bot Sep 3, 2025
9207639
[UPD] Update edi_account_oca.pot
Sep 11, 2025
857f5f0
Update translation files
weblate Sep 11, 2025
a63729e
Translated using Weblate (Italian)
mymage Sep 15, 2025
e6ce256
[IMP] edi_account_oca: Remove all non component logic
etobella Aug 29, 2025
d8935dc
[UPD] Update edi_account_oca.pot
Sep 29, 2025
ee27b56
[BOT] post-merge updates
OCA-git-bot Sep 29, 2025
306b6b4
Update translation files
weblate Sep 29, 2025
6178337
[MIG] edi_account_oca: migration to V19
JordiMForgeFlow Apr 10, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
105 changes: 105 additions & 0 deletions edi_account_oca/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

=================
Account Listeners
=================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:9c622b5f50e49edfdafbe10326f54e8154153ab55e2d0734a2a4cd1672659d4b
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/license-LGPL--3-blue.png
: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/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-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=19.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

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

.. code:: 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 <https://github.com/OCA/edi-framework/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 <https://github.com/OCA/edi-framework/issues/new?body=module:%20edi_account_oca%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Authors
-------

* Dixmit

Contributors
------------

- Enric Tobella <etobella@creublanca.es>
- [APSL-Nagarro](https://apsl.tech):

- Antoni Marroig <amarroig@apsl.net>

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.

.. |maintainer-etobella| image:: https://github.com/etobella.png?size=40px
:target: https://github.com/etobella
:alt: etobella

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-etobella|

This module is part of the `OCA/edi-framework <https://github.com/OCA/edi-framework/tree/19.0/edi_account_oca>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions edi_account_oca/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
17 changes: 17 additions & 0 deletions edi_account_oca/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright 2020 Dixmit
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).

{
"name": "Account Listeners",
"summary": """
Define some component listeners for Account Moves""",
"version": "19.0.1.0.0",
"license": "LGPL-3",
"author": "Dixmit,Odoo Community Association (OCA)",
"maintainers": ["etobella"],
"development_status": "Beta",
"website": "https://github.com/OCA/edi-framework",
"depends": ["edi_account_core_oca", "component_event"],
"data": [],
"demo": [],
}
30 changes: 30 additions & 0 deletions edi_account_oca/i18n/edi_account.pot
Original file line number Diff line number Diff line change
@@ -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 "<span class=\"o_stat_text\">EDI</span>"
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 ""
19 changes: 19 additions & 0 deletions edi_account_oca/i18n/edi_account_oca.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * edi_account_oca
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 18.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_oca
#: model:ir.model,name:edi_account_oca.model_account_move
msgid "Journal Entry"
msgstr ""
25 changes: 25 additions & 0 deletions edi_account_oca/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * edi_account_oca
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2021-06-17 15:48+0000\n"
"Last-Translator: Yves Le Doeuff <yld@alliasys.fr>\n"
"Language-Team: none\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 4.3.2\n"

#. module: edi_account_oca
#: model:ir.model,name:edi_account_oca.model_account_move
msgid "Journal Entry"
msgstr ""

#~ msgid "Display Name"
#~ msgstr "Nom affiché"
76 changes: 76 additions & 0 deletions edi_account_oca/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * edi_account_oca
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2025-09-15 08:42+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
"Language-Team: none\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"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.4\n"

#. module: edi_account_oca
#: model:ir.model,name:edi_account_oca.model_account_move
msgid "Journal Entry"
msgstr "Registrazione contabile"

#~ msgid "<span class=\"o_stat_text\">EDI</span>"
#~ msgstr "<span class=\"o_stat_text\">EDI</span>"

#~ msgid "Account Moves Exchange Record"
#~ msgstr "Recod scambio movimenti conto"

#~ msgid "Disable auto"
#~ msgstr "Disabilita automatico"

#~ msgid "EDI Configuration"
#~ msgstr "Configurazione EDI"

#~ msgid "EDI origin endpoint"
#~ msgstr "Endpoint origine EDI"

#~ msgid "EDI origin exchange type"
#~ msgstr "Tipo scambio origine EDI"

#~ msgid "EDI origin record"
#~ msgstr "Record origine EDI"

#~ msgid "EDI record that originated this document."
#~ msgstr "Record EDI che ha generato questo documento."

#~ msgid "Edi Config"
#~ msgstr "Configurazione EDI"

#~ msgid "Edi Has Form Config"
#~ msgstr "EDI ha una maschera di configurazione"

#~ msgid "Electronic Data Interchange"
#~ msgstr "Scambio Dati Elettronico"

#~ msgid "Exchange Record"
#~ msgstr "Record di scambio"

#~ msgid "Exchange Record Count"
#~ msgstr "Conteggio record di scambio"

#~ msgid "Exchange Related Record"
#~ msgstr "Record relativo allo scambio"

#~ msgid "Exchange records"
#~ msgstr "Record di scambio"

#~ msgid "Moves"
#~ msgstr "Movimenti"

#~ msgid "Record generated via this endpoint"
#~ msgstr "Record generato attraverso questo endpoint"

#~ msgid "When marked, EDI automatic processing will be avoided"
#~ msgstr "Quando selezionata, l'elaborazione EDI automatica verrà evitata"
1 change: 1 addition & 0 deletions edi_account_oca/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import account_move
30 changes: 30 additions & 0 deletions edi_account_oca/models/account_move.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Copyright 2020 Dixmit
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).

from odoo import models


class AccountMove(models.Model):
_inherit = "account.move"

def _post(self, soft=True):
result = super()._post(soft=soft)
# 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 _invoice_paid_hook(self):
"""This could be used to notify our provider that we are paying"""
result = super()._invoice_paid_hook()
if self:
self._event("on_paid_account_move").notify(self)
return result
3 changes: 3 additions & 0 deletions edi_account_oca/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
3 changes: 3 additions & 0 deletions edi_account_oca/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Enric Tobella \<<etobella@creublanca.es>\>
- \[APSL-Nagarro\](<https://apsl.tech>):
- Antoni Marroig \<<amarroig@apsl.net>\>
15 changes: 15 additions & 0 deletions edi_account_oca/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
In order to add a new integration for an account, you need to create a
listener:

``` 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
Binary file added edi_account_oca/static/description/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading