From 4321bcf6ba134bb4e2d30eabb3d7c54bb51ce75e Mon Sep 17 00:00:00 2001 From: Carlos Dauden Date: Sat, 3 Jun 2017 15:02:07 +0200 Subject: [PATCH 1/5] [9.0][ADD] contract_mandate: New module --- contract_mandate/README.rst | 63 +++++++++++++++ contract_mandate/__init__.py | 3 + contract_mandate/__openerp__.py | 23 ++++++ contract_mandate/i18n/es.po | 50 ++++++++++++ contract_mandate/models/__init__.py | 3 + contract_mandate/models/contract.py | 38 +++++++++ contract_mandate/tests/__init__.py | 3 + .../tests/test_contract_mandate.py | 80 +++++++++++++++++++ contract_mandate/views/contract_view.xml | 18 +++++ 9 files changed, 281 insertions(+) create mode 100644 contract_mandate/README.rst create mode 100644 contract_mandate/__init__.py create mode 100644 contract_mandate/__openerp__.py create mode 100644 contract_mandate/i18n/es.po create mode 100644 contract_mandate/models/__init__.py create mode 100644 contract_mandate/models/contract.py create mode 100644 contract_mandate/tests/__init__.py create mode 100644 contract_mandate/tests/test_contract_mandate.py create mode 100644 contract_mandate/views/contract_view.xml diff --git a/contract_mandate/README.rst b/contract_mandate/README.rst new file mode 100644 index 000000000..84ffb0324 --- /dev/null +++ b/contract_mandate/README.rst @@ -0,0 +1,63 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +================ +Contract Mandate +================ + +This module allows to set a mandate mode on contract for creating the invoices +with this mandate. + +Configuration +============= + +Your user should be a Sales Manager or Accountant. + +Usage +===== + +#. Go to *Sales > Sales > Contracts*. +#. Create one. +#. Select a partner to which invoice. +#. Select a mandate. +#. Click on **Generate recurring invoices automatically** checkbox. +#. Add a product to invoice. +#. If you create an invoice, new invoice will have the selected mandate. + + +.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas + :alt: Try me on Runbot + :target: https://runbot.odoo-community.org/runbot/110/9.0 + +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 smash it by providing detailed and welcomed feedback. + +Credits +======= + +Contributors +------------ + +* Carlos Dauden + + +Maintainer +---------- + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +This module is maintained by the OCA. + +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. + +To contribute to this module, please visit https://odoo-community.org. diff --git a/contract_mandate/__init__.py b/contract_mandate/__init__.py new file mode 100644 index 000000000..cde864bae --- /dev/null +++ b/contract_mandate/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +from . import models diff --git a/contract_mandate/__openerp__.py b/contract_mandate/__openerp__.py new file mode 100644 index 000000000..947012ad1 --- /dev/null +++ b/contract_mandate/__openerp__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +# Copyright 2017 Carlos Dauden - Tecnativa +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + 'name': 'Contract Mandate', + 'summary': 'Mandate in contracts and their invoices', + 'version': '9.0.1.0.0', + 'author': 'Tecnativa, ' + 'Odoo Community Association (OCA)', + 'website': 'http://www.tecnativa.com', + 'depends': [ + 'contract_payment_mode', + 'account_banking_mandate', + ], + 'category': 'Sales Management', + 'license': 'AGPL-3', + 'data': [ + 'views/contract_view.xml', + ], + 'installable': True, + 'auto_install': True, +} diff --git a/contract_mandate/i18n/es.po b/contract_mandate/i18n/es.po new file mode 100644 index 000000000..490ac8a33 --- /dev/null +++ b/contract_mandate/i18n/es.po @@ -0,0 +1,50 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * contract_mandate +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-06-03 14:32+0200\n" +"PO-Revision-Date: 2017-06-03 15:01+0200\n" +"Last-Translator: Carlos Dauden \n" +"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n" +"Language: es\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Poedit 1.8.7.1\n" + +#. module: contract_mandate +#: model:ir.model.fields,help:contract_mandate.field_account_analytic_account_mandate_required +msgid "Activate this option if this payment method requires your customer to sign a direct debit mandate with your company." +msgstr "" + +#. module: contract_mandate +#: model:ir.model,name:contract_mandate.model_account_analytic_account +msgid "Analytic Account" +msgstr "" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_commercial_partner_id +msgid "Commercial Entity" +msgstr "Entidad comercial" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_mandate_id +msgid "Direct Debit Mandate" +msgstr "Mandato adeudo directo" + +#. module: contract_mandate +#: model:ir.model.fields,help:contract_mandate.field_account_analytic_account_mandate_id +msgid "If mandate required in payment method and not set mandate, invoice takes the first valid mandate" +msgstr "Si el mandato es requerido en el método de pago y no está informado en el contrato, la factura coge el primer mandato válido" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_mandate_required +msgid "Mandate Required" +msgstr "Mandato requerido" diff --git a/contract_mandate/models/__init__.py b/contract_mandate/models/__init__.py new file mode 100644 index 000000000..cf8d4ec69 --- /dev/null +++ b/contract_mandate/models/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +from . import contract diff --git a/contract_mandate/models/contract.py b/contract_mandate/models/contract.py new file mode 100644 index 000000000..deb52a28c --- /dev/null +++ b/contract_mandate/models/contract.py @@ -0,0 +1,38 @@ +# -*- coding: utf-8 -*- +# Copyright 2017 Carlos Dauden - Tecnativa +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from openerp import api, fields, models + + +class AccountAnalyticAccount(models.Model): + _inherit = 'account.analytic.account' + + mandate_id = fields.Many2one( + comodel_name='account.banking.mandate', + ondelete='restrict', + string='Direct Debit Mandate', + help="If mandate required in payment method and not set mandate, " + "invoice takes the first valid mandate" + ) + mandate_required = fields.Boolean( + related='payment_mode_id.payment_method_id.mandate_required', + readonly=True) + commercial_partner_id = fields.Many2one( + related='partner_id.commercial_partner_id', + readonly=True, + string='Commercial Entity', + ) + + @api.multi + def _prepare_invoice(self): + invoice_vals = super(AccountAnalyticAccount, self)._prepare_invoice() + if self.mandate_id: + invoice_vals['mandate_id'] = self.mandate_id.id + elif self.payment_mode_id.payment_method_id.mandate_required: + mandate = self.env['account.banking.mandate'].search([ + ('partner_id', '=', self.partner_id.commercial_partner_id.id), + ('state', '=', 'valid'), + ], limit=1) + invoice_vals['mandate_id'] = mandate.id + return invoice_vals diff --git a/contract_mandate/tests/__init__.py b/contract_mandate/tests/__init__.py new file mode 100644 index 000000000..bcc808b91 --- /dev/null +++ b/contract_mandate/tests/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +from . import test_contract_mandate diff --git a/contract_mandate/tests/test_contract_mandate.py b/contract_mandate/tests/test_contract_mandate.py new file mode 100644 index 000000000..685ab4107 --- /dev/null +++ b/contract_mandate/tests/test_contract_mandate.py @@ -0,0 +1,80 @@ +# -*- coding: utf-8 -*- +# Copyright 2017 Carlos Dauden - Tecnativa +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from openerp.tests import common + + +class TestContractMandate(common.SavepointCase): + @classmethod + def setUpClass(cls): + super(TestContractMandate, cls).setUpClass() + cls.payment_method = cls.env['account.payment.method'].create({ + 'name': 'Test SDD', + 'code': 'test_code_sdd', + 'payment_type': 'inbound', + 'mandate_required': True, + }) + cls.payment_mode = cls.env['account.payment.mode'].create({ + 'name': 'Test payment mode', + 'bank_account_link': 'variable', + 'payment_method_id': cls.payment_method.id, + }) + cls.partner = cls.env['res.partner'].create({ + 'customer': True, + 'name': 'Test Customer', + 'customer_payment_mode_id': cls.payment_mode.id, + }) + cls.partner_bank = cls.env['res.partner.bank'].create({ + 'acc_number': '1234', + 'partner_id': cls.partner.id, + }) + cls.mandate = cls.env['account.banking.mandate'].create({ + 'partner_id': cls.partner.id, + 'partner_bank_id': cls.partner_bank.id, + 'signature_date': '2017-01-01', + }) + cls.uom = cls.env.ref('product.product_uom_hour') + cls.product = cls.env['product.product'].create({ + 'name': 'Custom Service', + 'type': 'service', + 'uom_id': cls.uom.id, + 'uom_po_id': cls.uom.id, + 'sale_ok': True, + 'taxes_id': [(6, 0, [])], + }) + cls.contract = cls.env['account.analytic.account'].create({ + 'name': 'Test contract', + 'partner_id': cls.partner.id, + 'recurring_invoices': True, + 'recurring_interval': 1, + 'recurring_invoice_line_ids': [(0, 0, { + 'quantity': 2.0, + 'price_unit': 200.0, + 'name': 'Test contract line', + 'product_id': cls.product.id, + 'uom_id': cls.product.uom_id.id, + })], + 'payment_mode_id': cls.payment_mode.id, + 'mandate_id': cls.mandate.id, + }) + + def test_contract_mandate(self): + new_invoice = self.contract.recurring_create_invoice() + self.assertEqual(new_invoice.mandate_id, self.mandate) + + def test_contract_not_mandate(self): + self.contract.mandate_id = False + self.mandate2 = self.mandate.copy({ + 'unique_mandate_reference': 'BM0000XX2', + }) + self.mandate2.validate() + self.mandate.state = 'expired' + new_invoice = self.contract.recurring_create_invoice() + self.assertEqual(new_invoice.mandate_id, self.mandate2) + + def test_contract_mandate_default(self): + self.payment_mode.mandate_required = False + self.contract.mandate_id = False + new_invoice = self.contract.recurring_create_invoice() + self.assertFalse(new_invoice.mandate_id) diff --git a/contract_mandate/views/contract_view.xml b/contract_mandate/views/contract_view.xml new file mode 100644 index 000000000..8a3349f41 --- /dev/null +++ b/contract_mandate/views/contract_view.xml @@ -0,0 +1,18 @@ + + + + + account.analytic.account + + + + + + + + + + + From 0eaa200c83c4f3968ace5a5f02b3e15fcf0b11e5 Mon Sep 17 00:00:00 2001 From: OCA Transbot Date: Sat, 28 Oct 2017 03:18:36 +0200 Subject: [PATCH 2/5] OCA Transbot updated translations from Transifex --- contract_mandate/i18n/ca.po | 53 ++++++++++++++++++++++++++++++++ contract_mandate/i18n/de.po | 54 ++++++++++++++++++++++++++++++++ contract_mandate/i18n/el_GR.po | 53 ++++++++++++++++++++++++++++++++ contract_mandate/i18n/es.po | 28 +++++++++++------ contract_mandate/i18n/es_MX.po | 53 ++++++++++++++++++++++++++++++++ contract_mandate/i18n/fi.po | 53 ++++++++++++++++++++++++++++++++ contract_mandate/i18n/fr.po | 56 ++++++++++++++++++++++++++++++++++ contract_mandate/i18n/gl.po | 53 ++++++++++++++++++++++++++++++++ contract_mandate/i18n/hr.po | 53 ++++++++++++++++++++++++++++++++ contract_mandate/i18n/hr_HR.po | 53 ++++++++++++++++++++++++++++++++ contract_mandate/i18n/hu.po | 53 ++++++++++++++++++++++++++++++++ contract_mandate/i18n/it.po | 53 ++++++++++++++++++++++++++++++++ contract_mandate/i18n/nl.po | 56 ++++++++++++++++++++++++++++++++++ contract_mandate/i18n/pt.po | 53 ++++++++++++++++++++++++++++++++ contract_mandate/i18n/pt_BR.po | 53 ++++++++++++++++++++++++++++++++ contract_mandate/i18n/pt_PT.po | 53 ++++++++++++++++++++++++++++++++ contract_mandate/i18n/ro.po | 53 ++++++++++++++++++++++++++++++++ contract_mandate/i18n/sk_SK.po | 53 ++++++++++++++++++++++++++++++++ contract_mandate/i18n/sl.po | 54 ++++++++++++++++++++++++++++++++ contract_mandate/i18n/zh_CN.po | 53 ++++++++++++++++++++++++++++++++ 20 files changed, 1033 insertions(+), 10 deletions(-) create mode 100644 contract_mandate/i18n/ca.po create mode 100644 contract_mandate/i18n/de.po create mode 100644 contract_mandate/i18n/el_GR.po create mode 100644 contract_mandate/i18n/es_MX.po create mode 100644 contract_mandate/i18n/fi.po create mode 100644 contract_mandate/i18n/fr.po create mode 100644 contract_mandate/i18n/gl.po create mode 100644 contract_mandate/i18n/hr.po create mode 100644 contract_mandate/i18n/hr_HR.po create mode 100644 contract_mandate/i18n/hu.po create mode 100644 contract_mandate/i18n/it.po create mode 100644 contract_mandate/i18n/nl.po create mode 100644 contract_mandate/i18n/pt.po create mode 100644 contract_mandate/i18n/pt_BR.po create mode 100644 contract_mandate/i18n/pt_PT.po create mode 100644 contract_mandate/i18n/ro.po create mode 100644 contract_mandate/i18n/sk_SK.po create mode 100644 contract_mandate/i18n/sl.po create mode 100644 contract_mandate/i18n/zh_CN.po diff --git a/contract_mandate/i18n/ca.po b/contract_mandate/i18n/ca.po new file mode 100644 index 000000000..f45b130c7 --- /dev/null +++ b/contract_mandate/i18n/ca.po @@ -0,0 +1,53 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * contract_mandate +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-10-20 02:51+0000\n" +"PO-Revision-Date: 2017-10-20 02:51+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Catalan (https://www.transifex.com/oca/teams/23907/ca/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: ca\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: contract_mandate +#: model:ir.model.fields,help:contract_mandate.field_account_analytic_account_mandate_required +msgid "" +"Activate this option if this payment method requires your customer to sign a" +" direct debit mandate with your company." +msgstr "" + +#. module: contract_mandate +#: model:ir.model,name:contract_mandate.model_account_analytic_account +msgid "Analytic Account" +msgstr "Compte analític" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_commercial_partner_id +msgid "Commercial Entity" +msgstr "" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_mandate_id +msgid "Direct Debit Mandate" +msgstr "" + +#. module: contract_mandate +#: model:ir.model.fields,help:contract_mandate.field_account_analytic_account_mandate_id +msgid "" +"If mandate required in payment method and not set mandate, invoice takes the" +" first valid mandate" +msgstr "" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_mandate_required +msgid "Mandate Required" +msgstr "" diff --git a/contract_mandate/i18n/de.po b/contract_mandate/i18n/de.po new file mode 100644 index 000000000..e0bda33e0 --- /dev/null +++ b/contract_mandate/i18n/de.po @@ -0,0 +1,54 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * contract_mandate +# +# Translators: +# OCA Transbot , 2017 +# Rudolf Schnapka , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-10-20 02:51+0000\n" +"PO-Revision-Date: 2017-10-20 02:51+0000\n" +"Last-Translator: Rudolf Schnapka , 2017\n" +"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: de\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: contract_mandate +#: model:ir.model.fields,help:contract_mandate.field_account_analytic_account_mandate_required +msgid "" +"Activate this option if this payment method requires your customer to sign a" +" direct debit mandate with your company." +msgstr "" + +#. module: contract_mandate +#: model:ir.model,name:contract_mandate.model_account_analytic_account +msgid "Analytic Account" +msgstr "Kostenstelle" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_commercial_partner_id +msgid "Commercial Entity" +msgstr "Kommerzielle Einheit" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_mandate_id +msgid "Direct Debit Mandate" +msgstr "Lastschrift-Mandat" + +#. module: contract_mandate +#: model:ir.model.fields,help:contract_mandate.field_account_analytic_account_mandate_id +msgid "" +"If mandate required in payment method and not set mandate, invoice takes the" +" first valid mandate" +msgstr "" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_mandate_required +msgid "Mandate Required" +msgstr "" diff --git a/contract_mandate/i18n/el_GR.po b/contract_mandate/i18n/el_GR.po new file mode 100644 index 000000000..16e7c8edb --- /dev/null +++ b/contract_mandate/i18n/el_GR.po @@ -0,0 +1,53 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * contract_mandate +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-10-20 02:51+0000\n" +"PO-Revision-Date: 2017-10-20 02:51+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Greek (Greece) (https://www.transifex.com/oca/teams/23907/el_GR/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: el_GR\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: contract_mandate +#: model:ir.model.fields,help:contract_mandate.field_account_analytic_account_mandate_required +msgid "" +"Activate this option if this payment method requires your customer to sign a" +" direct debit mandate with your company." +msgstr "" + +#. module: contract_mandate +#: model:ir.model,name:contract_mandate.model_account_analytic_account +msgid "Analytic Account" +msgstr "Αναλυτικός Λογαριασμός" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_commercial_partner_id +msgid "Commercial Entity" +msgstr "" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_mandate_id +msgid "Direct Debit Mandate" +msgstr "" + +#. module: contract_mandate +#: model:ir.model.fields,help:contract_mandate.field_account_analytic_account_mandate_id +msgid "" +"If mandate required in payment method and not set mandate, invoice takes the" +" first valid mandate" +msgstr "" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_mandate_required +msgid "Mandate Required" +msgstr "" diff --git a/contract_mandate/i18n/es.po b/contract_mandate/i18n/es.po index 490ac8a33..4e262430d 100644 --- a/contract_mandate/i18n/es.po +++ b/contract_mandate/i18n/es.po @@ -4,30 +4,34 @@ # # Translators: # OCA Transbot , 2017 +# Pedro M. Baeza , 2017 msgid "" msgstr "" "Project-Id-Version: Odoo Server 9.0c\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-03 14:32+0200\n" -"PO-Revision-Date: 2017-06-03 15:01+0200\n" -"Last-Translator: Carlos Dauden \n" +"POT-Creation-Date: 2017-10-20 02:51+0000\n" +"PO-Revision-Date: 2017-10-20 02:51+0000\n" +"Last-Translator: Pedro M. Baeza , 2017\n" "Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n" -"Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" +"Content-Transfer-Encoding: \n" +"Language: es\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: Poedit 1.8.7.1\n" #. module: contract_mandate #: model:ir.model.fields,help:contract_mandate.field_account_analytic_account_mandate_required -msgid "Activate this option if this payment method requires your customer to sign a direct debit mandate with your company." +msgid "" +"Activate this option if this payment method requires your customer to sign a" +" direct debit mandate with your company." msgstr "" +"Active esta opción si el método de pago requiere que su cliente firme un " +"mandato con su compañía." #. module: contract_mandate #: model:ir.model,name:contract_mandate.model_account_analytic_account msgid "Analytic Account" -msgstr "" +msgstr "Cuenta analítica" #. module: contract_mandate #: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_commercial_partner_id @@ -41,8 +45,12 @@ msgstr "Mandato adeudo directo" #. module: contract_mandate #: model:ir.model.fields,help:contract_mandate.field_account_analytic_account_mandate_id -msgid "If mandate required in payment method and not set mandate, invoice takes the first valid mandate" -msgstr "Si el mandato es requerido en el método de pago y no está informado en el contrato, la factura coge el primer mandato válido" +msgid "" +"If mandate required in payment method and not set mandate, invoice takes the" +" first valid mandate" +msgstr "" +"Si el mandato es requerido en el método de pago y no está informado en el " +"contrato, la factura coge el primer mandato válido" #. module: contract_mandate #: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_mandate_required diff --git a/contract_mandate/i18n/es_MX.po b/contract_mandate/i18n/es_MX.po new file mode 100644 index 000000000..042de4ee1 --- /dev/null +++ b/contract_mandate/i18n/es_MX.po @@ -0,0 +1,53 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * contract_mandate +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-10-20 02:51+0000\n" +"PO-Revision-Date: 2017-10-20 02:51+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Spanish (Mexico) (https://www.transifex.com/oca/teams/23907/es_MX/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: es_MX\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: contract_mandate +#: model:ir.model.fields,help:contract_mandate.field_account_analytic_account_mandate_required +msgid "" +"Activate this option if this payment method requires your customer to sign a" +" direct debit mandate with your company." +msgstr "" + +#. module: contract_mandate +#: model:ir.model,name:contract_mandate.model_account_analytic_account +msgid "Analytic Account" +msgstr "Cuenta analítica" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_commercial_partner_id +msgid "Commercial Entity" +msgstr "" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_mandate_id +msgid "Direct Debit Mandate" +msgstr "" + +#. module: contract_mandate +#: model:ir.model.fields,help:contract_mandate.field_account_analytic_account_mandate_id +msgid "" +"If mandate required in payment method and not set mandate, invoice takes the" +" first valid mandate" +msgstr "" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_mandate_required +msgid "Mandate Required" +msgstr "" diff --git a/contract_mandate/i18n/fi.po b/contract_mandate/i18n/fi.po new file mode 100644 index 000000000..c7c06c77a --- /dev/null +++ b/contract_mandate/i18n/fi.po @@ -0,0 +1,53 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * contract_mandate +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-10-20 02:51+0000\n" +"PO-Revision-Date: 2017-10-20 02:51+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Finnish (https://www.transifex.com/oca/teams/23907/fi/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: fi\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: contract_mandate +#: model:ir.model.fields,help:contract_mandate.field_account_analytic_account_mandate_required +msgid "" +"Activate this option if this payment method requires your customer to sign a" +" direct debit mandate with your company." +msgstr "" + +#. module: contract_mandate +#: model:ir.model,name:contract_mandate.model_account_analytic_account +msgid "Analytic Account" +msgstr "Analyyttinen tili" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_commercial_partner_id +msgid "Commercial Entity" +msgstr "" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_mandate_id +msgid "Direct Debit Mandate" +msgstr "" + +#. module: contract_mandate +#: model:ir.model.fields,help:contract_mandate.field_account_analytic_account_mandate_id +msgid "" +"If mandate required in payment method and not set mandate, invoice takes the" +" first valid mandate" +msgstr "" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_mandate_required +msgid "Mandate Required" +msgstr "" diff --git a/contract_mandate/i18n/fr.po b/contract_mandate/i18n/fr.po new file mode 100644 index 000000000..390fa78a2 --- /dev/null +++ b/contract_mandate/i18n/fr.po @@ -0,0 +1,56 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * contract_mandate +# +# Translators: +# Sébastien LANGE (SYLEAM) , 2017 +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-10-20 02:51+0000\n" +"PO-Revision-Date: 2017-10-20 02:51+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: fr\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: contract_mandate +#: model:ir.model.fields,help:contract_mandate.field_account_analytic_account_mandate_required +msgid "" +"Activate this option if this payment method requires your customer to sign a" +" direct debit mandate with your company." +msgstr "" +"Activez cette option si cette méthode de paiement exige que votre client " +"signe un mandat de prélèvement automatique auprès de votre entreprise." + +#. module: contract_mandate +#: model:ir.model,name:contract_mandate.model_account_analytic_account +msgid "Analytic Account" +msgstr "Compte analytique" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_commercial_partner_id +msgid "Commercial Entity" +msgstr "Entité commerciale" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_mandate_id +msgid "Direct Debit Mandate" +msgstr "Mandat de prélèvement" + +#. module: contract_mandate +#: model:ir.model.fields,help:contract_mandate.field_account_analytic_account_mandate_id +msgid "" +"If mandate required in payment method and not set mandate, invoice takes the" +" first valid mandate" +msgstr "" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_mandate_required +msgid "Mandate Required" +msgstr "Mandat requis" diff --git a/contract_mandate/i18n/gl.po b/contract_mandate/i18n/gl.po new file mode 100644 index 000000000..c4b99c337 --- /dev/null +++ b/contract_mandate/i18n/gl.po @@ -0,0 +1,53 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * contract_mandate +# +# Translators: +# César Castro Cruz , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-10-20 02:51+0000\n" +"PO-Revision-Date: 2017-10-20 02:51+0000\n" +"Last-Translator: César Castro Cruz , 2017\n" +"Language-Team: Galician (https://www.transifex.com/oca/teams/23907/gl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: gl\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: contract_mandate +#: model:ir.model.fields,help:contract_mandate.field_account_analytic_account_mandate_required +msgid "" +"Activate this option if this payment method requires your customer to sign a" +" direct debit mandate with your company." +msgstr "" + +#. module: contract_mandate +#: model:ir.model,name:contract_mandate.model_account_analytic_account +msgid "Analytic Account" +msgstr "Conta analítica" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_commercial_partner_id +msgid "Commercial Entity" +msgstr "" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_mandate_id +msgid "Direct Debit Mandate" +msgstr "" + +#. module: contract_mandate +#: model:ir.model.fields,help:contract_mandate.field_account_analytic_account_mandate_id +msgid "" +"If mandate required in payment method and not set mandate, invoice takes the" +" first valid mandate" +msgstr "" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_mandate_required +msgid "Mandate Required" +msgstr "" diff --git a/contract_mandate/i18n/hr.po b/contract_mandate/i18n/hr.po new file mode 100644 index 000000000..4a5b7ee23 --- /dev/null +++ b/contract_mandate/i18n/hr.po @@ -0,0 +1,53 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * contract_mandate +# +# Translators: +# Bole , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-10-20 02:51+0000\n" +"PO-Revision-Date: 2017-10-20 02:51+0000\n" +"Last-Translator: Bole , 2017\n" +"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: hr\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: contract_mandate +#: model:ir.model.fields,help:contract_mandate.field_account_analytic_account_mandate_required +msgid "" +"Activate this option if this payment method requires your customer to sign a" +" direct debit mandate with your company." +msgstr "" + +#. module: contract_mandate +#: model:ir.model,name:contract_mandate.model_account_analytic_account +msgid "Analytic Account" +msgstr "Analitički konto" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_commercial_partner_id +msgid "Commercial Entity" +msgstr "" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_mandate_id +msgid "Direct Debit Mandate" +msgstr "" + +#. module: contract_mandate +#: model:ir.model.fields,help:contract_mandate.field_account_analytic_account_mandate_id +msgid "" +"If mandate required in payment method and not set mandate, invoice takes the" +" first valid mandate" +msgstr "" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_mandate_required +msgid "Mandate Required" +msgstr "" diff --git a/contract_mandate/i18n/hr_HR.po b/contract_mandate/i18n/hr_HR.po new file mode 100644 index 000000000..2afec80a9 --- /dev/null +++ b/contract_mandate/i18n/hr_HR.po @@ -0,0 +1,53 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * contract_mandate +# +# Translators: +# Bole , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-10-20 02:51+0000\n" +"PO-Revision-Date: 2017-10-20 02:51+0000\n" +"Last-Translator: Bole , 2017\n" +"Language-Team: Croatian (Croatia) (https://www.transifex.com/oca/teams/23907/hr_HR/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: hr_HR\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: contract_mandate +#: model:ir.model.fields,help:contract_mandate.field_account_analytic_account_mandate_required +msgid "" +"Activate this option if this payment method requires your customer to sign a" +" direct debit mandate with your company." +msgstr "" + +#. module: contract_mandate +#: model:ir.model,name:contract_mandate.model_account_analytic_account +msgid "Analytic Account" +msgstr "Konto analitike" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_commercial_partner_id +msgid "Commercial Entity" +msgstr "" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_mandate_id +msgid "Direct Debit Mandate" +msgstr "" + +#. module: contract_mandate +#: model:ir.model.fields,help:contract_mandate.field_account_analytic_account_mandate_id +msgid "" +"If mandate required in payment method and not set mandate, invoice takes the" +" first valid mandate" +msgstr "" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_mandate_required +msgid "Mandate Required" +msgstr "" diff --git a/contract_mandate/i18n/hu.po b/contract_mandate/i18n/hu.po new file mode 100644 index 000000000..567dbf087 --- /dev/null +++ b/contract_mandate/i18n/hu.po @@ -0,0 +1,53 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * contract_mandate +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-10-20 02:51+0000\n" +"PO-Revision-Date: 2017-10-20 02:51+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Hungarian (https://www.transifex.com/oca/teams/23907/hu/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: hu\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: contract_mandate +#: model:ir.model.fields,help:contract_mandate.field_account_analytic_account_mandate_required +msgid "" +"Activate this option if this payment method requires your customer to sign a" +" direct debit mandate with your company." +msgstr "" + +#. module: contract_mandate +#: model:ir.model,name:contract_mandate.model_account_analytic_account +msgid "Analytic Account" +msgstr "Analitikus gyűjtőkód könyvelés" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_commercial_partner_id +msgid "Commercial Entity" +msgstr "" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_mandate_id +msgid "Direct Debit Mandate" +msgstr "" + +#. module: contract_mandate +#: model:ir.model.fields,help:contract_mandate.field_account_analytic_account_mandate_id +msgid "" +"If mandate required in payment method and not set mandate, invoice takes the" +" first valid mandate" +msgstr "" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_mandate_required +msgid "Mandate Required" +msgstr "" diff --git a/contract_mandate/i18n/it.po b/contract_mandate/i18n/it.po new file mode 100644 index 000000000..7ab0ccdd5 --- /dev/null +++ b/contract_mandate/i18n/it.po @@ -0,0 +1,53 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * contract_mandate +# +# Translators: +# Nicola Malcontenti , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-10-20 02:51+0000\n" +"PO-Revision-Date: 2017-10-20 02:51+0000\n" +"Last-Translator: Nicola Malcontenti , 2017\n" +"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: it\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: contract_mandate +#: model:ir.model.fields,help:contract_mandate.field_account_analytic_account_mandate_required +msgid "" +"Activate this option if this payment method requires your customer to sign a" +" direct debit mandate with your company." +msgstr "" + +#. module: contract_mandate +#: model:ir.model,name:contract_mandate.model_account_analytic_account +msgid "Analytic Account" +msgstr "Conto Analitico" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_commercial_partner_id +msgid "Commercial Entity" +msgstr "" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_mandate_id +msgid "Direct Debit Mandate" +msgstr "" + +#. module: contract_mandate +#: model:ir.model.fields,help:contract_mandate.field_account_analytic_account_mandate_id +msgid "" +"If mandate required in payment method and not set mandate, invoice takes the" +" first valid mandate" +msgstr "" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_mandate_required +msgid "Mandate Required" +msgstr "" diff --git a/contract_mandate/i18n/nl.po b/contract_mandate/i18n/nl.po new file mode 100644 index 000000000..3b35a232c --- /dev/null +++ b/contract_mandate/i18n/nl.po @@ -0,0 +1,56 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * contract_mandate +# +# Translators: +# Erwin van der Ploeg , 2017 +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-10-20 02:51+0000\n" +"PO-Revision-Date: 2017-10-20 02:51+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Dutch (https://www.transifex.com/oca/teams/23907/nl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: nl\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: contract_mandate +#: model:ir.model.fields,help:contract_mandate.field_account_analytic_account_mandate_required +msgid "" +"Activate this option if this payment method requires your customer to sign a" +" direct debit mandate with your company." +msgstr "" +"Activeer deze optie wanneer bij de betaalwijze uw klant verplicht is om een " +"incasso mandaat met uw bedrijf te ondertekenen." + +#. module: contract_mandate +#: model:ir.model,name:contract_mandate.model_account_analytic_account +msgid "Analytic Account" +msgstr "Kostenplaats" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_commercial_partner_id +msgid "Commercial Entity" +msgstr "Commerciële Entiteit" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_mandate_id +msgid "Direct Debit Mandate" +msgstr "Incasso mandaat" + +#. module: contract_mandate +#: model:ir.model.fields,help:contract_mandate.field_account_analytic_account_mandate_id +msgid "" +"If mandate required in payment method and not set mandate, invoice takes the" +" first valid mandate" +msgstr "" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_mandate_required +msgid "Mandate Required" +msgstr "Bankrekening verplicht" diff --git a/contract_mandate/i18n/pt.po b/contract_mandate/i18n/pt.po new file mode 100644 index 000000000..e7af5977b --- /dev/null +++ b/contract_mandate/i18n/pt.po @@ -0,0 +1,53 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * contract_mandate +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-10-20 02:51+0000\n" +"PO-Revision-Date: 2017-10-20 02:51+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Portuguese (https://www.transifex.com/oca/teams/23907/pt/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: pt\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: contract_mandate +#: model:ir.model.fields,help:contract_mandate.field_account_analytic_account_mandate_required +msgid "" +"Activate this option if this payment method requires your customer to sign a" +" direct debit mandate with your company." +msgstr "" + +#. module: contract_mandate +#: model:ir.model,name:contract_mandate.model_account_analytic_account +msgid "Analytic Account" +msgstr "Conta Analítica" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_commercial_partner_id +msgid "Commercial Entity" +msgstr "" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_mandate_id +msgid "Direct Debit Mandate" +msgstr "" + +#. module: contract_mandate +#: model:ir.model.fields,help:contract_mandate.field_account_analytic_account_mandate_id +msgid "" +"If mandate required in payment method and not set mandate, invoice takes the" +" first valid mandate" +msgstr "" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_mandate_required +msgid "Mandate Required" +msgstr "" diff --git a/contract_mandate/i18n/pt_BR.po b/contract_mandate/i18n/pt_BR.po new file mode 100644 index 000000000..272a84ce4 --- /dev/null +++ b/contract_mandate/i18n/pt_BR.po @@ -0,0 +1,53 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * contract_mandate +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-10-20 02:51+0000\n" +"PO-Revision-Date: 2017-10-20 02:51+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/teams/23907/pt_BR/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: pt_BR\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: contract_mandate +#: model:ir.model.fields,help:contract_mandate.field_account_analytic_account_mandate_required +msgid "" +"Activate this option if this payment method requires your customer to sign a" +" direct debit mandate with your company." +msgstr "" + +#. module: contract_mandate +#: model:ir.model,name:contract_mandate.model_account_analytic_account +msgid "Analytic Account" +msgstr "Conta analítica" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_commercial_partner_id +msgid "Commercial Entity" +msgstr "" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_mandate_id +msgid "Direct Debit Mandate" +msgstr "" + +#. module: contract_mandate +#: model:ir.model.fields,help:contract_mandate.field_account_analytic_account_mandate_id +msgid "" +"If mandate required in payment method and not set mandate, invoice takes the" +" first valid mandate" +msgstr "" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_mandate_required +msgid "Mandate Required" +msgstr "" diff --git a/contract_mandate/i18n/pt_PT.po b/contract_mandate/i18n/pt_PT.po new file mode 100644 index 000000000..97d2dbb67 --- /dev/null +++ b/contract_mandate/i18n/pt_PT.po @@ -0,0 +1,53 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * contract_mandate +# +# Translators: +# Daniel Reis , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-10-20 02:51+0000\n" +"PO-Revision-Date: 2017-10-20 02:51+0000\n" +"Last-Translator: Daniel Reis , 2017\n" +"Language-Team: Portuguese (Portugal) (https://www.transifex.com/oca/teams/23907/pt_PT/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: pt_PT\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: contract_mandate +#: model:ir.model.fields,help:contract_mandate.field_account_analytic_account_mandate_required +msgid "" +"Activate this option if this payment method requires your customer to sign a" +" direct debit mandate with your company." +msgstr "" + +#. module: contract_mandate +#: model:ir.model,name:contract_mandate.model_account_analytic_account +msgid "Analytic Account" +msgstr "Conta Analítica" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_commercial_partner_id +msgid "Commercial Entity" +msgstr "" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_mandate_id +msgid "Direct Debit Mandate" +msgstr "" + +#. module: contract_mandate +#: model:ir.model.fields,help:contract_mandate.field_account_analytic_account_mandate_id +msgid "" +"If mandate required in payment method and not set mandate, invoice takes the" +" first valid mandate" +msgstr "" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_mandate_required +msgid "Mandate Required" +msgstr "" diff --git a/contract_mandate/i18n/ro.po b/contract_mandate/i18n/ro.po new file mode 100644 index 000000000..c0b262fb5 --- /dev/null +++ b/contract_mandate/i18n/ro.po @@ -0,0 +1,53 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * contract_mandate +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-10-20 02:51+0000\n" +"PO-Revision-Date: 2017-10-20 02:51+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Romanian (https://www.transifex.com/oca/teams/23907/ro/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: ro\n" +"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\n" + +#. module: contract_mandate +#: model:ir.model.fields,help:contract_mandate.field_account_analytic_account_mandate_required +msgid "" +"Activate this option if this payment method requires your customer to sign a" +" direct debit mandate with your company." +msgstr "" + +#. module: contract_mandate +#: model:ir.model,name:contract_mandate.model_account_analytic_account +msgid "Analytic Account" +msgstr "Cont analitic" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_commercial_partner_id +msgid "Commercial Entity" +msgstr "" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_mandate_id +msgid "Direct Debit Mandate" +msgstr "" + +#. module: contract_mandate +#: model:ir.model.fields,help:contract_mandate.field_account_analytic_account_mandate_id +msgid "" +"If mandate required in payment method and not set mandate, invoice takes the" +" first valid mandate" +msgstr "" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_mandate_required +msgid "Mandate Required" +msgstr "" diff --git a/contract_mandate/i18n/sk_SK.po b/contract_mandate/i18n/sk_SK.po new file mode 100644 index 000000000..9503f98d1 --- /dev/null +++ b/contract_mandate/i18n/sk_SK.po @@ -0,0 +1,53 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * contract_mandate +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-10-20 02:51+0000\n" +"PO-Revision-Date: 2017-10-20 02:51+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Slovak (Slovakia) (https://www.transifex.com/oca/teams/23907/sk_SK/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: sk_SK\n" +"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" + +#. module: contract_mandate +#: model:ir.model.fields,help:contract_mandate.field_account_analytic_account_mandate_required +msgid "" +"Activate this option if this payment method requires your customer to sign a" +" direct debit mandate with your company." +msgstr "" + +#. module: contract_mandate +#: model:ir.model,name:contract_mandate.model_account_analytic_account +msgid "Analytic Account" +msgstr "Analytický účet" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_commercial_partner_id +msgid "Commercial Entity" +msgstr "" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_mandate_id +msgid "Direct Debit Mandate" +msgstr "" + +#. module: contract_mandate +#: model:ir.model.fields,help:contract_mandate.field_account_analytic_account_mandate_id +msgid "" +"If mandate required in payment method and not set mandate, invoice takes the" +" first valid mandate" +msgstr "" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_mandate_required +msgid "Mandate Required" +msgstr "" diff --git a/contract_mandate/i18n/sl.po b/contract_mandate/i18n/sl.po new file mode 100644 index 000000000..24dae0ae1 --- /dev/null +++ b/contract_mandate/i18n/sl.po @@ -0,0 +1,54 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * contract_mandate +# +# Translators: +# OCA Transbot , 2017 +# Matjaž Mozetič , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-10-20 02:51+0000\n" +"PO-Revision-Date: 2017-10-20 02:51+0000\n" +"Last-Translator: Matjaž Mozetič , 2017\n" +"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: sl\n" +"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n" + +#. module: contract_mandate +#: model:ir.model.fields,help:contract_mandate.field_account_analytic_account_mandate_required +msgid "" +"Activate this option if this payment method requires your customer to sign a" +" direct debit mandate with your company." +msgstr "" + +#. module: contract_mandate +#: model:ir.model,name:contract_mandate.model_account_analytic_account +msgid "Analytic Account" +msgstr "Analitični konto" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_commercial_partner_id +msgid "Commercial Entity" +msgstr "Poslovni subjekt" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_mandate_id +msgid "Direct Debit Mandate" +msgstr "Mandat za direktne obremenitve" + +#. module: contract_mandate +#: model:ir.model.fields,help:contract_mandate.field_account_analytic_account_mandate_id +msgid "" +"If mandate required in payment method and not set mandate, invoice takes the" +" first valid mandate" +msgstr "" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_mandate_required +msgid "Mandate Required" +msgstr "" diff --git a/contract_mandate/i18n/zh_CN.po b/contract_mandate/i18n/zh_CN.po new file mode 100644 index 000000000..a4beb9552 --- /dev/null +++ b/contract_mandate/i18n/zh_CN.po @@ -0,0 +1,53 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * contract_mandate +# +# Translators: +# ITGeeker , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-10-20 02:51+0000\n" +"PO-Revision-Date: 2017-10-20 02:51+0000\n" +"Last-Translator: ITGeeker , 2017\n" +"Language-Team: Chinese (China) (https://www.transifex.com/oca/teams/23907/zh_CN/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: zh_CN\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: contract_mandate +#: model:ir.model.fields,help:contract_mandate.field_account_analytic_account_mandate_required +msgid "" +"Activate this option if this payment method requires your customer to sign a" +" direct debit mandate with your company." +msgstr "" + +#. module: contract_mandate +#: model:ir.model,name:contract_mandate.model_account_analytic_account +msgid "Analytic Account" +msgstr "核算科目" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_commercial_partner_id +msgid "Commercial Entity" +msgstr "" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_mandate_id +msgid "Direct Debit Mandate" +msgstr "直接付款授权" + +#. module: contract_mandate +#: model:ir.model.fields,help:contract_mandate.field_account_analytic_account_mandate_id +msgid "" +"If mandate required in payment method and not set mandate, invoice takes the" +" first valid mandate" +msgstr "" + +#. module: contract_mandate +#: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_mandate_required +msgid "Mandate Required" +msgstr "" From 205ad0483e2923ca8fe29fbfb6a08e8cbea23bc6 Mon Sep 17 00:00:00 2001 From: OCA Transbot Date: Sat, 18 Nov 2017 03:17:43 +0100 Subject: [PATCH 3/5] OCA Transbot updated translations from Transifex --- contract_mandate/i18n/pt_BR.po | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/contract_mandate/i18n/pt_BR.po b/contract_mandate/i18n/pt_BR.po index 272a84ce4..0a3273c6a 100644 --- a/contract_mandate/i18n/pt_BR.po +++ b/contract_mandate/i18n/pt_BR.po @@ -4,13 +4,14 @@ # # Translators: # OCA Transbot , 2017 +# Armando Vulcano Junior , 2017 msgid "" msgstr "" "Project-Id-Version: Odoo Server 9.0c\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-10-20 02:51+0000\n" -"PO-Revision-Date: 2017-10-20 02:51+0000\n" -"Last-Translator: OCA Transbot , 2017\n" +"POT-Creation-Date: 2017-10-28 03:10+0000\n" +"PO-Revision-Date: 2017-10-28 03:10+0000\n" +"Last-Translator: Armando Vulcano Junior , 2017\n" "Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/teams/23907/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -24,6 +25,8 @@ msgid "" "Activate this option if this payment method requires your customer to sign a" " direct debit mandate with your company." msgstr "" +"Ative esta opção se este método de pagamento exige que seu cliente assine " +"uma ordem de débito direto com sua empresa." #. module: contract_mandate #: model:ir.model,name:contract_mandate.model_account_analytic_account @@ -50,4 +53,4 @@ msgstr "" #. module: contract_mandate #: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_mandate_required msgid "Mandate Required" -msgstr "" +msgstr "Ordem exigida" From 1a9aedf5411875a9466547d04e74267114723617 Mon Sep 17 00:00:00 2001 From: OCA Transbot Date: Sat, 30 Dec 2017 04:13:34 +0100 Subject: [PATCH 4/5] OCA Transbot updated translations from Transifex --- contract_mandate/i18n/fr.po | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/contract_mandate/i18n/fr.po b/contract_mandate/i18n/fr.po index 390fa78a2..8946e71e3 100644 --- a/contract_mandate/i18n/fr.po +++ b/contract_mandate/i18n/fr.po @@ -3,15 +3,15 @@ # * contract_mandate # # Translators: -# Sébastien LANGE (SYLEAM) , 2017 # OCA Transbot , 2017 +# Quentin THEURET , 2017 msgid "" msgstr "" "Project-Id-Version: Odoo Server 9.0c\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-10-20 02:51+0000\n" -"PO-Revision-Date: 2017-10-20 02:51+0000\n" -"Last-Translator: OCA Transbot , 2017\n" +"POT-Creation-Date: 2017-12-02 03:28+0000\n" +"PO-Revision-Date: 2017-12-02 03:28+0000\n" +"Last-Translator: Quentin THEURET , 2017\n" "Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -49,6 +49,8 @@ msgid "" "If mandate required in payment method and not set mandate, invoice takes the" " first valid mandate" msgstr "" +"Si un mandat est requis dans la méthode de paiement et qu'aucun mandat n'est" +" saisi, la facture prend le premier mandat valide." #. module: contract_mandate #: model:ir.model.fields,field_description:contract_mandate.field_account_analytic_account_mandate_required From 39968fc99daed37b6b14ae45e32f817689eb1080 Mon Sep 17 00:00:00 2001 From: Bodi Stanciu Date: Tue, 20 Oct 2020 20:03:10 +0200 Subject: [PATCH 5/5] [MIG] contract_mandate to v10 --- README.md | 1 + contract_mandate/README.rst | 64 ++- .../{__openerp__.py => __manifest__.py} | 8 +- contract_mandate/models/contract.py | 6 +- contract_mandate/readme/CONFIGURATION.rst | 1 + contract_mandate/readme/CONTRIBUTORS.rst | 2 + contract_mandate/readme/DESCRIPTION.rst | 2 + contract_mandate/readme/USAGE.rst | 7 + contract_mandate/static/description/icon.png | Bin 0 -> 9455 bytes .../static/description/index.html | 434 ++++++++++++++++++ .../tests/test_contract_mandate.py | 50 +- .../tests/test_account_analytic_account.py | 2 + 12 files changed, 525 insertions(+), 52 deletions(-) rename contract_mandate/{__openerp__.py => __manifest__.py} (76%) create mode 100644 contract_mandate/readme/CONFIGURATION.rst create mode 100644 contract_mandate/readme/CONTRIBUTORS.rst create mode 100644 contract_mandate/readme/DESCRIPTION.rst create mode 100644 contract_mandate/readme/USAGE.rst create mode 100644 contract_mandate/static/description/icon.png create mode 100644 contract_mandate/static/description/index.html diff --git a/README.md b/README.md index d5d41f6a8..d6a93f3f2 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,7 @@ addon | version | summary [agreement_sale](agreement_sale/) | 10.0.1.0.1 | Link an agreement to a sale order and copy to invoice [contract](contract/) | 10.0.4.3.1 | Contracts Management - Recurring [contract_digitized_signature](contract_digitized_signature/) | 10.0.1.0.0 | Contract Digitized Signature +[contract_mandate](contract_mandate/) | 10.0.1.0.1 | Mandate in contracts and their invoices [contract_payment_auto](contract_payment_auto/) | 10.0.1.0.1 | Adds automatic payments to contracts. [contract_payment_mode](contract_payment_mode/) | 10.0.1.0.1 | Payment mode in contracts and their invoices [contract_recurring_analytic_distribution](contract_recurring_analytic_distribution/) | 10.0.1.0.0 | Analytic plans on contracts recurring invoices diff --git a/contract_mandate/README.rst b/contract_mandate/README.rst index 84ffb0324..d2cf0c7f2 100644 --- a/contract_mandate/README.rst +++ b/contract_mandate/README.rst @@ -1,18 +1,37 @@ -.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg - :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html - :alt: License: AGPL-3 - ================ Contract Mandate ================ +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! 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%2Fcontract-lightgray.png?logo=github + :target: https://github.com/OCA/contract/tree/10.0/contract_mandate + :alt: OCA/contract +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/contract-10-0/contract-10-0-contract_mandate + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/110/10.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + This module allows to set a mandate mode on contract for creating the invoices with this mandate. -Configuration -============= +**Table of contents** -Your user should be a Sales Manager or Accountant. +.. contents:: + :local: Usage ===== @@ -25,39 +44,42 @@ Usage #. Add a product to invoice. #. If you create an invoice, new invoice will have the selected mandate. - -.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas - :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/110/9.0 - 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 smash it by providing detailed and welcomed feedback. +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 +~~~~~~~ + +* Tecnativa + Contributors ------------- +~~~~~~~~~~~~ * Carlos Dauden +Maintainers +~~~~~~~~~~~ -Maintainer ----------- +This module is maintained by the OCA. .. image:: https://odoo-community.org/logo.png :alt: Odoo Community Association :target: https://odoo-community.org -This module is maintained by the OCA. - 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. -To contribute to this module, please visit https://odoo-community.org. +This module is part of the `OCA/contract `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/contract_mandate/__openerp__.py b/contract_mandate/__manifest__.py similarity index 76% rename from contract_mandate/__openerp__.py rename to contract_mandate/__manifest__.py index 947012ad1..5e7e96ced 100644 --- a/contract_mandate/__openerp__.py +++ b/contract_mandate/__manifest__.py @@ -5,10 +5,10 @@ { 'name': 'Contract Mandate', 'summary': 'Mandate in contracts and their invoices', - 'version': '9.0.1.0.0', - 'author': 'Tecnativa, ' - 'Odoo Community Association (OCA)', - 'website': 'http://www.tecnativa.com', + 'version': '10.0.1.0.1', + 'author': 'Odoo Community Association (OCA), ' + 'Tecnativa', + 'website': 'https://github.com/OCA/contract', 'depends': [ 'contract_payment_mode', 'account_banking_mandate', diff --git a/contract_mandate/models/contract.py b/contract_mandate/models/contract.py index deb52a28c..103d1ba33 100644 --- a/contract_mandate/models/contract.py +++ b/contract_mandate/models/contract.py @@ -2,7 +2,7 @@ # Copyright 2017 Carlos Dauden - Tecnativa # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -from openerp import api, fields, models +from odoo import api, fields, models class AccountAnalyticAccount(models.Model): @@ -13,7 +13,8 @@ class AccountAnalyticAccount(models.Model): ondelete='restrict', string='Direct Debit Mandate', help="If mandate required in payment method and not set mandate, " - "invoice takes the first valid mandate" + "invoice takes the first valid mandate", + index=True, ) mandate_required = fields.Boolean( related='payment_mode_id.payment_method_id.mandate_required', @@ -33,6 +34,7 @@ class AccountAnalyticAccount(models.Model): mandate = self.env['account.banking.mandate'].search([ ('partner_id', '=', self.partner_id.commercial_partner_id.id), ('state', '=', 'valid'), + ('company_id', '=', self.company_id.id), ], limit=1) invoice_vals['mandate_id'] = mandate.id return invoice_vals diff --git a/contract_mandate/readme/CONFIGURATION.rst b/contract_mandate/readme/CONFIGURATION.rst new file mode 100644 index 000000000..5d6fd55c7 --- /dev/null +++ b/contract_mandate/readme/CONFIGURATION.rst @@ -0,0 +1 @@ +Your user should be a Sales Manager or Accountant. diff --git a/contract_mandate/readme/CONTRIBUTORS.rst b/contract_mandate/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..242bdfddd --- /dev/null +++ b/contract_mandate/readme/CONTRIBUTORS.rst @@ -0,0 +1,2 @@ +* Carlos Dauden +* Bogdan Stanciu diff --git a/contract_mandate/readme/DESCRIPTION.rst b/contract_mandate/readme/DESCRIPTION.rst new file mode 100644 index 000000000..46b7768f7 --- /dev/null +++ b/contract_mandate/readme/DESCRIPTION.rst @@ -0,0 +1,2 @@ +This module allows to set a mandate mode on contract for creating the invoices +with this mandate. diff --git a/contract_mandate/readme/USAGE.rst b/contract_mandate/readme/USAGE.rst new file mode 100644 index 000000000..d1d752408 --- /dev/null +++ b/contract_mandate/readme/USAGE.rst @@ -0,0 +1,7 @@ +#. Go to *Sales > Sales > Contracts*. +#. Create one. +#. Select a partner to which invoice. +#. Select a mandate. +#. Click on **Generate recurring invoices automatically** checkbox. +#. Add a product to invoice. +#. If you create an invoice, new invoice will have the selected mandate. diff --git a/contract_mandate/static/description/icon.png b/contract_mandate/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..3a0328b516c4980e8e44cdb63fd945757ddd132d GIT binary patch literal 9455 zcmW++2RxMjAAjx~&dlBk9S+%}OXg)AGE&Cb*&}d0jUxM@u(PQx^-s)697TX`ehR4?GS^qbkof1cslKgkU)h65qZ9Oc=ml_0temigYLJfnz{IDzUf>bGs4N!v3=Z3jMq&A#7%rM5eQ#dc?k~! zVpnB`o+K7|Al`Q_U;eD$B zfJtP*jH`siUq~{KE)`jP2|#TUEFGRryE2`i0**z#*^6~AI|YzIWy$Cu#CSLW3q=GA z6`?GZymC;dCPk~rBS%eCb`5OLr;RUZ;D`}um=H)BfVIq%7VhiMr)_#G0N#zrNH|__ zc+blN2UAB0=617@>_u;MPHN;P;N#YoE=)R#i$k_`UAA>WWCcEVMh~L_ zj--gtp&|K1#58Yz*AHCTMziU1Jzt_jG0I@qAOHsk$2}yTmVkBp_eHuY$A9)>P6o~I z%aQ?!(GqeQ-Y+b0I(m9pwgi(IIZZzsbMv+9w{PFtd_<_(LA~0H(xz{=FhLB@(1&qHA5EJw1>>=%q2f&^X>IQ{!GJ4e9U z&KlB)z(84HmNgm2hg2C0>WM{E(DdPr+EeU_N@57;PC2&DmGFW_9kP&%?X4}+xWi)( z;)z%wI5>D4a*5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JkeA;|(J6_nv#>Nvs&FuLA&PW^he@t(UwFFE8)|a!R{`E`K`i^ZnyE4$k z;(749Ix|oi$c3QbEJ3b~D_kQsPz~fIUKym($a_7dJ?o+40*OLl^{=&oq$<#Q(yyrp z{J-FAniyAw9tPbe&IhQ|a`DqFTVQGQ&Gq3!C2==4x{6EJwiPZ8zub-iXoUtkJiG{} zPaR&}_fn8_z~(=;5lD-aPWD3z8PZS@AaUiomF!G8I}Mf>e~0g#BelA-5#`cj;O5>N Xviia!U7SGha1wx#SCgwmn*{w2TRX*I literal 0 HcmV?d00001 diff --git a/contract_mandate/static/description/index.html b/contract_mandate/static/description/index.html new file mode 100644 index 000000000..cc3ffcdfc --- /dev/null +++ b/contract_mandate/static/description/index.html @@ -0,0 +1,434 @@ + + + + + + +Contract Mandate + + + +
+

