diff --git a/account_banking_mandate_sale/README.rst b/account_banking_mandate_sale/README.rst new file mode 100644 index 000000000..3156dbbbe --- /dev/null +++ b/account_banking_mandate_sale/README.rst @@ -0,0 +1,90 @@ +============================ +Account Banking Mandate Sale +============================ + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! 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%2Fbank--payment-lightgray.png?logo=github + :target: https://github.com/OCA/bank-payment/tree/15.0/account_banking_mandate_sale + :alt: OCA/bank-payment +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/bank-payment-15-0/bank-payment-15-0-account_banking_mandate_sale + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/173/15.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This modules adds the field *Direct Debit Mandate* on sale orders. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +When you select a payment mode that requires mandate on a sale order, Odoo will +select by default the first valid mandate of this customer. + +The mandate will be copied from the sale order to the invoice. + +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 +~~~~~~~ + +* Akretion + +Contributors +~~~~~~~~~~~~ + +* Alexis de Lattre +* Thomas Binsfeld + +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/bank-payment `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/account_banking_mandate_sale/__init__.py b/account_banking_mandate_sale/__init__.py new file mode 100644 index 000000000..0650744f6 --- /dev/null +++ b/account_banking_mandate_sale/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/account_banking_mandate_sale/__manifest__.py b/account_banking_mandate_sale/__manifest__.py new file mode 100644 index 000000000..92f57d6ff --- /dev/null +++ b/account_banking_mandate_sale/__manifest__.py @@ -0,0 +1,19 @@ +# Copyright 2016-2022 Akretion (Alexis de Lattre ) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + "name": "Account Banking Mandate Sale", + "version": "16.0.1.0.0", + "category": "Banking addons", + "license": "AGPL-3", + "summary": "Adds mandates on sale orders", + "author": "Odoo Community Association (OCA), Akretion", + "maintainers": ["alexis-via"], + "website": "https://github.com/OCA/bank-payment", + "depends": [ + "account_payment_sale", + "account_banking_mandate", + ], + "data": ["views/sale_order.xml"], + "installable": True, +} diff --git a/account_banking_mandate_sale/i18n/account_banking_mandate_sale.pot b/account_banking_mandate_sale/i18n/account_banking_mandate_sale.pot new file mode 100644 index 000000000..bda955816 --- /dev/null +++ b/account_banking_mandate_sale/i18n/account_banking_mandate_sale.pot @@ -0,0 +1,46 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_banking_mandate_sale +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 15.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_banking_mandate_sale +#: model:ir.model.fields,help:account_banking_mandate_sale.field_sale_order__mandate_required +msgid "" +"Activate this option if this payment method requires your customer to sign a" +" direct debit mandate with your company." +msgstr "" + +#. module: account_banking_mandate_sale +#: model:ir.model.fields,field_description:account_banking_mandate_sale.field_sale_order__mandate_id +msgid "Direct Debit Mandate" +msgstr "" + +#. module: account_banking_mandate_sale +#: model:ir.model.fields,field_description:account_banking_mandate_sale.field_sale_order__commercial_invoice_partner_id +msgid "Invoicing Commercial Entity" +msgstr "" + +#. module: account_banking_mandate_sale +#: model:ir.model.fields,field_description:account_banking_mandate_sale.field_sale_order__mandate_required +msgid "Mandate Required" +msgstr "" + +#. module: account_banking_mandate_sale +#: model:ir.model,name:account_banking_mandate_sale.model_sale_advance_payment_inv +msgid "Sales Advance Payment Invoice" +msgstr "" + +#. module: account_banking_mandate_sale +#: model:ir.model,name:account_banking_mandate_sale.model_sale_order +msgid "Sales Order" +msgstr "" diff --git a/account_banking_mandate_sale/i18n/ca.po b/account_banking_mandate_sale/i18n/ca.po new file mode 100644 index 000000000..c40ef7185 --- /dev/null +++ b/account_banking_mandate_sale/i18n/ca.po @@ -0,0 +1,60 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_banking_mandate_sale +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2021-11-08 10:35+0000\n" +"Last-Translator: jabelchi \n" +"Language-Team: none\n" +"Language: ca\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: account_banking_mandate_sale +#: model:ir.model.fields,help:account_banking_mandate_sale.field_sale_order__mandate_required +msgid "" +"Activate this option if this payment method requires your customer to sign a " +"direct debit mandate with your company." +msgstr "" +"Activeu aquesta opció si aquest mètode de pagament requereix que el client " +"signi un mandat amb la vostra empresa." + +#. module: account_banking_mandate_sale +#: model:ir.model.fields,field_description:account_banking_mandate_sale.field_sale_order__mandate_id +msgid "Direct Debit Mandate" +msgstr "Mandat de càrrec directe" + +#. module: account_banking_mandate_sale +#: model:ir.model.fields,field_description:account_banking_mandate_sale.field_sale_order__commercial_invoice_partner_id +msgid "Invoicing Commercial Entity" +msgstr "" + +#. module: account_banking_mandate_sale +#: model:ir.model.fields,field_description:account_banking_mandate_sale.field_sale_order__mandate_required +msgid "Mandate Required" +msgstr "Es requereix mandat" + +#. module: account_banking_mandate_sale +#: model:ir.model,name:account_banking_mandate_sale.model_sale_advance_payment_inv +msgid "Sales Advance Payment Invoice" +msgstr "" + +#. module: account_banking_mandate_sale +#: model:ir.model,name:account_banking_mandate_sale.model_sale_order +msgid "Sales Order" +msgstr "Comanda de venda" + +#~ msgid "Display Name" +#~ msgstr "Nom a mostrar" + +#~ msgid "ID" +#~ msgstr "ID" + +#~ msgid "Last Modified on" +#~ msgstr "Darrera modificació el" diff --git a/account_banking_mandate_sale/i18n/ca_ES.po b/account_banking_mandate_sale/i18n/ca_ES.po new file mode 100644 index 000000000..27c3733ac --- /dev/null +++ b/account_banking_mandate_sale/i18n/ca_ES.po @@ -0,0 +1,47 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_banking_mandate_sale +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: ca_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" + +#. module: account_banking_mandate_sale +#: model:ir.model.fields,help:account_banking_mandate_sale.field_sale_order__mandate_required +msgid "" +"Activate this option if this payment method requires your customer to sign a " +"direct debit mandate with your company." +msgstr "" + +#. module: account_banking_mandate_sale +#: model:ir.model.fields,field_description:account_banking_mandate_sale.field_sale_order__mandate_id +msgid "Direct Debit Mandate" +msgstr "" + +#. module: account_banking_mandate_sale +#: model:ir.model.fields,field_description:account_banking_mandate_sale.field_sale_order__commercial_invoice_partner_id +msgid "Invoicing Commercial Entity" +msgstr "" + +#. module: account_banking_mandate_sale +#: model:ir.model.fields,field_description:account_banking_mandate_sale.field_sale_order__mandate_required +msgid "Mandate Required" +msgstr "" + +#. module: account_banking_mandate_sale +#: model:ir.model,name:account_banking_mandate_sale.model_sale_advance_payment_inv +msgid "Sales Advance Payment Invoice" +msgstr "" + +#. module: account_banking_mandate_sale +#: model:ir.model,name:account_banking_mandate_sale.model_sale_order +msgid "Sales Order" +msgstr "" diff --git a/account_banking_mandate_sale/i18n/de.po b/account_banking_mandate_sale/i18n/de.po new file mode 100644 index 000000000..472cbb900 --- /dev/null +++ b/account_banking_mandate_sale/i18n/de.po @@ -0,0 +1,61 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_banking_mandate_sale +# +# Translators: +# Niki Waibel, 2016 +msgid "" +msgstr "" +"Project-Id-Version: bank-payment (10.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-11-21 10:17+0000\n" +"PO-Revision-Date: 2020-08-20 10:00+0000\n" +"Last-Translator: André Volksdorf \n" +"Language-Team: German (http://www.transifex.com/oca/OCA-bank-payment-10-0/" +"language/de/)\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" +"X-Generator: Weblate 3.10\n" + +#. module: account_banking_mandate_sale +#: model:ir.model.fields,help:account_banking_mandate_sale.field_sale_order__mandate_required +msgid "" +"Activate this option if this payment method requires your customer to sign a " +"direct debit mandate with your company." +msgstr "" +"Aktivieren Sie diese Option, wenn diese Zahlungsmethode erfordert, dass Ihr " +"Kunde eine Einzugsermächtigung mit Ihrem Unternehmen unterzeichnet." + +#. module: account_banking_mandate_sale +#: model:ir.model.fields,field_description:account_banking_mandate_sale.field_sale_order__mandate_id +msgid "Direct Debit Mandate" +msgstr "Lastschrift Mandat" + +#. module: account_banking_mandate_sale +#: model:ir.model.fields,field_description:account_banking_mandate_sale.field_sale_order__commercial_invoice_partner_id +msgid "Invoicing Commercial Entity" +msgstr "" + +#. module: account_banking_mandate_sale +#: model:ir.model.fields,field_description:account_banking_mandate_sale.field_sale_order__mandate_required +msgid "Mandate Required" +msgstr "Mandat erforderlich" + +#. module: account_banking_mandate_sale +#: model:ir.model,name:account_banking_mandate_sale.model_sale_advance_payment_inv +msgid "Sales Advance Payment Invoice" +msgstr "Verkaufsanzahlungsrechnung" + +#. module: account_banking_mandate_sale +#: model:ir.model,name:account_banking_mandate_sale.model_sale_order +msgid "Sales Order" +msgstr "" + +#~ msgid "Commercial Entity" +#~ msgstr "Gewerbliche Instanz" + +#~ msgid "Sale Order" +#~ msgstr "Kundenauftrag" diff --git a/account_banking_mandate_sale/i18n/es.po b/account_banking_mandate_sale/i18n/es.po new file mode 100644 index 000000000..8c3b83af1 --- /dev/null +++ b/account_banking_mandate_sale/i18n/es.po @@ -0,0 +1,60 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_banking_mandate_sale +# +# Translators: +# OCA Transbot , 2016 +# Pedro M. Baeza , 2016 +msgid "" +msgstr "" +"Project-Id-Version: bank-payment (10.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-24 00:21+0000\n" +"PO-Revision-Date: 2016-12-27 12:11+0000\n" +"Last-Translator: Pedro M. Baeza \n" +"Language-Team: Spanish (http://www.transifex.com/oca/OCA-bank-payment-10-0/" +"language/es/)\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" + +#. module: account_banking_mandate_sale +#: model:ir.model.fields,help:account_banking_mandate_sale.field_sale_order__mandate_required +msgid "" +"Activate this option if this payment method requires your customer to sign a " +"direct debit mandate with your company." +msgstr "" + +#. module: account_banking_mandate_sale +#: model:ir.model.fields,field_description:account_banking_mandate_sale.field_sale_order__mandate_id +msgid "Direct Debit Mandate" +msgstr "Mandato de adeudo directo" + +#. module: account_banking_mandate_sale +#: model:ir.model.fields,field_description:account_banking_mandate_sale.field_sale_order__commercial_invoice_partner_id +msgid "Invoicing Commercial Entity" +msgstr "" + +#. module: account_banking_mandate_sale +#: model:ir.model.fields,field_description:account_banking_mandate_sale.field_sale_order__mandate_required +msgid "Mandate Required" +msgstr "" + +#. module: account_banking_mandate_sale +#: model:ir.model,name:account_banking_mandate_sale.model_sale_advance_payment_inv +msgid "Sales Advance Payment Invoice" +msgstr "Ventas. Anticipo pago factura" + +#. module: account_banking_mandate_sale +#: model:ir.model,name:account_banking_mandate_sale.model_sale_order +msgid "Sales Order" +msgstr "" + +#~ msgid "Commercial Entity" +#~ msgstr "Entidad comercial" + +#, fuzzy +#~ msgid "Sale Order" +#~ msgstr "Pedido de venta" diff --git a/account_banking_mandate_sale/i18n/hr.po b/account_banking_mandate_sale/i18n/hr.po new file mode 100644 index 000000000..e3e7aa650 --- /dev/null +++ b/account_banking_mandate_sale/i18n/hr.po @@ -0,0 +1,56 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_banking_mandate_sale +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: bank-payment (10.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-02-20 01:40+0000\n" +"PO-Revision-Date: 2016-10-19 23:45+0000\n" +"Last-Translator: <>\n" +"Language-Team: Croatian (http://www.transifex.com/oca/OCA-bank-payment-10-0/" +"language/hr/)\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" + +#. module: account_banking_mandate_sale +#: model:ir.model.fields,help:account_banking_mandate_sale.field_sale_order__mandate_required +msgid "" +"Activate this option if this payment method requires your customer to sign a " +"direct debit mandate with your company." +msgstr "" + +#. module: account_banking_mandate_sale +#: model:ir.model.fields,field_description:account_banking_mandate_sale.field_sale_order__mandate_id +msgid "Direct Debit Mandate" +msgstr "" + +#. module: account_banking_mandate_sale +#: model:ir.model.fields,field_description:account_banking_mandate_sale.field_sale_order__commercial_invoice_partner_id +msgid "Invoicing Commercial Entity" +msgstr "" + +#. module: account_banking_mandate_sale +#: model:ir.model.fields,field_description:account_banking_mandate_sale.field_sale_order__mandate_required +msgid "Mandate Required" +msgstr "" + +#. module: account_banking_mandate_sale +#: model:ir.model,name:account_banking_mandate_sale.model_sale_advance_payment_inv +msgid "Sales Advance Payment Invoice" +msgstr "" + +#. module: account_banking_mandate_sale +#: model:ir.model,name:account_banking_mandate_sale.model_sale_order +msgid "Sales Order" +msgstr "" + +#, fuzzy +#~ msgid "Sale Order" +#~ msgstr "Ponuda" diff --git a/account_banking_mandate_sale/i18n/nl.po b/account_banking_mandate_sale/i18n/nl.po new file mode 100644 index 000000000..cec716632 --- /dev/null +++ b/account_banking_mandate_sale/i18n/nl.po @@ -0,0 +1,58 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_banking_mandate_sale +# +# Translators: +# Erwin van der Ploeg , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-07-22 23:52+0000\n" +"PO-Revision-Date: 2016-07-22 23:52+0000\n" +"Last-Translator: Erwin van der Ploeg , 2016\n" +"Language-Team: Dutch (https://www.transifex.com/oca/teams/23907/nl/)\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" + +#. module: account_banking_mandate_sale +#: model:ir.model.fields,help:account_banking_mandate_sale.field_sale_order__mandate_required +msgid "" +"Activate this option if this payment method requires your customer to sign a " +"direct debit mandate with your company." +msgstr "" + +#. module: account_banking_mandate_sale +#: model:ir.model.fields,field_description:account_banking_mandate_sale.field_sale_order__mandate_id +msgid "Direct Debit Mandate" +msgstr "Incasso mandaat" + +#. module: account_banking_mandate_sale +#: model:ir.model.fields,field_description:account_banking_mandate_sale.field_sale_order__commercial_invoice_partner_id +msgid "Invoicing Commercial Entity" +msgstr "" + +#. module: account_banking_mandate_sale +#: model:ir.model.fields,field_description:account_banking_mandate_sale.field_sale_order__mandate_required +msgid "Mandate Required" +msgstr "" + +#. module: account_banking_mandate_sale +#: model:ir.model,name:account_banking_mandate_sale.model_sale_advance_payment_inv +msgid "Sales Advance Payment Invoice" +msgstr "Verkoop Incassofactuur" + +#. module: account_banking_mandate_sale +#: model:ir.model,name:account_banking_mandate_sale.model_sale_order +msgid "Sales Order" +msgstr "" + +#~ msgid "Commercial Entity" +#~ msgstr "Commerciële Entiteit" + +#, fuzzy +#~ msgid "Sale Order" +#~ msgstr "Verkooporder" diff --git a/account_banking_mandate_sale/i18n/nl_NL.po b/account_banking_mandate_sale/i18n/nl_NL.po new file mode 100644 index 000000000..08ca974a6 --- /dev/null +++ b/account_banking_mandate_sale/i18n/nl_NL.po @@ -0,0 +1,55 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_banking_mandate_sale +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: bank-payment (10.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-08-18 00:42+0000\n" +"PO-Revision-Date: 2016-10-19 23:45+0000\n" +"Last-Translator: <>\n" +"Language-Team: Dutch (Netherlands) (http://www.transifex.com/oca/OCA-bank-" +"payment-10-0/language/nl_NL/)\n" +"Language: nl_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" + +#. module: account_banking_mandate_sale +#: model:ir.model.fields,help:account_banking_mandate_sale.field_sale_order__mandate_required +msgid "" +"Activate this option if this payment method requires your customer to sign a " +"direct debit mandate with your company." +msgstr "" + +#. module: account_banking_mandate_sale +#: model:ir.model.fields,field_description:account_banking_mandate_sale.field_sale_order__mandate_id +msgid "Direct Debit Mandate" +msgstr "" + +#. module: account_banking_mandate_sale +#: model:ir.model.fields,field_description:account_banking_mandate_sale.field_sale_order__commercial_invoice_partner_id +msgid "Invoicing Commercial Entity" +msgstr "" + +#. module: account_banking_mandate_sale +#: model:ir.model.fields,field_description:account_banking_mandate_sale.field_sale_order__mandate_required +msgid "Mandate Required" +msgstr "" + +#. module: account_banking_mandate_sale +#: model:ir.model,name:account_banking_mandate_sale.model_sale_advance_payment_inv +msgid "Sales Advance Payment Invoice" +msgstr "" + +#. module: account_banking_mandate_sale +#: model:ir.model,name:account_banking_mandate_sale.model_sale_order +msgid "Sales Order" +msgstr "" + +#, fuzzy +#~ msgid "Sale Order" +#~ msgstr "Verkooporder" diff --git a/account_banking_mandate_sale/i18n/pt_BR.po b/account_banking_mandate_sale/i18n/pt_BR.po new file mode 100644 index 000000000..77257cd69 --- /dev/null +++ b/account_banking_mandate_sale/i18n/pt_BR.po @@ -0,0 +1,54 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_banking_mandate_sale +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-07-01 19:28+0000\n" +"PO-Revision-Date: 2019-09-03 03:24+0000\n" +"Last-Translator: Rodrigo Macedo \n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/" +"teams/23907/pt_BR/)\n" +"Language: pt_BR\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.8\n" + +#. module: account_banking_mandate_sale +#: model:ir.model.fields,help:account_banking_mandate_sale.field_sale_order__mandate_required +msgid "" +"Activate this option if this payment method requires your customer to sign a " +"direct debit mandate with your company." +msgstr "" + +#. module: account_banking_mandate_sale +#: model:ir.model.fields,field_description:account_banking_mandate_sale.field_sale_order__commercial_partner_id +msgid "Commercial Entity" +msgstr "Entidade Comercial" + +#. module: account_banking_mandate_sale +#: model:ir.model.fields,field_description:account_banking_mandate_sale.field_sale_order__mandate_id +msgid "Direct Debit Mandate" +msgstr "Mandato de débito direto" + +#. module: account_banking_mandate_sale +#: model:ir.model.fields,field_description:account_banking_mandate_sale.field_sale_order__mandate_required +msgid "Mandate Required" +msgstr "" + +#. module: account_banking_mandate_sale +#: model:ir.model,name:account_banking_mandate_sale.model_sale_order +#, fuzzy +msgid "Sale Order" +msgstr "Pedido de Venda" + +#. module: account_banking_mandate_sale +#: model:ir.model,name:account_banking_mandate_sale.model_sale_advance_payment_inv +msgid "Sales Advance Payment Invoice" +msgstr "Fatura de pagamento antecipado de vendas" diff --git a/account_banking_mandate_sale/i18n/sl.po b/account_banking_mandate_sale/i18n/sl.po new file mode 100644 index 000000000..dddefb04b --- /dev/null +++ b/account_banking_mandate_sale/i18n/sl.po @@ -0,0 +1,55 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_banking_mandate_sale +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-07-01 19:28+0000\n" +"PO-Revision-Date: 2020-03-21 14:13+0000\n" +"Last-Translator: Matjaz Mozetic \n" +"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n" +"Language: sl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=4; plural=n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || " +"n%100==4 ? 2 : 3;\n" +"X-Generator: Weblate 3.10\n" + +#. module: account_banking_mandate_sale +#: model:ir.model.fields,help:account_banking_mandate_sale.field_sale_order__mandate_required +msgid "" +"Activate this option if this payment method requires your customer to sign a " +"direct debit mandate with your company." +msgstr "" +"Aktivirajte to opcijo, če ta plačilna metoda zahteva strankin podpis za " +"direkten debetni mandat vaši družbi." + +#. module: account_banking_mandate_sale +#: model:ir.model.fields,field_description:account_banking_mandate_sale.field_sale_order__commercial_partner_id +msgid "Commercial Entity" +msgstr "Gospodarski subjekt" + +#. module: account_banking_mandate_sale +#: model:ir.model.fields,field_description:account_banking_mandate_sale.field_sale_order__mandate_id +msgid "Direct Debit Mandate" +msgstr "Mandat za direktne obremenitve" + +#. module: account_banking_mandate_sale +#: model:ir.model.fields,field_description:account_banking_mandate_sale.field_sale_order__mandate_required +msgid "Mandate Required" +msgstr "Zahteva se mandat" + +#. module: account_banking_mandate_sale +#: model:ir.model,name:account_banking_mandate_sale.model_sale_order +msgid "Sale Order" +msgstr "Prodajni nalog" + +#. module: account_banking_mandate_sale +#: model:ir.model,name:account_banking_mandate_sale.model_sale_advance_payment_inv +msgid "Sales Advance Payment Invoice" +msgstr "Prodajni račun za plačilo avansa" diff --git a/account_banking_mandate_sale/models/__init__.py b/account_banking_mandate_sale/models/__init__.py new file mode 100644 index 000000000..6aacb7531 --- /dev/null +++ b/account_banking_mandate_sale/models/__init__.py @@ -0,0 +1 @@ +from . import sale_order diff --git a/account_banking_mandate_sale/models/sale_order.py b/account_banking_mandate_sale/models/sale_order.py new file mode 100644 index 000000000..b6a3b0806 --- /dev/null +++ b/account_banking_mandate_sale/models/sale_order.py @@ -0,0 +1,62 @@ +# Copyright 2014-2022 Akretion (Alexis de Lattre ) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import api, fields, models + + +class SaleOrder(models.Model): + _inherit = "sale.order" + + commercial_invoice_partner_id = fields.Many2one( + related="partner_invoice_id.commercial_partner_id", + string="Invoicing Commercial Entity", + store=True, + ) + mandate_id = fields.Many2one( + "account.banking.mandate", + compute="_compute_mandate_id", + string="Direct Debit Mandate", + ondelete="restrict", + check_company=True, + readonly=False, + store=True, + domain="[('partner_id', '=', commercial_invoice_partner_id), " + "('state', 'in', ('draft', 'valid')), " + "('company_id', '=', company_id)]", + ) + mandate_required = fields.Boolean( + related="payment_mode_id.payment_method_id.mandate_required", + ) + + def _prepare_invoice(self): + """Copy mandate from sale order to invoice""" + vals = super()._prepare_invoice() + if self.mandate_id: + vals["mandate_id"] = self.mandate_id.id + return vals + + @api.depends("partner_invoice_id", "payment_mode_id") + def _compute_mandate_id(self): + """Select by default the first valid mandate of the invoicing partner""" + abm_obj = self.env["account.banking.mandate"] + for order in self: + if ( + order.partner_invoice_id + and order.payment_mode_id + and order.payment_mode_id.payment_method_id.mandate_required + ): + mandate = abm_obj.search( + [ + ("state", "=", "valid"), + ( + "partner_id", + "=", + order.partner_invoice_id.commercial_partner_id.id, + ), + ("company_id", "=", order.company_id.id), + ], + limit=1, + ) + order.mandate_id = mandate or False + else: + order.mandate_id = False diff --git a/account_banking_mandate_sale/readme/CONFIGURATION.rst b/account_banking_mandate_sale/readme/CONFIGURATION.rst new file mode 100644 index 000000000..10f006c4a --- /dev/null +++ b/account_banking_mandate_sale/readme/CONFIGURATION.rst @@ -0,0 +1 @@ +There is nothing to configure. diff --git a/account_banking_mandate_sale/readme/CONTRIBUTORS.rst b/account_banking_mandate_sale/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..e0b9ee19e --- /dev/null +++ b/account_banking_mandate_sale/readme/CONTRIBUTORS.rst @@ -0,0 +1,2 @@ +* Alexis de Lattre +* Thomas Binsfeld diff --git a/account_banking_mandate_sale/readme/DESCRIPTION.rst b/account_banking_mandate_sale/readme/DESCRIPTION.rst new file mode 100644 index 000000000..d7a2a4596 --- /dev/null +++ b/account_banking_mandate_sale/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +This modules adds the field *Direct Debit Mandate* on sale orders. diff --git a/account_banking_mandate_sale/readme/USAGE.rst b/account_banking_mandate_sale/readme/USAGE.rst new file mode 100644 index 000000000..bacc436e1 --- /dev/null +++ b/account_banking_mandate_sale/readme/USAGE.rst @@ -0,0 +1,4 @@ +When you select a payment mode that requires mandate on a sale order, Odoo will +select by default the first valid mandate of this customer. + +The mandate will be copied from the sale order to the invoice. diff --git a/account_banking_mandate_sale/static/description/icon.png b/account_banking_mandate_sale/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/account_banking_mandate_sale/static/description/icon.png differ diff --git a/account_banking_mandate_sale/static/description/index.html b/account_banking_mandate_sale/static/description/index.html new file mode 100644 index 000000000..d529f6e23 --- /dev/null +++ b/account_banking_mandate_sale/static/description/index.html @@ -0,0 +1,429 @@ + + + + + + +Account Banking Mandate Sale + + + +
+

