Skip to content

Commit

Permalink
Merge PR #893 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by simahawk
  • Loading branch information
OCA-git-bot committed Dec 4, 2024
2 parents 05e2eb8 + 3349389 commit c428ffc
Show file tree
Hide file tree
Showing 17 changed files with 881 additions and 1 deletion.
2 changes: 1 addition & 1 deletion account_einvoice_generate/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class AccountMove(models.Model):
def get_payment_identifier(self):
"""This method is designed to be inherited in localization modules"""
self.ensure_one()
return None
return self.payment_reference

@api.model
def _get_invoice_report_names(self):
Expand Down
83 changes: 83 additions & 0 deletions base_ubl_payment/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
================
Base UBL Payment
================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:5d8f1ed6a0406980d933f6c275dfbc46a8171e11fdebde49bbef014f0feec5af
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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/16.0/base_ubl_payment
:alt: OCA/edi
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/edi-16-0/edi-16-0-base_ubl_payment
: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&target_branch=16.0
:alt: Try me on Runboat

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

This module is a small module above the *base_ubl* module;
it adds the generation of the *PaymentMeans* UBL block.
I decided to make it a separate module because it depends
on the module *account_payment_unece* which itself depend on
*account_banking_payment_export*, and I didn't want to add
these dependencies on the *base_ubl* module.

**Table of contents**

.. contents::
:local:

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/edi/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/issues/new?body=module:%20base_ubl_payment%0Aversion:%2016.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
~~~~~~~

* Akretion

Contributors
~~~~~~~~~~~~

* Alexis de Lattre <[email protected]>
* Andrea Stirpe <[email protected]>
* Dhara Solanki <[email protected]>

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 <https://github.com/OCA/edi/tree/16.0/base_ubl_payment>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions base_ubl_payment/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from . import models
14 changes: 14 additions & 0 deletions base_ubl_payment/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# © 2016-2017 Akretion (Alexis de Lattre <[email protected]>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
"name": "Base UBL Payment",
"version": "16.0.1.0.0",
"category": "Hidden",
"license": "AGPL-3",
"summary": "Payment-related code for Universal Business Language (UBL)",
"author": "Akretion,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/edi",
"depends": ["account_payment_unece", "base_ubl"],
"installable": True,
}
42 changes: 42 additions & 0 deletions base_ubl_payment/i18n/base_ubl_payment.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_ubl_payment
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.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: base_ubl_payment
#: model:ir.model,name:base_ubl_payment.model_base_ubl
msgid "Common methods to generate and parse UBL XML files"
msgstr ""

#. module: base_ubl_payment
#: model:ir.model.fields,field_description:base_ubl_payment.field_base_ubl__display_name
msgid "Display Name"
msgstr ""

#. module: base_ubl_payment
#: model:ir.model.fields,field_description:base_ubl_payment.field_base_ubl__id
msgid "ID"
msgstr ""

#. module: base_ubl_payment
#: model:ir.model.fields,field_description:base_ubl_payment.field_base_ubl____last_update
msgid "Last Modified on"
msgstr ""

#. module: base_ubl_payment
#: code:addons/base_ubl_payment/models/ubl.py:0
#, python-format
msgid ""
"Missing 'UNECE Payment Mean' on payment type '{method}' "
"used by the payment mode '{mode}'."
msgstr ""
47 changes: 47 additions & 0 deletions base_ubl_payment/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_ubl_payment
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-11-22 20:34+0000\n"
"Last-Translator: Ivorra78 <[email protected]>\n"
"Language-Team: none\n"
"Language: es\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.17\n"

#. module: base_ubl_payment
#: model:ir.model,name:base_ubl_payment.model_base_ubl
msgid "Common methods to generate and parse UBL XML files"
msgstr "Métodos habituales para generar y analizar archivos XML UBL"

#. module: base_ubl_payment
#: model:ir.model.fields,field_description:base_ubl_payment.field_base_ubl__display_name
msgid "Display Name"
msgstr "Mostrar Nombre"

#. module: base_ubl_payment
#: model:ir.model.fields,field_description:base_ubl_payment.field_base_ubl__id
msgid "ID"
msgstr "ID"

#. module: base_ubl_payment
#: model:ir.model.fields,field_description:base_ubl_payment.field_base_ubl____last_update
msgid "Last Modified on"
msgstr "Última Modificación el"