Contract Mandate

+ + +

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

+

This module allows to set a mandate mode on contract for creating the invoices +with this mandate.

+

Table of contents

+ +
+

Usage

+
    +
  1. Go to Sales > Sales > Contracts.
  2. +
  3. Create one.
  4. +
  5. Select a partner to which invoice.
  6. +
  7. Select a mandate.
  8. +
  9. Click on Generate recurring invoices automatically checkbox.
  10. +
  11. Add a product to invoice.
  12. +
  13. If you create an invoice, new invoice will have the selected mandate.
  14. +
+
+
+

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

+
    +
  • Tecnativa
  • +
+
+ +
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

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

+

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

+

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

+
+
+
+ + diff --git a/contract_mandate/tests/test_contract_mandate.py b/contract_mandate/tests/test_contract_mandate.py index 685ab4107..114b382d0 100644 --- a/contract_mandate/tests/test_contract_mandate.py +++ b/contract_mandate/tests/test_contract_mandate.py @@ -2,61 +2,61 @@ # Copyright 2017 Carlos Dauden - Tecnativa # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -from openerp.tests import common +from odoo.tests import HttpCase -class TestContractMandate(common.SavepointCase): - @classmethod - def setUpClass(cls): - super(TestContractMandate, cls).setUpClass() - cls.payment_method = cls.env['account.payment.method'].create({ +class TestContractMandate(HttpCase): + + def setUp(self): + super(TestContractMandate, self).setUp() + self.payment_method = self.env['account.payment.method'].create({ 'name': 'Test SDD', 'code': 'test_code_sdd', 'payment_type': 'inbound', 'mandate_required': True, }) - cls.payment_mode = cls.env['account.payment.mode'].create({ + self.payment_mode = self.env['account.payment.mode'].create({ 'name': 'Test payment mode', 'bank_account_link': 'variable', - 'payment_method_id': cls.payment_method.id, + 'payment_method_id': self.payment_method.id, }) - cls.partner = cls.env['res.partner'].create({ + self.partner = self.env['res.partner'].create({ 'customer': True, 'name': 'Test Customer', - 'customer_payment_mode_id': cls.payment_mode.id, + 'customer_payment_mode_id': self.payment_mode.id, }) - cls.partner_bank = cls.env['res.partner.bank'].create({ + self.partner_bank = self.env['res.partner.bank'].create({ 'acc_number': '1234', - 'partner_id': cls.partner.id, + 'partner_id': self.partner.id, }) - cls.mandate = cls.env['account.banking.mandate'].create({ - 'partner_id': cls.partner.id, - 'partner_bank_id': cls.partner_bank.id, + self.mandate = self.env['account.banking.mandate'].create({ + 'partner_id': self.partner.id, + 'partner_bank_id': self.partner_bank.id, 'signature_date': '2017-01-01', }) - cls.uom = cls.env.ref('product.product_uom_hour') - cls.product = cls.env['product.product'].create({ + self.uom = self.env.ref('product.product_uom_hour') + self.product = self.env['product.product'].create({ 'name': 'Custom Service', 'type': 'service', - 'uom_id': cls.uom.id, - 'uom_po_id': cls.uom.id, + 'uom_id': self.uom.id, + 'uom_po_id': self.uom.id, 'sale_ok': True, 'taxes_id': [(6, 0, [])], }) - cls.contract = cls.env['account.analytic.account'].create({ + self.contract = self.env['account.analytic.account'].create({ 'name': 'Test contract', - 'partner_id': cls.partner.id, + 'partner_id': self.partner.id, 'recurring_invoices': True, 'recurring_interval': 1, 'recurring_invoice_line_ids': [(0, 0, { 'quantity': 2.0, 'price_unit': 200.0, 'name': 'Test contract line', - 'product_id': cls.product.id, - 'uom_id': cls.product.uom_id.id, + 'product_id': self.product.id, + 'uom_id': self.product.uom_id.id, })], - 'payment_mode_id': cls.payment_mode.id, - 'mandate_id': cls.mandate.id, + 'payment_mode_id': self.payment_mode.id, + 'mandate_id': self.mandate.id, }) def test_contract_mandate(self): diff --git a/contract_payment_auto/tests/test_account_analytic_account.py b/contract_payment_auto/tests/test_account_analytic_account.py index 553021261..68207c889 100644 --- a/contract_payment_auto/tests/test_account_analytic_account.py +++ b/contract_payment_auto/tests/test_account_analytic_account.py @@ -70,6 +70,8 @@ class TestAccountAnalyticAccount(common.HttpCase): 'price_unit': 100, 'discount': 50, }) + # Remove report to avoid freeze when use wkhtmltopdf and SavepointCase + self.env['mail.template'].search([], limit=1).write({'report_template': False}) def _validate_invoice(self, invoice): self.assertEqual(len(invoice), 1)