diff --git a/account_payment_unece/README.rst b/account_payment_unece/README.rst new file mode 100644 index 00000000..252f84ce --- /dev/null +++ b/account_payment_unece/README.rst @@ -0,0 +1,110 @@ +===================== +Account Payment UNECE +===================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:e306b402530ab9b373d16393bf5f1ea157f039c66ceeabe351ce9ae348f5842b + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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%2Fcommunity--data--files-lightgray.png?logo=github + :target: https://github.com/OCA/community-data-files/tree/17.0/account_payment_unece + :alt: OCA/community-data-files +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/community-data-files-17-0/community-data-files-17-0-account_payment_unece + :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/community-data-files&target_branch=17.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module adds a field *UNECE Payment Mean* on *Payment Methods* to be +able to use a standard written by the `United Nations Economic +Commission for Europe `__ (which has 56 members +states in Europe, America and Central Asia, cf +`Wikipedia `__). +This standard define a codification of the payment modes, cf the +`official code +list `__. + +This codification is used for example in the two main international +standards for electronic invoicing: + +- `Cross Industry + Invoice `__ + (CII), +- `Universal Business Language `__ (UBL) + +**Table of contents** + +.. contents:: + :local: + +Configuration +============= + +1. Go to the menu *Accounting > Configuration > Management > Payment + Methods* +2. On each payment method, select the appropriate value for the *UNECE + Code*. + +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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* Akretion + +Contributors +------------ + +- Alexis de Lattre +- Andrea Stirpe +- Levent Karakaş +- Pedro M. Baeza + +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-alexis-via| image:: https://github.com/alexis-via.png?size=40px + :target: https://github.com/alexis-via + :alt: alexis-via + +Current `maintainer `__: + +|maintainer-alexis-via| + +This module is part of the `OCA/community-data-files `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/account_payment_unece/__init__.py b/account_payment_unece/__init__.py new file mode 100644 index 00000000..31660d6a --- /dev/null +++ b/account_payment_unece/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from . import models diff --git a/account_payment_unece/__manifest__.py b/account_payment_unece/__manifest__.py new file mode 100644 index 00000000..c809405f --- /dev/null +++ b/account_payment_unece/__manifest__.py @@ -0,0 +1,21 @@ +# Copyright 2016-2020 Akretion France (http://www.akretion.com) +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). +# @author Alexis de Lattre + +{ + "name": "Account Payment UNECE", + "version": "17.0.1.0.0", + "category": "Accounting & Finance", + "license": "AGPL-3", + "summary": "UNECE nomenclature for the payment methods", + "author": "Akretion,Odoo Community Association (OCA)", + "maintainers": ["alexis-via"], + "website": "https://github.com/OCA/community-data-files", + "depends": ["account_payment_mode", "base_unece"], + "data": [ + "data/unece.xml", + "data/account_payment_method.xml", + "views/account_payment_method.xml", + ], + "installable": True, +} diff --git a/account_payment_unece/data/account_payment_method.xml b/account_payment_unece/data/account_payment_method.xml new file mode 100644 index 00000000..3be8efa2 --- /dev/null +++ b/account_payment_unece/data/account_payment_method.xml @@ -0,0 +1,15 @@ + + + + + + + + + diff --git a/account_payment_unece/data/unece.xml b/account_payment_unece/data/unece.xml new file mode 100644 index 00000000..5d5a8e44 --- /dev/null +++ b/account_payment_unece/data/unece.xml @@ -0,0 +1,679 @@ + + + + + payment_means + 1 + Instrument not defined + Not defined legally enforceable agreement between two or more parties (expressing a contractual right or a right to the payment of money). + + + payment_means + 2 + Automated clearing house credit + A credit transaction made through the automated clearing house system. + + + payment_means + 3 + Automated clearing house debit + A debit transaction made through the automated clearing house system. + + + payment_means + 4 + ACH demand debit reversal + A request to reverse an ACH debit transaction to a demand deposit account. + + + payment_means + 5 + ACH demand credit reversal + A request to reverse a credit transaction to a demand deposit account. + + + payment_means + 6 + ACH demand credit + A credit transaction made through the ACH system to a demand deposit account. + + + payment_means + 7 + ACH demand debit + A debit transaction made through the ACH system to a demand deposit account. + + + payment_means + 8 + Hold + Indicates that the bank should hold the payment for collection by the beneficiary or other instructions. + + + payment_means + 9 + National or regional clearing + Indicates that the payment should be made using the national or regional clearing. + + + payment_means + 10 + In cash + Payment by currency (including bills and coins) in circulation, including checking account deposits. + + + payment_means + 11 + ACH savings credit reversal + A request to reverse an ACH credit transaction to a savings account. + + + payment_means + 12 + ACH savings debit reversal + A request to reverse an ACH debit transaction to a savings account. + + + payment_means + 13 + ACH savings credit + A credit transaction made through the ACH system to a savings account. + + + payment_means + 14 + ACH savings debit + A debit transaction made through the ACH system to a savings account. + + + payment_means + 15 + Bookentry credit + A credit entry between two accounts at the same bank branch. Synonym: house credit. + + + payment_means + 16 + Bookentry debit + A debit entry between two accounts at the same bank branch. Synonym: house debit. + + + payment_means + 17 + ACH demand cash concentration/disbursement (CCD) credit + A credit transaction made through the ACH system to a demand deposit account using the CCD payment format. + + + payment_means + 18 + ACH demand cash concentration/disbursement (CCD) debit + A debit transaction made through the ACH system to a demand deposit account using the CCD payment format. + + + payment_means + 19 + ACH demand corporate trade payment (CTP) credit + A credit transaction made through the ACH system to a demand deposit account using the CTP payment format. + + + payment_means + 20 + Cheque + Payment by a pre-printed form on which instructions are given to an account holder (a bank or building society) to pay a stated sum to a named recipient. + + + payment_means + 21 + Banker's draft + Issue of a banker's draft in payment of the funds. + + + payment_means + 22 + Certified banker's draft + Cheque drawn by a bank on itself or its agent. A person who owes money to another buys the draft from a bank for cash and hands it to the creditor who need have no fear that it might be dishonoured. + + + payment_means + 23 + Bank cheque (issued by a banking or similar establishment) + Payment by a pre-printed form, which has been completed by a financial institution, on which instructions are given to an account holder (a bank or building society) to pay a stated sum to a named recipient. + + + payment_means + 24 + Bill of exchange awaiting acceptance + Bill drawn by the creditor on the debtor but not yet accepted by the debtor. + + + payment_means + 25 + Certified cheque + Payment by a pre-printed form stamped with the paying bank's certification on which instructions are given to an account holder (a bank or building society) to pay a stated sum to a named recipient. + + + payment_means + 26 + Local cheque + Indicates that the cheque is given local to the recipient. + + + payment_means + 27 + ACH demand corporate trade payment (CTP) debit + A debit transaction made through the ACH system to a demand deposit account using the CTP payment format. + + + payment_means + 28 + ACH demand corporate trade exchange (CTX) credit + A credit transaction made through the ACH system to a demand deposit account using the CTX payment format. + + + payment_means + 29 + ACH demand corporate trade exchange (CTX) debit + A debit transaction made through the ACH system to a demand account using the CTX payment format. + + + payment_means + 30 + Credit transfer + Payment by credit movement of funds from one account to another. + + + payment_means + 31 + Debit transfer + Payment by debit movement of funds from one account to another. + + + payment_means + 32 + ACH demand cash concentration/disbursement plus (CCD+) credit + A credit transaction made through the ACH system to a demand deposit account using the CCD+ payment format. + + + payment_means + 33 + ACH demand cash concentration/disbursement plus (CCD+) debit + A debit transaction made through the ACH system to a demand deposit account using the CCD+ payment format. + + + payment_means + 34 + ACH prearranged payment and deposit (PPD) + A consumer credit transaction made through the ACH system to a demand deposit or savings account. + + + payment_means + 35 + ACH savings cash concentration/disbursement (CCD) credit + A credit transaction made through the ACH system to a demand deposit or savings account. + + + payment_means + 36 + ACH savings cash concentration/disbursement (CCD) debit + A debit transaction made through the ACH system to a savings account using the CCD payment format. + + + payment_means + 37 + ACH savings corporate trade payment (CTP) credit + A credit transaction made through the ACH system to a savings account using the CTP payment format. + + + payment_means + 38 + ACH savings corporate trade payment (CTP) debit + A debit transaction made through the ACH system to a savings account using the CTP payment format. + + + payment_means + 39 + ACH savings corporate trade exchange (CTX) credit + A credit transaction made through the ACH system to a savings account using the CTX payment format. + + + payment_means + 40 + ACH savings corporate trade exchange (CTX) debit + A debit transaction made through the ACH system to a savings account using the CTX payment format. + + + payment_means + 41 + ACH savings cash concentration/disbursement plus (CCD+) credit + A credit transaction made through the ACH system to a savings account using the CCD+ payment format. + + + payment_means + 42 + Payment to bank account + Payment by an arrangement for settling debts that is operated by the Post Office. + + + payment_means + 43 + ACH savings cash concentration/disbursement plus (CCD+) debit + A debit transaction made through the ACH system to a savings account using the CCD+ payment format. + + + payment_means + 44 + Accepted bill of exchange + Bill drawn by the creditor on the debtor and accepted by the debtor. + + + payment_means + 45 + Referenced home-banking credit transfer + A referenced credit transfer initiated through home-banking. + + + payment_means + 46 + Interbank debit transfer + A debit transfer via interbank means. + + + payment_means + 47 + Home-banking debit transfer + A debit transfer initiated through home-banking. + + + payment_means + 48 + Bank card + Payment by means of a card issued by a bank or other financial institution. + + + payment_means + 49 + Direct debit + The amount is to be, or has been, directly debited to the customer's bank account. + + + payment_means + 50 + Payment by postgiro + A method for the transmission of funds through the postal system rather than through the banking system. + + + payment_means + 51 + FR, norme 6 97-Telereglement CFONB (French Organisation for Banking Standards) - Option A + A French standard procedure that allows a debtor to pay an amount due to a creditor. The creditor will forward it to its bank, which will collect the money on the bank account of the debtor. + + + payment_means + 52 + Urgent commercial payment + Payment order which requires guaranteed processing by the most appropriate means to ensure it occurs on the requested execution date, provided that it is issued to the ordered bank before the agreed cut-off time. + + + payment_means + 53 + Urgent Treasury Payment + Payment order or transfer which must be executed, by the most appropriate means, as urgently as possible and before urgent commercial payments. + + + payment_means + 54 + Credit card + Payment made by means of credit card. + + + payment_means + 55 + Debit card + Payment made by means of debit card. + + + payment_means + 56 + Bankgiro + Payment will be, or has been, made by bankgiro. + + + payment_means + 57 + Standing agreement + The payment means have been previously agreed between seller and buyer and thus are not stated again. + + + payment_means + 58 + SEPA credit transfer + Credit transfer inside the Single Euro Payment Area (SEPA) system. + + + payment_means + 59 + SEPA direct debit + Direct debit inside the Single Euro Payment Area (SEPA) system. + + + payment_means + 60 + Promissory note + Payment by an unconditional promise in writing made by one person to another, signed by the maker, engaging to pay on demand or at a fixed or determinable future time a sum certain in money, to order or to bearer. + + + payment_means + 61 + Promissory note signed by the debtor + Payment by an unconditional promise in writing made by the debtor to another person, signed by the debtor, engaging to pay on demand or at a fixed or determinable future time a sum certain in money, to order or to bearer. + + + payment_means + 62 + Promissory note signed by the debtor and endorsed by a bank + Payment by an unconditional promise in writing made by the debtor to another person, signed by the debtor and endorsed by a bank, engaging to pay on demand or at a fixed or determinable future time a sum certain in money, to order or to bearer. + + + payment_means + 63 + Promissory note signed by the debtor and endorsed by a third party + Payment by an unconditional promise in writing made by the debtor to another person, signed by the debtor and endorsed by a third party, engaging to pay on demand or at a fixed or determinable future time a sum certain in money, to order or to bearer. + + + payment_means + 64 + Promissory note signed by a bank + Payment by an unconditional promise in writing made by the bank to another person, signed by the bank, engaging to pay on demand or at a fixed or determinable future time a sum certain in money, to order or to bearer. + + + payment_means + 65 + Promissory note signed by a bank and endorsed by another bank + Payment by an unconditional promise in writing made by the bank to another person, signed by the bank and endorsed by another bank, engaging to pay on demand or at a fixed or determinable future time a sum certain in money, to order or to bearer. + + + payment_means + 66 + Promissory note signed by a third party + Payment by an unconditional promise in writing made by a third party to another person, signed by the third party, engaging to pay on demand or at a fixed or determinable future time a sum certain in money, to order or to bearer. + + + payment_means + 67 + Promissory note signed by a third party and endorsed by a bank + Payment by an unconditional promise in writing made by a third party to another person, signed by the third party and endorsed by a bank, engaging to pay on demand or at a fixed or determinable future time a sum certain in money, to order or to bearer. + + + payment_means + 68 + Online payment service + Payment will be made or has been made by an online payment service. + + + payment_means + 70 + Bill drawn by the creditor on the debtor + Bill drawn by the creditor on the debtor. + + + payment_means + 74 + Bill drawn by the creditor on a bank + Bill drawn by the creditor on a bank. + + + payment_means + 75 + Bill drawn by the creditor, endorsed by another bank + Bill drawn by the creditor, endorsed by another bank. + + + payment_means + 76 + Bill drawn by the creditor on a bank and endorsed by a third party + Bill drawn by the creditor on a bank and endorsed by a third party. + + + payment_means + 77 + Bill drawn by the creditor on a third party + Bill drawn by the creditor on a third party. + + + payment_means + 78 + Bill drawn by creditor on third party, accepted and endorsed by bank + Bill drawn by creditor on third party, accepted and endorsed by bank. + + + payment_means + 91 + Not transferable banker's draft + Issue a bankers draft not endorsable. + + + payment_means + 92 + Not transferable local cheque + Issue a cheque not endorsable in payment of the funds. + + + payment_means + 93 + Reference giro + Ordering customer tells the bank to use the payment system 'Reference giro'. Used in the Finnish national banking system. + + + payment_means + 94 + Urgent giro + Ordering customer tells the bank to use the bank service 'Urgent Giro' when transferring the payment. Used in Finnish national banking system. + + + payment_means + 95 + Free format giro + Ordering customer tells the ordering bank to use the bank service 'Free Format Giro' when transferring the payment. Used in Finnish national banking system. + + + payment_means + 96 + Requested method for payment was not used + If the requested method for payment was or could not be used, this code indicates that. + + + payment_means + 97 + Clearing between partners + Amounts which two partners owe to each other to be compensated in order to avoid useless payments. + + + payment_means + ZZZ + Mutually defined + A code assigned within a code list to be used on an interim basis and as defined among trading partners until a precise code can be assigned to the code list. + + diff --git a/account_payment_unece/i18n/account_payment_unece.pot b/account_payment_unece/i18n/account_payment_unece.pot new file mode 100644 index 00000000..8c5c12b8 --- /dev/null +++ b/account_payment_unece/i18n/account_payment_unece.pot @@ -0,0 +1,51 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_unece +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.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: account_payment_unece +#: model:ir.model.fields.selection,name:account_payment_unece.selection__unece_code_list__type__payment_means +msgid "Payment Means (UNCL 4461)" +msgstr "" + +#. module: account_payment_unece +#: model:ir.model,name:account_payment_unece.model_account_payment_method +msgid "Payment Methods" +msgstr "" + +#. module: account_payment_unece +#: model:ir.model.fields,help:account_payment_unece.field_account_payment_method__unece_id +msgid "" +"Standard nomenclature of the United Nations Economic Commission for Europe " +"(UNECE) defined in UN/EDIFACT Data Element 4461" +msgstr "" + +#. module: account_payment_unece +#: model:ir.model.fields,field_description:account_payment_unece.field_unece_code_list__type +msgid "Type" +msgstr "" + +#. module: account_payment_unece +#: model:ir.model.fields,field_description:account_payment_unece.field_account_payment_method__unece_code +msgid "UNECE Code" +msgstr "" + +#. module: account_payment_unece +#: model:ir.model.fields,field_description:account_payment_unece.field_account_payment_method__unece_id +msgid "UNECE Payment Mean" +msgstr "" + +#. module: account_payment_unece +#: model:ir.model,name:account_payment_unece.model_unece_code_list +msgid "UNECE nomenclatures" +msgstr "" diff --git a/account_payment_unece/i18n/de.po b/account_payment_unece/i18n/de.po new file mode 100644 index 00000000..177d90d6 --- /dev/null +++ b/account_payment_unece/i18n/de.po @@ -0,0 +1,52 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_unece +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: de\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" + +#. module: account_payment_unece +#: model:ir.model.fields.selection,name:account_payment_unece.selection__unece_code_list__type__payment_means +msgid "Payment Means (UNCL 4461)" +msgstr "" + +#. module: account_payment_unece +#: model:ir.model,name:account_payment_unece.model_account_payment_method +msgid "Payment Methods" +msgstr "" + +#. module: account_payment_unece +#: model:ir.model.fields,help:account_payment_unece.field_account_payment_method__unece_id +msgid "" +"Standard nomenclature of the United Nations Economic Commission for Europe " +"(UNECE) defined in UN/EDIFACT Data Element 4461" +msgstr "" + +#. module: account_payment_unece +#: model:ir.model.fields,field_description:account_payment_unece.field_unece_code_list__type +msgid "Type" +msgstr "" + +#. module: account_payment_unece +#: model:ir.model.fields,field_description:account_payment_unece.field_account_payment_method__unece_code +msgid "UNECE Code" +msgstr "" + +#. module: account_payment_unece +#: model:ir.model.fields,field_description:account_payment_unece.field_account_payment_method__unece_id +msgid "UNECE Payment Mean" +msgstr "" + +#. module: account_payment_unece +#: model:ir.model,name:account_payment_unece.model_unece_code_list +msgid "UNECE nomenclatures" +msgstr "" diff --git a/account_payment_unece/i18n/es.po b/account_payment_unece/i18n/es.po new file mode 100644 index 00000000..b1e72ae3 --- /dev/null +++ b/account_payment_unece/i18n/es.po @@ -0,0 +1,56 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_unece +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2023-08-02 12:09+0000\n" +"Last-Translator: Ivorra78 \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: account_payment_unece +#: model:ir.model.fields.selection,name:account_payment_unece.selection__unece_code_list__type__payment_means +msgid "Payment Means (UNCL 4461)" +msgstr "Medios de pago (UNCL4461)" + +#. module: account_payment_unece +#: model:ir.model,name:account_payment_unece.model_account_payment_method +msgid "Payment Methods" +msgstr "Métodos de pago" + +#. module: account_payment_unece +#: model:ir.model.fields,help:account_payment_unece.field_account_payment_method__unece_id +msgid "" +"Standard nomenclature of the United Nations Economic Commission for Europe " +"(UNECE) defined in UN/EDIFACT Data Element 4461" +msgstr "" +"Nomenclatura normalizada de la Comisión Económica para Europa de las " +"Naciones Unidas (UNECE) definida en el elemento de datos 4461 de UN/EDIFACT" + +#. module: account_payment_unece +#: model:ir.model.fields,field_description:account_payment_unece.field_unece_code_list__type +msgid "Type" +msgstr "Tipo" + +#. module: account_payment_unece +#: model:ir.model.fields,field_description:account_payment_unece.field_account_payment_method__unece_code +msgid "UNECE Code" +msgstr "Código UNECE(CEPE)" + +#. module: account_payment_unece +#: model:ir.model.fields,field_description:account_payment_unece.field_account_payment_method__unece_id +msgid "UNECE Payment Mean" +msgstr "Medio de pago de la UNECE(CEPE)" + +#. module: account_payment_unece +#: model:ir.model,name:account_payment_unece.model_unece_code_list +msgid "UNECE nomenclatures" +msgstr "Nomenclaturas de la UNECE" diff --git a/account_payment_unece/i18n/fr.po b/account_payment_unece/i18n/fr.po new file mode 100644 index 00000000..a99ade1f --- /dev/null +++ b/account_payment_unece/i18n/fr.po @@ -0,0 +1,56 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_unece +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2023-06-05 16:10+0000\n" +"Last-Translator: Alexis de Lattre \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: account_payment_unece +#: model:ir.model.fields.selection,name:account_payment_unece.selection__unece_code_list__type__payment_means +msgid "Payment Means (UNCL 4461)" +msgstr "Moyens de paiement (UNCL 4461)" + +#. module: account_payment_unece +#: model:ir.model,name:account_payment_unece.model_account_payment_method +msgid "Payment Methods" +msgstr "Méthodes de paiement" + +#. module: account_payment_unece +#: model:ir.model.fields,help:account_payment_unece.field_account_payment_method__unece_id +msgid "" +"Standard nomenclature of the United Nations Economic Commission for Europe " +"(UNECE) defined in UN/EDIFACT Data Element 4461" +msgstr "" +"Nomenclature standard de la Commission économique des Nations unies pour " +"l'Europe (UNECE) définie dans l'élément de données UN/EDIFACT 4461" + +#. module: account_payment_unece +#: model:ir.model.fields,field_description:account_payment_unece.field_unece_code_list__type +msgid "Type" +msgstr "Type" + +#. module: account_payment_unece +#: model:ir.model.fields,field_description:account_payment_unece.field_account_payment_method__unece_code +msgid "UNECE Code" +msgstr "Code UNECE" + +#. module: account_payment_unece +#: model:ir.model.fields,field_description:account_payment_unece.field_account_payment_method__unece_id +msgid "UNECE Payment Mean" +msgstr "Moyen de paiement UNECE" + +#. module: account_payment_unece +#: model:ir.model,name:account_payment_unece.model_unece_code_list +msgid "UNECE nomenclatures" +msgstr "Nomenclatures UNECE" diff --git a/account_payment_unece/i18n/hr.po b/account_payment_unece/i18n/hr.po new file mode 100644 index 00000000..bda60989 --- /dev/null +++ b/account_payment_unece/i18n/hr.po @@ -0,0 +1,66 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_unece +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2023-01-31 08:12+0000\n" +"Last-Translator: Bole \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 4.14.1\n" + +#. module: account_payment_unece +#: model:ir.model.fields.selection,name:account_payment_unece.selection__unece_code_list__type__payment_means +msgid "Payment Means (UNCL 4461)" +msgstr "Način plaćanja (UNCL 4461)" + +#. module: account_payment_unece +#: model:ir.model,name:account_payment_unece.model_account_payment_method +msgid "Payment Methods" +msgstr "Metode plaćanja" + +#. module: account_payment_unece +#: model:ir.model.fields,help:account_payment_unece.field_account_payment_method__unece_id +msgid "" +"Standard nomenclature of the United Nations Economic Commission for Europe " +"(UNECE) defined in UN/EDIFACT Data Element 4461" +msgstr "" +"Standardna nomenklatura Ekonomske komisije Ujedinjenih naroda za Evropu " +"(UNECE) definirana u UN/EDIFACT podatkovnom elementu 4461" + +#. module: account_payment_unece +#: model:ir.model.fields,field_description:account_payment_unece.field_unece_code_list__type +msgid "Type" +msgstr "Tip" + +#. module: account_payment_unece +#: model:ir.model.fields,field_description:account_payment_unece.field_account_payment_method__unece_code +msgid "UNECE Code" +msgstr "UNECE šifra" + +#. module: account_payment_unece +#: model:ir.model.fields,field_description:account_payment_unece.field_account_payment_method__unece_id +msgid "UNECE Payment Mean" +msgstr "UNECE način plaćanja" + +#. module: account_payment_unece +#: model:ir.model,name:account_payment_unece.model_unece_code_list +msgid "UNECE nomenclatures" +msgstr "UNECE nomeklature" + +#~ msgid "Display Name" +#~ msgstr "Prikazani naziv" + +#~ msgid "ID" +#~ msgstr "ID" + +#~ msgid "Last Modified on" +#~ msgstr "Zadnje modificirano" diff --git a/account_payment_unece/models/__init__.py b/account_payment_unece/models/__init__.py new file mode 100644 index 00000000..4883d2f8 --- /dev/null +++ b/account_payment_unece/models/__init__.py @@ -0,0 +1,4 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from . import unece_code_list +from . import account_payment_method diff --git a/account_payment_unece/models/account_payment_method.py b/account_payment_unece/models/account_payment_method.py new file mode 100644 index 00000000..a3095a3f --- /dev/null +++ b/account_payment_unece/models/account_payment_method.py @@ -0,0 +1,20 @@ +# Copyright 2016-2020 Akretion France (http://www.akretion.com) +# @author: Alexis de Lattre +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class AccountPaymentMethod(models.Model): + _inherit = "account.payment.method" + + unece_id = fields.Many2one( + comodel_name="unece.code.list", + string="UNECE Payment Mean", + domain=[("type", "=", "payment_means")], + ondelete="restrict", + help="Standard nomenclature of the United Nations Economic " + "Commission for Europe (UNECE) defined in UN/EDIFACT Data " + "Element 4461", + ) + unece_code = fields.Char(related="unece_id.code", store=True, string="UNECE Code") diff --git a/account_payment_unece/models/unece_code_list.py b/account_payment_unece/models/unece_code_list.py new file mode 100644 index 00000000..5b201d00 --- /dev/null +++ b/account_payment_unece/models/unece_code_list.py @@ -0,0 +1,14 @@ +# Copyright 2016-2020 Akretion France (http://www.akretion.com) +# @author: Alexis de Lattre +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class UneceCodeList(models.Model): + _inherit = "unece.code.list" + + type = fields.Selection( + selection_add=[("payment_means", "Payment Means (UNCL 4461)")], + ondelete={"payment_means": "cascade"}, + ) diff --git a/account_payment_unece/pyproject.toml b/account_payment_unece/pyproject.toml new file mode 100644 index 00000000..4231d0cc --- /dev/null +++ b/account_payment_unece/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/account_payment_unece/readme/CONFIGURE.md b/account_payment_unece/readme/CONFIGURE.md new file mode 100644 index 00000000..122ae176 --- /dev/null +++ b/account_payment_unece/readme/CONFIGURE.md @@ -0,0 +1,4 @@ +1. Go to the menu *Accounting \> Configuration \> Management \> Payment + Methods* +2. On each payment method, select the appropriate value for the *UNECE + Code*. diff --git a/account_payment_unece/readme/CONTRIBUTORS.md b/account_payment_unece/readme/CONTRIBUTORS.md new file mode 100644 index 00000000..2b847b27 --- /dev/null +++ b/account_payment_unece/readme/CONTRIBUTORS.md @@ -0,0 +1,4 @@ +- Alexis de Lattre \<\> +- Andrea Stirpe \<\> +- Levent Karakaş +- Pedro M. Baeza diff --git a/account_payment_unece/readme/DESCRIPTION.md b/account_payment_unece/readme/DESCRIPTION.md new file mode 100644 index 00000000..19f572ce --- /dev/null +++ b/account_payment_unece/readme/DESCRIPTION.md @@ -0,0 +1,16 @@ +This module adds a field *UNECE Payment Mean* on *Payment Methods* to be +able to use a standard written by the [United Nations Economic +Commission for Europe](http://www.unece.org) (which has 56 members +states in Europe, America and Central Asia, cf +[Wikipedia](https://en.wikipedia.org/wiki/United_Nations_Economic_Commission_for_Europe)). +This standard define a codification of the payment modes, cf the +[official code +list](http://www.unece.org/trade/untdid/d99b/tred/tred4461.htm). + +This codification is used for example in the two main international +standards for electronic invoicing: + +- [Cross Industry + Invoice](http://tfig.unece.org/contents/cross-industry-invoice-cii.htm) + (CII), +- [Universal Business Language](http://ubl.xml.org/) (UBL) diff --git a/account_payment_unece/static/description/icon.png b/account_payment_unece/static/description/icon.png new file mode 100644 index 00000000..3a0328b5 Binary files /dev/null and b/account_payment_unece/static/description/icon.png differ diff --git a/account_payment_unece/static/description/index.html b/account_payment_unece/static/description/index.html new file mode 100644 index 00000000..db3e441f --- /dev/null +++ b/account_payment_unece/static/description/index.html @@ -0,0 +1,451 @@ + + + + + + +Account Payment UNECE + + + +
+