#. module: base_ubl_payment
#: code:addons/base_ubl_payment/models/ubl.py:0
#, python-format
msgid ""
"Missing 'UNECE Payment Mean' on payment type '{method}' "
"used by the payment mode '{mode}'."
msgstr ""
"Falta 'UNECE Payment Mean' en el tipo de pago '{method}' utilizado por el modo de "
"pago '{mode}'."
47 changes: 47 additions & 0 deletions base_ubl_payment/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_ubl_payment
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-05-29 11:08+0000\n"
"Last-Translator: Claude R Perrin <[email protected]>\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.17\n"

#. module: base_ubl_payment
#: model:ir.model,name:base_ubl_payment.model_base_ubl
msgid "Common methods to generate and parse UBL XML files"
msgstr "Méthodes courantes pour générer et analyser les fichiers XML UBL"

#. module: base_ubl_payment
#: model:ir.model.fields,field_description:base_ubl_payment.field_base_ubl__display_name
msgid "Display Name"
msgstr "Nom affiché"

#. module: base_ubl_payment
#: model:ir.model.fields,field_description:base_ubl_payment.field_base_ubl__id
msgid "ID"
msgstr "ID"

#. module: base_ubl_payment
#: model:ir.model.fields,field_description:base_ubl_payment.field_base_ubl____last_update
msgid "Last Modified on"
msgstr "Dernière modification le"

#. module: base_ubl_payment
#: code:addons/base_ubl_payment/models/ubl.py:0
#, python-format
msgid ""
"Missing 'UNECE Payment Mean' on payment type '{method}' "
"used by the payment mode '{mode}'."
msgstr ""
"'Moyen de paiement UNECE’ manquant sur le type de paiement '{method}' utilisé par "
"le mode de paiement '{mode}'."
47 changes: 47 additions & 0 deletions base_ubl_payment/i18n/hr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_ubl_payment
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2019-11-12 17:34+0000\n"
"Last-Translator: Bole <[email protected]>\n"
"Language-Team: none\n"
"Language: hr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
"X-Generator: Weblate 3.8\n"

#. module: base_ubl_payment
#: model:ir.model,name:base_ubl_payment.model_base_ubl
msgid "Common methods to generate and parse UBL XML files"
msgstr "Zajedničke metode za generiranje i parsiranje UBL XML datoteka"

#. module: base_ubl_payment
#: model:ir.model.fields,field_description:base_ubl_payment.field_base_ubl__display_name
msgid "Display Name"
msgstr ""

#. module: base_ubl_payment
#: model:ir.model.fields,field_description:base_ubl_payment.field_base_ubl__id
msgid "ID"
msgstr ""

#. module: base_ubl_payment
#: model:ir.model.fields,field_description:base_ubl_payment.field_base_ubl____last_update
msgid "Last Modified on"
msgstr ""

#. module: base_ubl_payment
#: code:addons/base_ubl_payment/models/ubl.py:0
#, python-format
msgid ""
"Missing 'UNECE Payment Mean' on payment type '{method}' "
"used by the payment mode '{mode}'."
msgstr ""
"Nedostaje UNECE šifra načina plaćanja '{method}' korštenog na tipu plaćanja '{mode}'."
48 changes: 48 additions & 0 deletions base_ubl_payment/i18n/nl.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_ubl_payment
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2020-12-13 02:36+0000\n"
"Last-Translator: Bosd <[email protected]>\n"
"Language-Team: none\n"
"Language: nl\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 3.10\n"

#. module: base_ubl_payment
#: model:ir.model,name:base_ubl_payment.model_base_ubl
msgid "Common methods to generate and parse UBL XML files"
msgstr ""
"Gemeenschappelijke code voor het genereren en verwerken van UBL XML bestanden"

#. module: base_ubl_payment
#: model:ir.model.fields,field_description:base_ubl_payment.field_base_ubl__display_name
msgid "Display Name"
msgstr ""

#. module: base_ubl_payment
#: model:ir.model.fields,field_description:base_ubl_payment.field_base_ubl__id
msgid "ID"
msgstr ""

#. module: base_ubl_payment
#: model:ir.model.fields,field_description:base_ubl_payment.field_base_ubl____last_update
msgid "Last Modified on"
msgstr ""

#. module: base_ubl_payment
#: code:addons/base_ubl_payment/models/ubl.py:0
#, python-format
msgid ""
"Missing 'UNECE Payment Mean' on payment type '{method}' "
"used by the payment mode '{mode}'."
msgstr ""
"Ontbrekende 'UNECE betaalmethode' voor betalingstype '{method}' gebruikt door "
"betaalmethode '{mode}'."
3 changes: 3 additions & 0 deletions base_ubl_payment/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from . import ubl
Loading

0 comments on commit c428ffc

Please sign in to comment.