Account Banking Mandate Sale

+ + +

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

+

This modules adds the field Direct Debit Mandate on sale orders.

+

Table of contents

+ +
+

Usage

+

When you select a payment mode that requires mandate on a sale order, Odoo will +select by default the first valid mandate of this customer.

+

The mandate will be copied from the sale order to the invoice.

+
+
+

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

+
    +
  • 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/bank-payment project on GitHub.

+

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

+
+
+
+ + diff --git a/account_banking_mandate_sale/views/sale_order.xml b/account_banking_mandate_sale/views/sale_order.xml new file mode 100644 index 000000000..ef8ecbea8 --- /dev/null +++ b/account_banking_mandate_sale/views/sale_order.xml @@ -0,0 +1,24 @@ + + + + + + account_banking_mandate_sale.sale_order.form + sale.order + + + + + + + + + + + diff --git a/account_payment_sale/__init__.py b/account_payment_sale/__init__.py index 9b4296142..0650744f6 100644 --- a/account_payment_sale/__init__.py +++ b/account_payment_sale/__init__.py @@ -1,2 +1 @@ from . import models -from . import wizard diff --git a/account_payment_sale/wizard/__init__.py b/account_payment_sale/wizard/__init__.py deleted file mode 100644 index fca48c3d0..000000000 --- a/account_payment_sale/wizard/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from . import sale_make_invoice_advance diff --git a/account_payment_sale/wizard/sale_make_invoice_advance.py b/account_payment_sale/wizard/sale_make_invoice_advance.py deleted file mode 100644 index c166cef33..000000000 --- a/account_payment_sale/wizard/sale_make_invoice_advance.py +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright 2016-2020 Akretion - Alexis de Lattre -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). - -from odoo import models - - -class SaleAdvancePaymentInv(models.TransientModel): - _inherit = "sale.advance.payment.inv" - - def _prepare_invoice_values(self, order, so_line): - """Copy payment mode from sale order to invoice""" - vals = super()._prepare_invoice_values(order, so_line) - order._get_payment_mode_vals(vals) - return vals diff --git a/setup/account_banking_mandate_sale/odoo/addons/account_banking_mandate_sale b/setup/account_banking_mandate_sale/odoo/addons/account_banking_mandate_sale new file mode 120000 index 000000000..8f89bfe9f --- /dev/null +++ b/setup/account_banking_mandate_sale/odoo/addons/account_banking_mandate_sale @@ -0,0 +1 @@ +../../../../account_banking_mandate_sale \ No newline at end of file diff --git a/setup/account_banking_mandate_sale/setup.py b/setup/account_banking_mandate_sale/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/account_banking_mandate_sale/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)