Account Payment UNECE

+ + +

Beta License: AGPL-3 OCA/community-data-files Translate me on Weblate Try me on Runboat

+

This module adds a field UNECE Payment Mean on Payment Methods to be +able to use a standard written by the United Nations Economic +Commission for Europe (which has 56 members +states in Europe, America and Central Asia, cf +Wikipedia). +This standard define a codification of the payment modes, cf the +official code +list.

+

This codification is used for example in the two main international +standards for electronic invoicing:

+ +

Table of contents

+ +
+

Configuration

+
    +
  1. Go to the menu Accounting > Configuration > Management > Payment +Methods
  2. +
  3. On each payment method, select the appropriate value for the UNECE +Code.
  4. +
+
+
+

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.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Akretion
  • +
+
+
+

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.

+

Current maintainer:

+

alexis-via

+

This module is part of the OCA/community-data-files project on GitHub.

+

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

+
+
+
+ + diff --git a/account_payment_unece/views/account_payment_method.xml b/account_payment_unece/views/account_payment_method.xml new file mode 100644 index 00000000..a4de9a7c --- /dev/null +++ b/account_payment_unece/views/account_payment_method.xml @@ -0,0 +1,36 @@ + + + + + account.payment.method + + + + + + + + + account.payment.method + + + + + + + +