From 2ff93ee2fa2502683ddf524b5589ef0922e3d9ab Mon Sep 17 00:00:00 2001
From: Alexis de Lattre
Date: Tue, 25 Feb 2014 00:19:57 +0100
Subject: [PATCH 01/58] Add 4 new modules to handle payment type and bank
accounts: - account_payment_partner - account_payment_sale -
account_payment_sale_stock - account_payment_purchase
Filter the selection of invoices per payment type.
Add active field on payment.mode and payment.mode.type.
Add menu entry for Payment Types.
---
account_payment_partner/__init__.py | 23 ++++++++
account_payment_partner/__openerp__.py | 55 ++++++++++++++++++
account_payment_partner/demo/partner_demo.xml | 51 +++++++++++++++++
.../i18n/account_payment_partner.pot | 57 +++++++++++++++++++
account_payment_partner/model/__init__.py | 25 ++++++++
.../model/account_invoice.py | 56 ++++++++++++++++++
account_payment_partner/model/partner.py | 44 ++++++++++++++
.../model/payment_order_create.py | 39 +++++++++++++
.../view/account_invoice.xml | 38 +++++++++++++
account_payment_partner/view/partner.xml | 31 ++++++++++
10 files changed, 419 insertions(+)
create mode 100644 account_payment_partner/__init__.py
create mode 100644 account_payment_partner/__openerp__.py
create mode 100644 account_payment_partner/demo/partner_demo.xml
create mode 100644 account_payment_partner/i18n/account_payment_partner.pot
create mode 100644 account_payment_partner/model/__init__.py
create mode 100644 account_payment_partner/model/account_invoice.py
create mode 100644 account_payment_partner/model/partner.py
create mode 100644 account_payment_partner/model/payment_order_create.py
create mode 100644 account_payment_partner/view/account_invoice.xml
create mode 100644 account_payment_partner/view/partner.xml
diff --git a/account_payment_partner/__init__.py b/account_payment_partner/__init__.py
new file mode 100644
index 000000000..161123944
--- /dev/null
+++ b/account_payment_partner/__init__.py
@@ -0,0 +1,23 @@
+# -*- encoding: utf-8 -*-
+##############################################################################
+#
+# Account Payment Partner module for OpenERP
+# Copyright (C) 2014 Akretion (http://www.akretion.com)
+# @author Alexis de Lattre
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+#
+##############################################################################
+
+from . import model
diff --git a/account_payment_partner/__openerp__.py b/account_payment_partner/__openerp__.py
new file mode 100644
index 000000000..4e0217c98
--- /dev/null
+++ b/account_payment_partner/__openerp__.py
@@ -0,0 +1,55 @@
+# -*- encoding: utf-8 -*-
+##############################################################################
+#
+# Account Payment Partner module for OpenERP
+# Copyright (C) 2014 Akretion (http://www.akretion.com)
+# @author Alexis de Lattre
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+#
+##############################################################################
+
+
+{
+ 'name': 'Account Payment Partner',
+ 'version': '0.1',
+ 'category': 'Banking addons',
+ 'license': 'AGPL-3',
+ 'summary': 'Adds payment mode on partners and invoices',
+ 'description': """
+Account Payment Partner
+=======================
+
+This module adds severals fields :
+
+* the *Supplier Payment Mode* and *Customer Payment Mode* on Partners,
+
+* the *Payment Mode* on Invoices.
+
+On a Payment Order, in the wizard *Select Invoices to Pay*, the invoices will
+be filtered per Payment Mode.
+
+Please contact Alexis de Lattre from Akretion
+for any help or question about this module.
+ """,
+ 'author': 'Akretion',
+ 'website': 'http://www.akretion.com',
+ 'depends': ['account_banking_payment_export'],
+ 'data': [
+ 'view/partner.xml',
+ 'view/account_invoice.xml',
+ ],
+ 'demo': ['demo/partner_demo.xml'],
+ 'active': False,
+}
diff --git a/account_payment_partner/demo/partner_demo.xml b/account_payment_partner/demo/partner_demo.xml
new file mode 100644
index 000000000..776058d44
--- /dev/null
+++ b/account_payment_partner/demo/partner_demo.xml
@@ -0,0 +1,51 @@
+
+
+
+
+
+
+
+ supplier_payment_mode_12
+
+
+
+
+
+
+
+ customer_payment_mode_12
+
+
+
+
+
+
+
+
+ customer_payment_mode_2
+
+
+
+
+
+
+
+
+ supplier_payment_mode_1
+
+
+
+
+
+
+
+
+
diff --git a/account_payment_partner/i18n/account_payment_partner.pot b/account_payment_partner/i18n/account_payment_partner.pot
new file mode 100644
index 000000000..ca26e532d
--- /dev/null
+++ b/account_payment_partner/i18n/account_payment_partner.pot
@@ -0,0 +1,57 @@
+# Translation of OpenERP Server.
+# This file contains the translation of the following modules:
+# * account_payment_partner
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: OpenERP Server 7.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2014-06-09 23:22+0000\n"
+"PO-Revision-Date: 2014-06-09 23:22+0000\n"
+"Last-Translator: <>\n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Plural-Forms: \n"
+
+#. module: account_payment_partner
+#: field:res.partner,customer_payment_mode:0
+msgid "Customer Payment Mode"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_account_invoice
+msgid "Invoice"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_res_partner
+msgid "Partner"
+msgstr ""
+
+#. module: account_payment_partner
+#: field:account.invoice,payment_mode_id:0
+msgid "Payment Mode"
+msgstr ""
+
+#. module: account_payment_partner
+#: help:res.partner,customer_payment_mode:0
+msgid "Select the default payment mode for this customer."
+msgstr ""
+
+#. module: account_payment_partner
+#: help:res.partner,supplier_payment_mode:0
+msgid "Select the default payment mode for this supplier."
+msgstr ""
+
+#. module: account_payment_partner
+#: field:res.partner,supplier_payment_mode:0
+msgid "Supplier Payment Mode"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_payment_order_create
+msgid "payment.order.create"
+msgstr ""
+
diff --git a/account_payment_partner/model/__init__.py b/account_payment_partner/model/__init__.py
new file mode 100644
index 000000000..16ab8bc9e
--- /dev/null
+++ b/account_payment_partner/model/__init__.py
@@ -0,0 +1,25 @@
+# -*- encoding: utf-8 -*-
+##############################################################################
+#
+# Account Payment Partner module for OpenERP
+# Copyright (C) 2014 Akretion (http://www.akretion.com)
+# @author Alexis de Lattre
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+#
+##############################################################################
+
+from . import partner
+from . import account_invoice
+from . import payment_order_create
diff --git a/account_payment_partner/model/account_invoice.py b/account_payment_partner/model/account_invoice.py
new file mode 100644
index 000000000..607cda29a
--- /dev/null
+++ b/account_payment_partner/model/account_invoice.py
@@ -0,0 +1,56 @@
+# -*- encoding: utf-8 -*-
+##############################################################################
+#
+# Account Payment Partner module for OpenERP
+# Copyright (C) 2014 Akretion (http://www.akretion.com)
+# @author Alexis de Lattre
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+#
+##############################################################################
+
+from openerp.osv import orm, fields
+
+
+class account_invoice(orm.Model):
+ _inherit = 'account.invoice'
+
+ _columns = {
+ 'payment_mode_id': fields.many2one(
+ 'payment.mode', 'Payment Mode'),
+ }
+
+ def onchange_partner_id(
+ self, cr, uid, ids, type, partner_id, date_invoice=False,
+ payment_term=False, partner_bank_id=False, company_id=False):
+ res = super(account_invoice, self).onchange_partner_id(
+ cr, uid, ids, type, partner_id, date_invoice=date_invoice,
+ payment_term=payment_term, partner_bank_id=partner_bank_id,
+ company_id=company_id)
+ if partner_id:
+ partner = self.pool['res.partner'].browse(cr, uid, partner_id)
+ if type == 'in_invoice':
+ res['value']['payment_mode_id'] = \
+ partner.supplier_payment_mode.id or False
+ elif type == 'out_invoice':
+ res['value'].update({
+ 'payment_mode_id':
+ partner.customer_payment_mode.id or False,
+ 'partner_bank_id':
+ partner.customer_payment_mode and
+ partner.customer_payment_mode.bank_id.id or False,
+ })
+ else:
+ res['value']['payment_mode_id'] = False
+ return res
diff --git a/account_payment_partner/model/partner.py b/account_payment_partner/model/partner.py
new file mode 100644
index 000000000..4bfe4c787
--- /dev/null
+++ b/account_payment_partner/model/partner.py
@@ -0,0 +1,44 @@
+# -*- encoding: utf-8 -*-
+##############################################################################
+#
+# Account Payment Partner module for OpenERP
+# Copyright (C) 2014 Akretion (http://www.akretion.com)
+# @author Alexis de Lattre
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+#
+##############################################################################
+
+from openerp.osv import orm, fields
+
+
+class res_partner(orm.Model):
+ _inherit = 'res.partner'
+
+ _columns = {
+ 'supplier_payment_mode': fields.property(
+ 'payment.mode', type='many2one', relation='payment.mode',
+ string='Supplier Payment Mode', view_load=True,
+ help="Select the default payment mode for this supplier."),
+ 'customer_payment_mode': fields.property(
+ 'payment.mode', type='many2one', relation='payment.mode',
+ string='Customer Payment Mode', view_load=True,
+ help="Select the default payment mode for this customer."),
+ }
+
+ def _commercial_fields(self, cr, uid, context=None):
+ res = super(res_partner, self)._commercial_fields(
+ cr, uid, context=context)
+ res += ['supplier_payment_mode', 'customer_payment_mode']
+ return res
diff --git a/account_payment_partner/model/payment_order_create.py b/account_payment_partner/model/payment_order_create.py
new file mode 100644
index 000000000..ea8b1ccb3
--- /dev/null
+++ b/account_payment_partner/model/payment_order_create.py
@@ -0,0 +1,39 @@
+# -*- encoding: utf-8 -*-
+##############################################################################
+#
+# Account Payment Partner module for OpenERP
+# Copyright (C) 2014 Akretion (http://www.akretion.com)
+# @author Alexis de Lattre
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+#
+##############################################################################
+
+from openerp.osv import orm
+
+
+class payment_order_create(orm.TransientModel):
+ _inherit = 'payment.order.create'
+
+ def extend_payment_order_domain(
+ self, cr, uid, payment_order, domain, context=None):
+ super(payment_order_create, self).extend_payment_order_domain(
+ cr, uid, payment_order, domain, context=context)
+ domain += [
+ '|', '|',
+ ('invoice', '=', False),
+ ('invoice.payment_mode_id', '=', False),
+ ('invoice.payment_mode_id', '=', payment_order.mode.id)
+ ]
+ return True
diff --git a/account_payment_partner/view/account_invoice.xml b/account_payment_partner/view/account_invoice.xml
new file mode 100644
index 000000000..0bfd2d1f5
--- /dev/null
+++ b/account_payment_partner/view/account_invoice.xml
@@ -0,0 +1,38 @@
+
+
+
+
+
+
+
+
+
+ account_payment_partner.invoice_form
+ account.invoice
+
+
+
+
+
+
+
+
+
+
+ account_payment_partner.invoice_supplier_form
+ account.invoice
+
+
+
+
+
+
+
+
+
+
+
diff --git a/account_payment_partner/view/partner.xml b/account_payment_partner/view/partner.xml
new file mode 100644
index 000000000..02eb8cc0f
--- /dev/null
+++ b/account_payment_partner/view/partner.xml
@@ -0,0 +1,31 @@
+
+
+
+
+
+
+
+
+
+ account_partner_payment.partner_form
+ res.partner
+
+
+
+
+
+
+
+
+
+
+
+
+
+
From 7824be8af3604ea0b3db4cf82745da199a49113a Mon Sep 17 00:00:00 2001
From: Launchpad Translations on behalf of banking-addons-team
Date: Fri, 27 Jun 2014 07:13:31 +0000
Subject: [PATCH 02/58] Launchpad automatic translations update.
---
account_payment_partner/i18n/nl.po | 58 ++++++++++++++++++++++++++++++
1 file changed, 58 insertions(+)
create mode 100644 account_payment_partner/i18n/nl.po
diff --git a/account_payment_partner/i18n/nl.po b/account_payment_partner/i18n/nl.po
new file mode 100644
index 000000000..4c90fe776
--- /dev/null
+++ b/account_payment_partner/i18n/nl.po
@@ -0,0 +1,58 @@
+# Dutch translation for banking-addons
+# Copyright (c) 2014 Rosetta Contributors and Canonical Ltd 2014
+# This file is distributed under the same license as the banking-addons package.
+# FIRST AUTHOR , 2014.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: banking-addons\n"
+"Report-Msgid-Bugs-To: FULL NAME \n"
+"POT-Creation-Date: 2014-06-09 23:22+0000\n"
+"PO-Revision-Date: 2014-06-26 14:13+0000\n"
+"Last-Translator: Erwin van der Ploeg (BAS Solutions) \n"
+"Language-Team: Dutch \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Launchpad-Export-Date: 2014-06-27 07:13+0000\n"
+"X-Generator: Launchpad (build 17077)\n"
+
+#. module: account_payment_partner
+#: field:res.partner,customer_payment_mode:0
+msgid "Customer Payment Mode"
+msgstr "Betaalwijze klant"
+
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_account_invoice
+msgid "Invoice"
+msgstr "Factuur"
+
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_res_partner
+msgid "Partner"
+msgstr "Relatie"
+
+#. module: account_payment_partner
+#: field:account.invoice,payment_mode_id:0
+msgid "Payment Mode"
+msgstr "Betaalwijze"
+
+#. module: account_payment_partner
+#: help:res.partner,customer_payment_mode:0
+msgid "Select the default payment mode for this customer."
+msgstr "Selecteer de standaard betaalwijze voor deze klant."
+
+#. module: account_payment_partner
+#: help:res.partner,supplier_payment_mode:0
+msgid "Select the default payment mode for this supplier."
+msgstr "Selecteer de standaard betaalwijze voor deze leverancier."
+
+#. module: account_payment_partner
+#: field:res.partner,supplier_payment_mode:0
+msgid "Supplier Payment Mode"
+msgstr "Betaalwijze leverancier"
+
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_payment_order_create
+msgid "payment.order.create"
+msgstr "payment.order.create"
From 451a7dda0afa6fbe9714813ac7bccd388dd9830d Mon Sep 17 00:00:00 2001
From: "Pedro M. Baeza"
Date: Wed, 10 Sep 2014 12:19:20 +0200
Subject: [PATCH 03/58] [MIG] account_payment_partner: Migration to v8
* Migration and enhancement of all modules involved in SEPA
* Clean files
* Replace deprecated workflow calls
* Translation template files
* Translations to spanish
* Use sale_ok and purchase_ok instead of tweaking payment type
---
account_payment_partner/__init__.py | 3 +-
account_payment_partner/__openerp__.py | 14 ++---
.../i18n/account_payment_partner.pot | 13 ++--
account_payment_partner/i18n/es.po | 52 ++++++++++++++++
account_payment_partner/i18n/fr.po | 57 ++++++++++++++++++
account_payment_partner/models/__init__.py | 24 ++++++++
.../{model => models}/account_invoice.py | 31 +++++-----
.../{model => models}/payment_order_create.py | 7 +--
.../partner.py => models/res_partner.py} | 28 ++++-----
.../static/description/icon.png | Bin 0 -> 9455 bytes
.../view/account_invoice.xml | 38 ------------
.../views/account_invoice_view.xml | 40 ++++++++++++
.../res_partner_view.xml} | 8 +--
.../{model => wizard}/__init__.py | 2 -
.../wizard/payment_order_create.py | 37 ++++++++++++
15 files changed, 254 insertions(+), 100 deletions(-)
create mode 100644 account_payment_partner/i18n/es.po
create mode 100644 account_payment_partner/i18n/fr.po
create mode 100644 account_payment_partner/models/__init__.py
rename account_payment_partner/{model => models}/account_invoice.py (65%)
rename account_payment_partner/{model => models}/payment_order_create.py (91%)
rename account_payment_partner/{model/partner.py => models/res_partner.py} (60%)
create mode 100644 account_payment_partner/static/description/icon.png
delete mode 100644 account_payment_partner/view/account_invoice.xml
create mode 100644 account_payment_partner/views/account_invoice_view.xml
rename account_payment_partner/{view/partner.xml => views/res_partner_view.xml} (75%)
rename account_payment_partner/{model => wizard}/__init__.py (95%)
create mode 100644 account_payment_partner/wizard/payment_order_create.py
diff --git a/account_payment_partner/__init__.py b/account_payment_partner/__init__.py
index 161123944..fe47437f2 100644
--- a/account_payment_partner/__init__.py
+++ b/account_payment_partner/__init__.py
@@ -20,4 +20,5 @@
#
##############################################################################
-from . import model
+from . import models
+from . import wizard
diff --git a/account_payment_partner/__openerp__.py b/account_payment_partner/__openerp__.py
index 4e0217c98..99df885ea 100644
--- a/account_payment_partner/__openerp__.py
+++ b/account_payment_partner/__openerp__.py
@@ -23,7 +23,7 @@
{
'name': 'Account Payment Partner',
- 'version': '0.1',
+ 'version': '8.0.0.1.0',
'category': 'Banking addons',
'license': 'AGPL-3',
'summary': 'Adds payment mode on partners and invoices',
@@ -39,17 +39,15 @@ This module adds severals fields :
On a Payment Order, in the wizard *Select Invoices to Pay*, the invoices will
be filtered per Payment Mode.
-
-Please contact Alexis de Lattre from Akretion
-for any help or question about this module.
""",
- 'author': 'Akretion',
+ 'author': "Akretion,Odoo Community Association (OCA)",
'website': 'http://www.akretion.com',
+ 'contributors': ['Pedro M. Baeza '],
'depends': ['account_banking_payment_export'],
'data': [
- 'view/partner.xml',
- 'view/account_invoice.xml',
+ 'views/res_partner_view.xml',
+ 'views/account_invoice_view.xml',
],
'demo': ['demo/partner_demo.xml'],
- 'active': False,
+ 'installable': True,
}
diff --git a/account_payment_partner/i18n/account_payment_partner.pot b/account_payment_partner/i18n/account_payment_partner.pot
index ca26e532d..3c5a39686 100644
--- a/account_payment_partner/i18n/account_payment_partner.pot
+++ b/account_payment_partner/i18n/account_payment_partner.pot
@@ -1,13 +1,13 @@
-# Translation of OpenERP Server.
+# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_payment_partner
#
msgid ""
msgstr ""
-"Project-Id-Version: OpenERP Server 7.0\n"
+"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2014-06-09 23:22+0000\n"
-"PO-Revision-Date: 2014-06-09 23:22+0000\n"
+"POT-Creation-Date: 2014-10-31 22:53+0000\n"
+"PO-Revision-Date: 2014-10-31 22:53+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@@ -50,8 +50,3 @@ msgstr ""
msgid "Supplier Payment Mode"
msgstr ""
-#. module: account_payment_partner
-#: model:ir.model,name:account_payment_partner.model_payment_order_create
-msgid "payment.order.create"
-msgstr ""
-
diff --git a/account_payment_partner/i18n/es.po b/account_payment_partner/i18n/es.po
new file mode 100644
index 000000000..63748b988
--- /dev/null
+++ b/account_payment_partner/i18n/es.po
@@ -0,0 +1,52 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * account_payment_partner
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Odoo Server 8.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2014-10-31 22:53+0000\n"
+"PO-Revision-Date: 2014-10-31 22:53+0000\n"
+"Last-Translator: <>\n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Plural-Forms: \n"
+
+#. module: account_payment_partner
+#: field:res.partner,customer_payment_mode:0
+msgid "Customer Payment Mode"
+msgstr "Modo de pago de cliente"
+
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_account_invoice
+msgid "Invoice"
+msgstr "Factura"
+
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_res_partner
+msgid "Partner"
+msgstr "Empresa"
+
+#. module: account_payment_partner
+#: field:account.invoice,payment_mode_id:0
+msgid "Payment Mode"
+msgstr "Modo de pago"
+
+#. module: account_payment_partner
+#: help:res.partner,customer_payment_mode:0
+msgid "Select the default payment mode for this customer."
+msgstr "Seleccione el modo de pago por defecto cuando esta empresa actúa como cliente."
+
+#. module: account_payment_partner
+#: help:res.partner,supplier_payment_mode:0
+msgid "Select the default payment mode for this supplier."
+msgstr "Seleccione el modo de pago por defecto cuando esta empresa actúa como proveedor."
+
+#. module: account_payment_partner
+#: field:res.partner,supplier_payment_mode:0
+msgid "Supplier Payment Mode"
+msgstr "Modo de pago de proveedor"
+
diff --git a/account_payment_partner/i18n/fr.po b/account_payment_partner/i18n/fr.po
new file mode 100644
index 000000000..ca26e532d
--- /dev/null
+++ b/account_payment_partner/i18n/fr.po
@@ -0,0 +1,57 @@
+# Translation of OpenERP Server.
+# This file contains the translation of the following modules:
+# * account_payment_partner
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: OpenERP Server 7.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2014-06-09 23:22+0000\n"
+"PO-Revision-Date: 2014-06-09 23:22+0000\n"
+"Last-Translator: <>\n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Plural-Forms: \n"
+
+#. module: account_payment_partner
+#: field:res.partner,customer_payment_mode:0
+msgid "Customer Payment Mode"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_account_invoice
+msgid "Invoice"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_res_partner
+msgid "Partner"
+msgstr ""
+
+#. module: account_payment_partner
+#: field:account.invoice,payment_mode_id:0
+msgid "Payment Mode"
+msgstr ""
+
+#. module: account_payment_partner
+#: help:res.partner,customer_payment_mode:0
+msgid "Select the default payment mode for this customer."
+msgstr ""
+
+#. module: account_payment_partner
+#: help:res.partner,supplier_payment_mode:0
+msgid "Select the default payment mode for this supplier."
+msgstr ""
+
+#. module: account_payment_partner
+#: field:res.partner,supplier_payment_mode:0
+msgid "Supplier Payment Mode"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_payment_order_create
+msgid "payment.order.create"
+msgstr ""
+
diff --git a/account_payment_partner/models/__init__.py b/account_payment_partner/models/__init__.py
new file mode 100644
index 000000000..c2c7b405d
--- /dev/null
+++ b/account_payment_partner/models/__init__.py
@@ -0,0 +1,24 @@
+# -*- encoding: utf-8 -*-
+##############################################################################
+#
+# Account Payment Partner module for OpenERP
+# Copyright (C) 2014 Akretion (http://www.akretion.com)
+# @author Alexis de Lattre
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+#
+##############################################################################
+
+from . import res_partner
+from . import account_invoice
diff --git a/account_payment_partner/model/account_invoice.py b/account_payment_partner/models/account_invoice.py
similarity index 65%
rename from account_payment_partner/model/account_invoice.py
rename to account_payment_partner/models/account_invoice.py
index 607cda29a..e14c0d956 100644
--- a/account_payment_partner/model/account_invoice.py
+++ b/account_payment_partner/models/account_invoice.py
@@ -20,37 +20,34 @@
#
##############################################################################
-from openerp.osv import orm, fields
+from openerp import models, fields, api
-class account_invoice(orm.Model):
+class AccountInvoice(models.Model):
_inherit = 'account.invoice'
- _columns = {
- 'payment_mode_id': fields.many2one(
- 'payment.mode', 'Payment Mode'),
- }
+ payment_mode_id = fields.Many2one(
+ comodel_name='payment.mode', string="Payment Mode",
+ domain="[('type', '=', type)]")
+ @api.multi
def onchange_partner_id(
- self, cr, uid, ids, type, partner_id, date_invoice=False,
+ self, type, partner_id, date_invoice=False,
payment_term=False, partner_bank_id=False, company_id=False):
- res = super(account_invoice, self).onchange_partner_id(
- cr, uid, ids, type, partner_id, date_invoice=date_invoice,
+ res = super(AccountInvoice, self).onchange_partner_id(
+ type, partner_id, date_invoice=date_invoice,
payment_term=payment_term, partner_bank_id=partner_bank_id,
company_id=company_id)
if partner_id:
- partner = self.pool['res.partner'].browse(cr, uid, partner_id)
+ partner = self.env['res.partner'].browse(partner_id)
if type == 'in_invoice':
res['value']['payment_mode_id'] = \
- partner.supplier_payment_mode.id or False
+ partner.supplier_payment_mode.id
elif type == 'out_invoice':
res['value'].update({
- 'payment_mode_id':
- partner.customer_payment_mode.id or False,
- 'partner_bank_id':
- partner.customer_payment_mode and
- partner.customer_payment_mode.bank_id.id or False,
- })
+ 'payment_mode_id': partner.customer_payment_mode.id,
+ 'partner_bank_id': partner.customer_payment_mode.bank_id.id
+ })
else:
res['value']['payment_mode_id'] = False
return res
diff --git a/account_payment_partner/model/payment_order_create.py b/account_payment_partner/models/payment_order_create.py
similarity index 91%
rename from account_payment_partner/model/payment_order_create.py
rename to account_payment_partner/models/payment_order_create.py
index ea8b1ccb3..3b9b536a7 100644
--- a/account_payment_partner/model/payment_order_create.py
+++ b/account_payment_partner/models/payment_order_create.py
@@ -23,17 +23,16 @@
from openerp.osv import orm
-class payment_order_create(orm.TransientModel):
+class PaymentOrderCreate(orm.TransientModel):
_inherit = 'payment.order.create'
def extend_payment_order_domain(
self, cr, uid, payment_order, domain, context=None):
- super(payment_order_create, self).extend_payment_order_domain(
+ super(PaymentOrderCreate, self).extend_payment_order_domain(
cr, uid, payment_order, domain, context=context)
domain += [
'|', '|',
('invoice', '=', False),
('invoice.payment_mode_id', '=', False),
- ('invoice.payment_mode_id', '=', payment_order.mode.id)
- ]
+ ('invoice.payment_mode_id', '=', payment_order.mode.id)]
return True
diff --git a/account_payment_partner/model/partner.py b/account_payment_partner/models/res_partner.py
similarity index 60%
rename from account_payment_partner/model/partner.py
rename to account_payment_partner/models/res_partner.py
index 4bfe4c787..5726da446 100644
--- a/account_payment_partner/model/partner.py
+++ b/account_payment_partner/models/res_partner.py
@@ -20,25 +20,23 @@
#
##############################################################################
-from openerp.osv import orm, fields
+from openerp import models, fields, api
-class res_partner(orm.Model):
+class ResPartner(models.Model):
_inherit = 'res.partner'
- _columns = {
- 'supplier_payment_mode': fields.property(
- 'payment.mode', type='many2one', relation='payment.mode',
- string='Supplier Payment Mode', view_load=True,
- help="Select the default payment mode for this supplier."),
- 'customer_payment_mode': fields.property(
- 'payment.mode', type='many2one', relation='payment.mode',
- string='Customer Payment Mode', view_load=True,
- help="Select the default payment mode for this customer."),
- }
+ supplier_payment_mode = fields.Many2one(
+ 'payment.mode', string='Supplier Payment Mode', company_dependent=True,
+ domain="[('purchase_ok', '=', True)]",
+ help="Select the default payment mode for this supplier.")
+ customer_payment_mode = fields.Many2one(
+ 'payment.mode', string='Customer Payment Mode', company_dependent=True,
+ domain="[('sale_ok', '=', True)]",
+ help="Select the default payment mode for this customer.")
- def _commercial_fields(self, cr, uid, context=None):
- res = super(res_partner, self)._commercial_fields(
- cr, uid, context=context)
+ @api.model
+ def _commercial_fields(self):
+ res = super(ResPartner, self)._commercial_fields()
res += ['supplier_payment_mode', 'customer_payment_mode']
return res
diff --git a/account_payment_partner/static/description/icon.png b/account_payment_partner/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*5XwD)P--sPkoY(a~WBw;E~AW`Yue4kFa^LM3X`8x|}ZUeMnqr}>kH
zG%WWW>3ml$Yez?i%)2pbKPI7?5o?hydokgQyZsNEr{a|mLdt;X2TX(#B1j35xPnPW
z*bMSSOauW>o;*=kO8ojw91VX!qoOQb)zHJ!odWB}d+*K?#sY_jqPdg{Sm2HdYzdEx
zOGVPhVRTGPtv0o}RfVP;Nd(|CB)I;*t&QO8h
zFfekr30S!-LHmV_Su-W+rEwYXJ^;6&3|L$mMC8*bQptyOo9;>Qb9Q9`ySe3%V$A*9
zeKEe+b0{#KWGp$F+tga)0RtI)nhMa-K@JS}2krK~n8vJ=Ngm?R!9G<~RyuU0d?nz#
z-5EK$o(!F?hmX*2Yt6+coY`6jGbb7tF#6nHA
zuKk=GGJ;ZwON1iAfG$E#Y7MnZVmrY|j0eVI(DN_MNFJmyZ|;w4tf@=CCDZ#5N_0K=
z$;R~bbk?}TpfDjfB&aiQ$VA}s?P}xPERJG{kxk5~R`iRS(SK5d+Xs9swCozZISbnS
zk!)I0>t=A<-^z(cmSFz3=jZ23u13X><0b)P)^1T_))Kr`e!-pb#q&J*Q`p+B6la%C
zuVl&0duN<;uOsB3%T9Fp8t{ED108)`y_~Hnd9AUX7h-H?jVuU|}My+C=TjH(jKz
zqMVr0re3S$H@t{zI95qa)+Crz*5Zj}Ao%4Z><+W(nOZd?gDnfNBC3>M8WE61$So|P
zVvqH0SNtDTcsUdzaMDpT=Ty0pDHHNL@Z0w$Y`XO
z2M-_r1S+GaH%pz#Uy0*w$Vdl=X=rQXEzO}d6J^R6zjM1u&c9vYLvLp?W7w(?np9x1
zE_0JSAJCPB%i7p*Wvg)pn5T`8k3-uR?*NT|J`eS#_#54p>!p(mLDvmc-3o0mX*mp_
zN*AeS<>#^-{S%W<*mz^!X$w_2dHWpcJ6^j64qFBft-o}o_Vx80o0>}Du;>kLts;$8
zC`7q$QI(dKYG`Wa8#wl@V4jVWBRGQ@1dr-hstpQL)Tl+aqVpGpbSfN>5i&QMXfiZ>
zaA?T1VGe?rpQ@;+pkrVdd{klI&jVS@I5_iz!=UMpTsa~mBga?1r}aRBm1WS;TT*s0f0lY=JBl66Upy)-k4J}lh=P^8(SXk~0xW=T9v*B|gzIhN
z>qsO7dFd~mgxAy4V?&)=5ieYq?zi?ZEoj)&2o)RLy=@hbCRcfT5jigwtQGE{L*8<@Yd{zg;CsL5mvzfDY}P-wos_6PfprFVaeqNE%h
zKZhLtcQld;ZD+>=nqN~>GvROfueSzJD&BE*}XfU|H&(FssBqY=hPCt`d
zH?@s2>I(|;fcW&YM6#V#!kUIP8$Nkdh0A(bEVj``-AAyYgwY~jB
zT|I7Bf@%;7aL7Wf4dZ%VqF$eiaC38OV6oy3Z#TER2G+fOCd9Iaoy6aLYbPTN{XRPz
z;U!V|vBf%H!}52L2gH_+j;`bTcQRXB+y9onc^wLm5wi3-Be}U>k_u>2Eg$=k!(l@I
zcCg+flakT2Nej3i0yn+g+}%NYb?ta;R?(g5SnwsQ49U8Wng8d|{B+lyRcEDvR3+`O{zfmrmvFrL6acVP%yG98X
zo&+VBg@px@i)%o?dG(`T;n*$S5*rnyiR#=wW}}GsAcfyQpE|>a{=$Hjg=-*_K;UtD
z#z-)AXwSRY?OPefw^iI+
z)AXz#PfEjlwTes|_{sB?4(O@fg0AJ^g8gP}ex9Ucf*@_^J(s_5jJV}c)s$`Myn|Kd
z$6>}#q^n{4vN@+Os$m7KV+`}c%4)4pv@06af4-x5#wj!KKb%caK{A&Y#Rfs
z-po?Dcb1({W=6FKIUirH&(yg=*6aLCekcKwyfK^JN5{wcA3nhO(o}SK#!CINhI`-I
z1)6&n7O&ZmyFMuNwvEic#IiOAwNkR=u5it{B9n2sAJV5pNhar=j5`*N!Na;c7g!l$
z3aYBqUkqqTJ=Re-;)s!EOeij=7SQZ3Hq}ZRds%IM*PtM$wV
z@;rlc*NRK7i3y5BETSKuumEN`Xu_8GP1Ri=OKQ$@I^ko8>H6)4rjiG5{VBM>B|%`&&s^)jS|-_95&yc=GqjNo{zFkw%%HHhS~e=s
zD#sfS+-?*t|J!+ozP6KvtOl!R)@@-z24}`9{QaVLD^9VCSR2b`b!KC#o;Ki<+wXB6
zx3&O0LOWcg4&rv4QG0)4yb}7BFSEg~=IR5#ZRj8kg}dS7_V&^%#Do==#`u
zpy6{ox?jWuR(;pg+f@mT>#HGWHAJRRDDDv~@(IDw&R>9643kK#HN`!1vBJHnC+RM&yIh8{gG2q
zA%e*U3|N0XSRa~oX-3EAneep)@{h2vvd3Xvy$7og(sayr@95+e6~Xvi1tUqnIxoIH
zVWo*OwYElb#uyW{Imam6f2rGbjR!Y3`#gPqkv57dB6K^wRGxc9B(t|aYDGS=m$&S!NmCtrMMaUg(c
zc2qC=2Z`EEFMW-me5B)24AqF*bV5Dr-M5ig(l-WPS%CgaPzs6p_gnCIvTJ=Y<6!gT
zVt@AfYCzjjsMEGi=rDQHo0yc;HqoRNnNFeWZgcm?f;cp(6CNylj36DoL(?TS7eU#+
z7&mfr#y))+CJOXQKUMZ7QIdS9@#-}7y2K1{8)cCt0~-X0O!O?Qx#E4Og+;A2SjalQ
zs7r?qn0H044=sDN$SRG$arw~n=+T_DNdSrarmu)V6@|?1-ZB#hRn`uilTGPJ@fqEy
zGt(f0B+^JDP&f=r{#Y_wi#AVDf-y!RIXU^0jXsFpf>=Ji*TeqSY!H~AMbJdCGLhC)
zn7Rx+sXw6uYj;WRYrLd^5IZq@6JI1C^YkgnedZEYy<&4(z%Q$5yv#Boo{AH8n$a
zhb4Y3PWdr269&?V%uI$xMcUrMzl=;w<_nm*qr=c3Rl@i5wWB;e-`t7D&c-mcQl7x!
zZWB`UGcw=Y2=}~wzrfLx=uet<;m3~=8I~ZRuzvMQUQdr+yTV|ATf1Uuomr__nDf=X
zZ3WYJtHp_ri(}SQAPjv+Y+0=fH4krOP@S&=zZ-t1jW1o@}z;xk8
z(Nz1co&El^HK^NrhVHa-_;&88vTU>_J33=%{if;BEY*J#1n59=07jrGQ#IP>@u#3A
z;!q+E1Rj3ZJ+!4bq9F8PXJ@yMgZL;>&gYA0%_Kbi8?S=XGM~dnQZQ!yBSgcZhY96H
zrWnU;k)qy`rX&&xlDyA%(a1Hhi5CWkmg(`Gb%m(HKi-7Z!LKGRP_B8@`7&hdDy5n=
z`OIxqxiVfX@OX1p(mQu>0Ai*v_cTMiw4qRt3~NBvr9oBy0)r>w3p~V0SCm=An6@3n)>@z!|o-$HvDK
z|3D2ZMJkLE5loMKl6R^ez@Zz%S$&mbeoqH5`Bb){Ei21q&VP)hWS2tjShfFtGE+$z
zzCR$P#uktu+#!w)cX!lWN1XU%K-r=s{|j?)Akf@q#3b#{6cZCuJ~gCxuMXRmI$nGtnH+-h
z+GEi!*X=AP<|fG`1>MBdTb?28JYc=fGvAi2I<$B(rs$;eoJCyR6_bc~p!XR@O-+sD
z=eH`-ye})I5ic1eL~TDmtfJ|8`0VJ*Yr=hNCd)G1p2MMz4C3^Mj?7;!w|Ly%JqmuW
zlIEW^Ft%z?*|fpXda>Jr^1noFZEwFgVV%|*XhH@acv8rdGxeEX{M$(vG{Zw+x(ei@
zmfXb22}8-?Fi`vo-YVrTH*C?a8%M=Hv9MqVH7H^J$KsD?>!SFZ;ZsvnHr_gn=7acz
z#W?0eCdVhVMWN12VV^$>WlQ?f;P^{(&pYTops|btm6aj>_Uz+hqpGwB)vWp0Cf5y<
zft8-je~nn?W11plq}N)4A{l8I7$!ks_x$PXW-2XaRFswX_BnF{R#6YIwMhAgd5F9X
zGmwdadS6(a^fjHtXg8=l?Rc0Sm%hk6E9!5cLVloEy4eh(=FwgP`)~I^5~pBEWo+F6
zSf2ncyMurJN91#cJTy_u8Y}@%!bq1RkGC~-bV@SXRd4F{R-*V`bS+6;W5vZ(&+I<9$;-V|eNfLa5n-6%
z2(}&uGRF;p92eS*sE*oR$@pexaqr*meB)VhmIg@h{uzkk$9~qh#cHhw#>O%)b@+(|
z^IQgqzuj~Sk(J;swEM-3TrJAPCq9k^^^`q{IItKBRXYe}e0Tdr=Huf7da3$l4PdpwWDop%^}n;dD#K4s#DYA8SHZ
z&1!riV4W4R7R#C))JH1~axJ)RYnM$$lIR%6fIVA@zV{XVyx}C+a-Dt8Y9M)^KU0+H
zR4IUb2CJ{Hg>CuaXtD50jB(_Tcx=Z$^WYu2u5kubqmwp%drJ6
z?Fo40g!Qd<-l=TQxqHEOuPX0;^z7iX?Ke^a%XT<13TA^5`4Xcw6D@Ur&VT&CUe0d}
z1GjOVF1^L@>O)l@?bD~$wzgf(nxX1OGD8fEV?TdJcZc2KoUe|oP1#=$$7ee|xbY)A
zDZq+cuTpc(fFdj^=!;{k03C69lMQ(|>uhRfRu%+!k&YOi-3|1QKB
z
z?n?eq1XP>p-IM$Z^C;2L3itnbJZAip*Zo0aw2bs8@(s^~*8T9go!%dHcAz2lM;`yp
zD=7&xjFV$S&5uDaiScyD?B-i1ze`+CoRtz`Wn+Zls4&}MO{@N!ufrzjG$B79)Y2d3tBk&)TxUTw@QS0TEL_?njX|@vq?Uz(nBFK5Pq7*xj#u*R&i|?7+6#
z+|r_n#SW&LXhtheZdah{ZVoqwyT{D>MC3nkFF#N)xLi{p7J1jXlmVeb;cP5?e(=f#
zuT7fvjSbjS781v?7{)-X3*?>tq?)Yd)~|1{BDS(pqC
zC}~H#WXlkUW*H5CDOo<)#x7%RY)A;ShGhI5s*#cRDA8YgqG(HeKDx+#(ZQ?386dv!
zlXCO)w91~Vw4AmOcATuV653fa9R$fyK8ul%rG
z-wfS
zihugoZyr38Im?Zuh6@RcF~t1anQu7>#lPpb#}4cOA!EM11`%f*07RqOVkmX{p~KJ9
z^zP;K#|)$`^Rb{rnHGH{~>1(fawV0*Z#)}M`m8-?ZJV<+e}s9wE#
z)l&az?w^5{)`S(%MRzxdNqrs1n*-=jS^_jqE*5XDrA0+VE`5^*p3CuM<&dZEeCjoz
zR;uu_H9ZPZV|fQq`Cyw4nscrVwi!fE6ciMmX$!_hN7uF;jjKG)d2@aC4ropY)8etW=xJvni)8eHi`H$%#zn^WJ5NLc-rqk|u&&4Z6fD_m&JfSI1Bvb?b<*n&sfl0^t
z=HnmRl`XrFvMKB%9}>PaA`m-fK6a0(8=qPkWS5bb4=v?XcWi&hRY?O5HdulRi4?fN
zlsJ*N-0Qw+Yic@s0(2uy%F@ib;GjXt01Fmx5XbRo6+n|pP(&nodMoap^z{~q
ziEeaUT@Mxe3vJSfI6?uLND(CNr=#^W<1b}jzW58bIfyWTDle$mmS(|x-0|2UlX+9k
zQ^EX7Nw}?EzVoBfT(-LT|=9N@^hcn-_p&sqG
z&*oVs2JSU+N4ZD`FhCAWaS;>|wH2G*Id|?pa#@>tyxX`+4HyIArWDvVrX)2WAOQff
z0qyHu&-S@i^MS-+j--!pr4fPBj~_8({~e1bfcl0wI1kaoN>mJL6KUPQm5N7lB(ui1
zE-o%kq)&djzWJ}ob<-GfDlkB;F31j-VHKvQUGQ3sp`CwyGJk_i!y^sD0fqC@$9|jO
zOqN!r!8-p==F@ZVP=U$qSpY(gQ0)59P1&t@y?5rvg<}E+GB}26NYPp4f2YFQrQtot5mn3wu_qprZ=>Ig-$
zbW26Ws~IgY>}^5w`vTB(G`PTZaDiGBo5o(tp)qli|NeV(
z@H_=R8V39rt5J5YB2Ky?4eJJ#b`_iBe2ot~6%7mLt5t8Vwi^Jy7|jWXqa3amOIoRb
zOr}WVFP--DsS`1WpN%~)t3R!arKF^Q$e12KEqU36AWwnCBICpH4XCsfnyrHr>$I$4
z!DpKX$OKLWarN7nv@!uIA+~RNO)l$$w}p(;b>mx8pwYvu;dD_unryX_NhT8*Tj>BTrTTL&!?O+%Rv;b?B??gSzdp?6Uug9{
zd@V08Z$BdI?fpoCS$)t4mg4rT8Q_I}h`0d-vYZ^|dOB*Q^S|xqTV*vIg?@fVFSmMpaw0qtTRbx}
z({Pg?#{2`sc9)M5N$*N|4;^t$+QP?#mov
zGVC@I*lBVrOU-%2y!7%)fAKjpEFsgQc4{amtiHb95KQEwvf<(3T<9-Zm$xIew#P22
zc2Ix|App^>v6(3L_MCU0d3W##AB0M~3D00EWoKZqsJYT(#@w$Y_H7G22M~ApVFTRHMI_3be)Lkn#0F*V8Pq
zc}`Cjy$bE;FJ6H7p=0y#R>`}-m4(0F>%@P|?7fx{=R^uFdISRnZ2W_xQhD{YuR3t<
z{6yxu=4~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/account_payment_partner/view/account_invoice.xml b/account_payment_partner/view/account_invoice.xml
deleted file mode 100644
index 0bfd2d1f5..000000000
--- a/account_payment_partner/view/account_invoice.xml
+++ /dev/null
@@ -1,38 +0,0 @@
-
-
-
-
-
-
-
-
-
- account_payment_partner.invoice_form
- account.invoice
-
-
-
-
-
-
-
-
-
-
- account_payment_partner.invoice_supplier_form
- account.invoice
-
-
-
-
-
-
-
-
-
-
-
diff --git a/account_payment_partner/views/account_invoice_view.xml b/account_payment_partner/views/account_invoice_view.xml
new file mode 100644
index 000000000..534822ea9
--- /dev/null
+++ b/account_payment_partner/views/account_invoice_view.xml
@@ -0,0 +1,40 @@
+
+
+
+
+
+
+
+
+
+ account_payment_partner.invoice_form
+ account.invoice
+
+
+
+
+
+
+
+
+
+
+ account_payment_partner.invoice_supplier_form
+ account.invoice
+
+
+
+
+
+
+
+
+
+
+
diff --git a/account_payment_partner/view/partner.xml b/account_payment_partner/views/res_partner_view.xml
similarity index 75%
rename from account_payment_partner/view/partner.xml
rename to account_payment_partner/views/res_partner_view.xml
index 02eb8cc0f..3c6d670aa 100644
--- a/account_payment_partner/view/partner.xml
+++ b/account_payment_partner/views/res_partner_view.xml
@@ -9,23 +9,19 @@
-
account_partner_payment.partner_form
res.partner
-
+
-
+
-
diff --git a/account_payment_partner/model/__init__.py b/account_payment_partner/wizard/__init__.py
similarity index 95%
rename from account_payment_partner/model/__init__.py
rename to account_payment_partner/wizard/__init__.py
index 16ab8bc9e..f7107a63f 100644
--- a/account_payment_partner/model/__init__.py
+++ b/account_payment_partner/wizard/__init__.py
@@ -20,6 +20,4 @@
#
##############################################################################
-from . import partner
-from . import account_invoice
from . import payment_order_create
diff --git a/account_payment_partner/wizard/payment_order_create.py b/account_payment_partner/wizard/payment_order_create.py
new file mode 100644
index 000000000..c26b7f9d9
--- /dev/null
+++ b/account_payment_partner/wizard/payment_order_create.py
@@ -0,0 +1,37 @@
+# -*- encoding: utf-8 -*-
+##############################################################################
+#
+# Account Payment Partner module for OpenERP
+# Copyright (C) 2014 Akretion (http://www.akretion.com)
+# @author Alexis de Lattre
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+#
+##############################################################################
+
+from openerp import models, api
+
+
+class PaymentOrderCreate(models.TransientModel):
+ _inherit = 'payment.order.create'
+
+ @api.model
+ def extend_payment_order_domain(self, payment_order, domain):
+ res = super(PaymentOrderCreate, self).extend_payment_order_domain(
+ payment_order, domain)
+ domain += ['|', '|',
+ ('invoice', '=', False),
+ ('invoice.payment_mode_id', '=', False),
+ ('invoice.payment_mode_id', '=', payment_order.mode.id)]
+ return res
From 673778933e2bca1837e75b871abdaa7bc5c7964f Mon Sep 17 00:00:00 2001
From: Roberto Lizana
Date: Thu, 27 Nov 2014 12:55:21 +0100
Subject: [PATCH 04/58] [FIX+IMP] account_payment_partner: 2 things:
* IMP: Add filter group by payment mode in account invoices
* FIX: Remove deprecated tag type
---
.../views/account_invoice_view.xml | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/account_payment_partner/views/account_invoice_view.xml b/account_payment_partner/views/account_invoice_view.xml
index 534822ea9..5655e3d25 100644
--- a/account_payment_partner/views/account_invoice_view.xml
+++ b/account_payment_partner/views/account_invoice_view.xml
@@ -9,6 +9,17 @@
+
+ account_payment_partner.invoice_filter
+ account.invoice
+
+
+
+
+
+
+
+
account_payment_partner.invoice_form
From 8ef2c8b143e3d6cc3be3d8b1527bbd7eda625e0c Mon Sep 17 00:00:00 2001
From: Alexis de Lattre
Date: Wed, 14 Jan 2015 15:25:50 +0100
Subject: [PATCH 05/58] [IMP] account_payment_partner: Several things:
* move unused file + cleanup code
* Add sale_ok and purchase_ok filters in partner/sale/purchase form views
* Use widget=selection for payment_mode_id fields
* Update demo data
* Return res in inherit (even if res is empty in this case)
---
.../models/payment_order_create.py | 38 -------------------
.../views/account_invoice_view.xml | 6 ++-
.../views/res_partner_view.xml | 8 +++-
3 files changed, 10 insertions(+), 42 deletions(-)
delete mode 100644 account_payment_partner/models/payment_order_create.py
diff --git a/account_payment_partner/models/payment_order_create.py b/account_payment_partner/models/payment_order_create.py
deleted file mode 100644
index 3b9b536a7..000000000
--- a/account_payment_partner/models/payment_order_create.py
+++ /dev/null
@@ -1,38 +0,0 @@
-# -*- encoding: utf-8 -*-
-##############################################################################
-#
-# Account Payment Partner module for OpenERP
-# Copyright (C) 2014 Akretion (http://www.akretion.com)
-# @author Alexis de Lattre
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as
-# published by the Free Software Foundation, either version 3 of the
-# License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see .
-#
-##############################################################################
-
-from openerp.osv import orm
-
-
-class PaymentOrderCreate(orm.TransientModel):
- _inherit = 'payment.order.create'
-
- def extend_payment_order_domain(
- self, cr, uid, payment_order, domain, context=None):
- super(PaymentOrderCreate, self).extend_payment_order_domain(
- cr, uid, payment_order, domain, context=context)
- domain += [
- '|', '|',
- ('invoice', '=', False),
- ('invoice.payment_mode_id', '=', False),
- ('invoice.payment_mode_id', '=', payment_order.mode.id)]
- return True
diff --git a/account_payment_partner/views/account_invoice_view.xml b/account_payment_partner/views/account_invoice_view.xml
index 5655e3d25..72afbb2a5 100644
--- a/account_payment_partner/views/account_invoice_view.xml
+++ b/account_payment_partner/views/account_invoice_view.xml
@@ -28,7 +28,8 @@
+ domain="[('sale_ok', '=', True)]"
+ widget="selection"/>
@@ -41,7 +42,8 @@
+ domain="[('purchase_ok', '=', True)]"
+ widget="selection"/>
diff --git a/account_payment_partner/views/res_partner_view.xml b/account_payment_partner/views/res_partner_view.xml
index 3c6d670aa..f52579b2c 100644
--- a/account_payment_partner/views/res_partner_view.xml
+++ b/account_payment_partner/views/res_partner_view.xml
@@ -15,10 +15,14 @@
-
+
-
+
From 3bdf4a6e3d5c1c568d2a8d13f6e746e09a5976b5 Mon Sep 17 00:00:00 2001
From: Danimar Ribeiro
Date: Fri, 13 Feb 2015 19:18:41 -0200
Subject: [PATCH 06/58] Portuguese translations
---
account_payment_partner/i18n/pt_BR.po | 52 +++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
create mode 100644 account_payment_partner/i18n/pt_BR.po
diff --git a/account_payment_partner/i18n/pt_BR.po b/account_payment_partner/i18n/pt_BR.po
new file mode 100644
index 000000000..63cd2737f
--- /dev/null
+++ b/account_payment_partner/i18n/pt_BR.po
@@ -0,0 +1,52 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * account_payment_partner
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Odoo Server 8.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2014-10-31 22:53+0000\n"
+"PO-Revision-Date: 2014-10-31 22:53+0000\n"
+"Last-Translator: Danimar Ribeiro \n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Plural-Forms: \n"
+
+#. module: account_payment_partner
+#: field:res.partner,customer_payment_mode:0
+msgid "Customer Payment Mode"
+msgstr "Modo de Pagamento do Cliente"
+
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_account_invoice
+msgid "Invoice"
+msgstr "Fatura"
+
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_res_partner
+msgid "Partner"
+msgstr "Parceiro"
+
+#. module: account_payment_partner
+#: field:account.invoice,payment_mode_id:0
+msgid "Payment Mode"
+msgstr "Modo de Pagamento"
+
+#. module: account_payment_partner
+#: help:res.partner,customer_payment_mode:0
+msgid "Select the default payment mode for this customer."
+msgstr "Selecione o modo de pagamento padrão para este cliente."
+
+#. module: account_payment_partner
+#: help:res.partner,supplier_payment_mode:0
+msgid "Select the default payment mode for this supplier."
+msgstr "Selecione o modo de pagamento padrão para este fornecedor."
+
+#. module: account_payment_partner
+#: field:res.partner,supplier_payment_mode:0
+msgid "Supplier Payment Mode"
+msgstr "Modo de Pagamento do Fornecedor"
+
From 153187b16786a06271285e31e4837f03d458f9aa Mon Sep 17 00:00:00 2001
From: Alexis de Lattre
Date: Mon, 16 Mar 2015 11:07:21 +0100
Subject: [PATCH 07/58] Add read access on payment.mode to employees
---
account_payment_partner/__openerp__.py | 1 +
account_payment_partner/security/ir.model.access.csv | 2 ++
2 files changed, 3 insertions(+)
create mode 100644 account_payment_partner/security/ir.model.access.csv
diff --git a/account_payment_partner/__openerp__.py b/account_payment_partner/__openerp__.py
index 99df885ea..e50726d48 100644
--- a/account_payment_partner/__openerp__.py
+++ b/account_payment_partner/__openerp__.py
@@ -47,6 +47,7 @@ be filtered per Payment Mode.
'data': [
'views/res_partner_view.xml',
'views/account_invoice_view.xml',
+ 'security/ir.model.access.csv',
],
'demo': ['demo/partner_demo.xml'],
'installable': True,
diff --git a/account_payment_partner/security/ir.model.access.csv b/account_payment_partner/security/ir.model.access.csv
new file mode 100644
index 000000000..b277f0229
--- /dev/null
+++ b/account_payment_partner/security/ir.model.access.csv
@@ -0,0 +1,2 @@
+id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
+access_payment_mode_read,Read access on payment.mode to Employees,account_payment.model_payment_mode,base.group_user,1,0,0,0
From 5152ca2b6453101d67f51df7ec75eaaf6c4dead0 Mon Sep 17 00:00:00 2001
From: "Pedro M. Baeza"
Date: Mon, 9 Mar 2015 09:15:19 +0100
Subject: [PATCH 08/58] [FIX] account_payment_partner: Fix for finding account
move lines without invoice (manual entries in receivables/payables)
---
.../wizard/payment_order_create.py | 25 +++++++++++++++++--
1 file changed, 23 insertions(+), 2 deletions(-)
diff --git a/account_payment_partner/wizard/payment_order_create.py b/account_payment_partner/wizard/payment_order_create.py
index c26b7f9d9..a07ed280e 100644
--- a/account_payment_partner/wizard/payment_order_create.py
+++ b/account_payment_partner/wizard/payment_order_create.py
@@ -30,8 +30,29 @@ class PaymentOrderCreate(models.TransientModel):
def extend_payment_order_domain(self, payment_order, domain):
res = super(PaymentOrderCreate, self).extend_payment_order_domain(
payment_order, domain)
- domain += ['|', '|',
- ('invoice', '=', False),
+ # Monkey patch for fixing problem with the core search function
+ # when args has ('invoice', '=', False), referred in the issue #4857
+ # (https://github.com/odoo/odoo/issues/4857)
+ #
+ # Original domain:
+ # domain += ['|', '|',
+ # ('invoice', '=', False),
+ # ('invoice.payment_mode_id', '=', False),
+ # ('invoice.payment_mode_id', '=', payment_order.mode.id)]
+ self.env.cr.execute(
+ "SELECT l.id "
+ "FROM account_move_line l "
+ "LEFT OUTER JOIN account_invoice i "
+ "ON l.move_id = i.move_id "
+ "INNER JOIN account_account a "
+ "ON a.id = l.account_id "
+ "WHERE i.id IS NULL"
+ " AND l.reconcile_id IS NULL"
+ " AND a.type in ('receivable', 'payable')")
+ ids = [x[0] for x in self.env.cr.fetchall()]
+ domain += ['|',
+ ('id', 'in', ids),
+ '|',
('invoice.payment_mode_id', '=', False),
('invoice.payment_mode_id', '=', payment_order.mode.id)]
return res
From 444b9b9d134e55378dd780e0093a5c2a27a95a09 Mon Sep 17 00:00:00 2001
From: "Pedro M. Baeza"
Date: Mon, 25 May 2015 17:14:05 +0200
Subject: [PATCH 09/58] [IMP] Expand authors + manifest cleaning
---
account_payment_partner/__openerp__.py | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/account_payment_partner/__openerp__.py b/account_payment_partner/__openerp__.py
index e50726d48..4f5d9b796 100644
--- a/account_payment_partner/__openerp__.py
+++ b/account_payment_partner/__openerp__.py
@@ -40,9 +40,10 @@ This module adds severals fields :
On a Payment Order, in the wizard *Select Invoices to Pay*, the invoices will
be filtered per Payment Mode.
""",
- 'author': "Akretion,Odoo Community Association (OCA)",
- 'website': 'http://www.akretion.com',
- 'contributors': ['Pedro M. Baeza '],
+ 'author': "Akretion, "
+ "Serv. Tecnol. Avanzados - Pedro M. Baeza, "
+ "Odoo Community Association (OCA)",
+ 'website': 'https://github.com/OCA/bank-payment',
'depends': ['account_banking_payment_export'],
'data': [
'views/res_partner_view.xml',
From 9443e23a4239423854a71b40ce5d74a346e48beb Mon Sep 17 00:00:00 2001
From: Philippe Schmidt
Date: Mon, 1 Jun 2015 17:10:58 +0200
Subject: [PATCH 10/58] Add requested descriptions in an OCA README.rst file
---
account_payment_partner/README.rst | 79 ++++++++++++++++++++++++++
account_payment_partner/__openerp__.py | 13 -----
2 files changed, 79 insertions(+), 13 deletions(-)
create mode 100644 account_payment_partner/README.rst
diff --git a/account_payment_partner/README.rst b/account_payment_partner/README.rst
new file mode 100644
index 000000000..e4e4d0a52
--- /dev/null
+++ b/account_payment_partner/README.rst
@@ -0,0 +1,79 @@
+.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
+ :alt: License: AGPL-3
+
+Account Payment Partner
+=======================
+
+This module adds severals fields :
+
+* the *Supplier Payment Mode* and *Customer Payment Mode* on Partners,
+
+* the *Payment Mode* on Invoices.
+
+On a Payment Order, in the wizard *Select Invoices to Pay*, the invoices will
+be filtered per Payment Mode.
+
+Installation
+============
+
+This module depends on :
+* account_banking_payment_export
+
+This module is part of the OCA/bank-payment suite.
+
+Configuration
+=============
+
+There is nothing to configure.
+
+Usage
+=====
+
+You are able to add a payment mode directly on a partner.
+This payment mode is automatically associated to the invoice related to the partner. This default value could be change in a draft invoice.
+When you create an payment order, only invoices related to chosen payment mode are displayed.
+Invoices without any payment mode are displayed to.
+
+For further information, please visit:
+
+ * https://www.odoo.com/forum/help-1
+
+Known issues / Roadmap
+======================
+
+ * No known issues.
+
+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
+`here `_.
+
+Credits
+=======
+
+Contributors
+------------
+
+* Pedro M. Baeza
+* Alexis de Lattre
+* Raphaël Valyi
+* Stefan Rijnhart (Therp)
+* Alexandre Fayolle
+* Stéphane Bidoul
+* Danimar Ribeiro
+
+Maintainer
+----------
+
+.. image:: http://odoo-community.org/logo.png
+ :alt: Odoo Community Association
+ :target: http://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 http://odoo-community.org.
diff --git a/account_payment_partner/__openerp__.py b/account_payment_partner/__openerp__.py
index 4f5d9b796..bb0fd91eb 100644
--- a/account_payment_partner/__openerp__.py
+++ b/account_payment_partner/__openerp__.py
@@ -27,19 +27,6 @@
'category': 'Banking addons',
'license': 'AGPL-3',
'summary': 'Adds payment mode on partners and invoices',
- 'description': """
-Account Payment Partner
-=======================
-
-This module adds severals fields :
-
-* the *Supplier Payment Mode* and *Customer Payment Mode* on Partners,
-
-* the *Payment Mode* on Invoices.
-
-On a Payment Order, in the wizard *Select Invoices to Pay*, the invoices will
-be filtered per Payment Mode.
- """,
'author': "Akretion, "
"Serv. Tecnol. Avanzados - Pedro M. Baeza, "
"Odoo Community Association (OCA)",
From 66b9049a4870bbf3262f240abc2640c819dc23bc Mon Sep 17 00:00:00 2001
From: AngelMoya-Domatix
Date: Thu, 2 Jul 2015 12:58:05 +0200
Subject: [PATCH 11/58] ADD description on payment mode and show it on invoice
report
FIX tabs
FIX translate
---
account_payment_partner/README.rst | 1 +
account_payment_partner/__openerp__.py | 1 +
.../i18n/account_payment_partner.pot | 14 ++++++++++++--
account_payment_partner/i18n/es.po | 14 ++++++++++++--
.../views/report_invoice.xml | 17 +++++++++++++++++
5 files changed, 43 insertions(+), 4 deletions(-)
create mode 100644 account_payment_partner/views/report_invoice.xml
diff --git a/account_payment_partner/README.rst b/account_payment_partner/README.rst
index e4e4d0a52..2837e36a1 100644
--- a/account_payment_partner/README.rst
+++ b/account_payment_partner/README.rst
@@ -64,6 +64,7 @@ Contributors
* Alexandre Fayolle
* Stéphane Bidoul
* Danimar Ribeiro
+* Angel Moya
Maintainer
----------
diff --git a/account_payment_partner/__openerp__.py b/account_payment_partner/__openerp__.py
index bb0fd91eb..ef8b028ce 100644
--- a/account_payment_partner/__openerp__.py
+++ b/account_payment_partner/__openerp__.py
@@ -35,6 +35,7 @@
'data': [
'views/res_partner_view.xml',
'views/account_invoice_view.xml',
+ 'views/report_invoice.xml',
'security/ir.model.access.csv',
],
'demo': ['demo/partner_demo.xml'],
diff --git a/account_payment_partner/i18n/account_payment_partner.pot b/account_payment_partner/i18n/account_payment_partner.pot
index 3c5a39686..82c70d780 100644
--- a/account_payment_partner/i18n/account_payment_partner.pot
+++ b/account_payment_partner/i18n/account_payment_partner.pot
@@ -6,8 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2014-10-31 22:53+0000\n"
-"PO-Revision-Date: 2014-10-31 22:53+0000\n"
+"POT-Creation-Date: 2015-07-02 10:53+0000\n"
+"PO-Revision-Date: 2015-07-02 10:53+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@@ -15,6 +15,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
+#. module: account_payment_partner
+#: view:website:account.report_invoice_document
+msgid "Bank Account:"
+msgstr ""
+
#. module: account_payment_partner
#: field:res.partner,customer_payment_mode:0
msgid "Customer Payment Mode"
@@ -35,6 +40,11 @@ msgstr ""
msgid "Payment Mode"
msgstr ""
+#. module: account_payment_partner
+#: view:website:account.report_invoice_document
+msgid "Payment Mode:"
+msgstr ""
+
#. module: account_payment_partner
#: help:res.partner,customer_payment_mode:0
msgid "Select the default payment mode for this customer."
diff --git a/account_payment_partner/i18n/es.po b/account_payment_partner/i18n/es.po
index 63748b988..8d9b6b91a 100644
--- a/account_payment_partner/i18n/es.po
+++ b/account_payment_partner/i18n/es.po
@@ -6,8 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2014-10-31 22:53+0000\n"
-"PO-Revision-Date: 2014-10-31 22:53+0000\n"
+"POT-Creation-Date: 2015-07-02 10:55+0000\n"
+"PO-Revision-Date: 2015-07-02 10:55+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@@ -15,6 +15,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
+#. module: account_payment_partner
+#: view:website:account.report_invoice_document
+msgid "Bank Account:"
+msgstr "Cuenta bancaria:"
+
#. module: account_payment_partner
#: field:res.partner,customer_payment_mode:0
msgid "Customer Payment Mode"
@@ -35,6 +40,11 @@ msgstr "Empresa"
msgid "Payment Mode"
msgstr "Modo de pago"
+#. module: account_payment_partner
+#: view:website:account.report_invoice_document
+msgid "Payment Mode:"
+msgstr "Modo de pago:"
+
#. module: account_payment_partner
#: help:res.partner,customer_payment_mode:0
msgid "Select the default payment mode for this customer."
diff --git a/account_payment_partner/views/report_invoice.xml b/account_payment_partner/views/report_invoice.xml
new file mode 100644
index 000000000..356ec1d4d
--- /dev/null
+++ b/account_payment_partner/views/report_invoice.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+ Payment Mode:
+
+
+
+ Bank Account:
+
+
+
+
+
+
From fe44b16e97749d846a5a9c2795a42d44b999bc71 Mon Sep 17 00:00:00 2001
From: Holger Brunn
Date: Wed, 8 Jul 2015 14:55:31 +0200
Subject: [PATCH 12/58] [RFR] decorate overridable methods in wizard as
api.multi
---
account_payment_partner/wizard/payment_order_create.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/account_payment_partner/wizard/payment_order_create.py b/account_payment_partner/wizard/payment_order_create.py
index a07ed280e..442047610 100644
--- a/account_payment_partner/wizard/payment_order_create.py
+++ b/account_payment_partner/wizard/payment_order_create.py
@@ -26,7 +26,7 @@ from openerp import models, api
class PaymentOrderCreate(models.TransientModel):
_inherit = 'payment.order.create'
- @api.model
+ @api.multi
def extend_payment_order_domain(self, payment_order, domain):
res = super(PaymentOrderCreate, self).extend_payment_order_domain(
payment_order, domain)
From d56cd97c2f175b8025fa5396c49ccecee8a8ba47 Mon Sep 17 00:00:00 2001
From: Alexis de Lattre
Date: Mon, 19 Oct 2015 17:50:53 +0200
Subject: [PATCH 13/58] [FIX+IMP] account_payment_partner: Several things:
* Forgot to remove a usecase of debit_denied
* Add ACL
* Better filters on payment.order.create wizard
* Add default values for those filters on payment.mode
* FIX remove coma at end of line
* Add translatable 'label' field on payment.mode, designed to be used in invoice report
---
account_payment_partner/__openerp__.py | 2 +
account_payment_partner/models/__init__.py | 23 +------
.../models/payment_mode.py | 35 +++++++++++
.../security/ir.model.access.csv | 1 +
.../views/payment_mode.xml | 23 +++++++
.../wizard/payment_order_create.py | 60 ++++++++++---------
.../wizard/payment_order_create_view.xml | 25 ++++++++
7 files changed, 119 insertions(+), 50 deletions(-)
create mode 100644 account_payment_partner/models/payment_mode.py
create mode 100644 account_payment_partner/views/payment_mode.xml
create mode 100644 account_payment_partner/wizard/payment_order_create_view.xml
diff --git a/account_payment_partner/__openerp__.py b/account_payment_partner/__openerp__.py
index ef8b028ce..2bbc92f96 100644
--- a/account_payment_partner/__openerp__.py
+++ b/account_payment_partner/__openerp__.py
@@ -36,7 +36,9 @@
'views/res_partner_view.xml',
'views/account_invoice_view.xml',
'views/report_invoice.xml',
+ 'views/payment_mode.xml',
'security/ir.model.access.csv',
+ 'wizard/payment_order_create_view.xml',
],
'demo': ['demo/partner_demo.xml'],
'installable': True,
diff --git a/account_payment_partner/models/__init__.py b/account_payment_partner/models/__init__.py
index c2c7b405d..be3f531bb 100644
--- a/account_payment_partner/models/__init__.py
+++ b/account_payment_partner/models/__init__.py
@@ -1,24 +1,5 @@
-# -*- encoding: utf-8 -*-
-##############################################################################
-#
-# Account Payment Partner module for OpenERP
-# Copyright (C) 2014 Akretion (http://www.akretion.com)
-# @author Alexis de Lattre
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as
-# published by the Free Software Foundation, either version 3 of the
-# License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see .
-#
-##############################################################################
+# -*- coding: utf-8 -*-
from . import res_partner
from . import account_invoice
+from . import payment_mode
diff --git a/account_payment_partner/models/payment_mode.py b/account_payment_partner/models/payment_mode.py
new file mode 100644
index 000000000..62b8767e6
--- /dev/null
+++ b/account_payment_partner/models/payment_mode.py
@@ -0,0 +1,35 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# Copyright (C) 2015 Akretion (http://www.akretion.com)
+# @author Alexis de Lattre
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+#
+##############################################################################
+
+from openerp import models, fields
+
+
+class PaymentMode(models.Model):
+ _inherit = "payment.mode"
+
+ label = fields.Char(
+ string='Label', translate=True,
+ help="This field is designed to be used in the invoice report")
+ default_payment_mode = fields.Selection([
+ ('same', 'Same'),
+ ('same_or_null', 'Same or empty'),
+ ('any', 'Any'),
+ ], string='Payment Mode on Invoice', default='same')
diff --git a/account_payment_partner/security/ir.model.access.csv b/account_payment_partner/security/ir.model.access.csv
index b277f0229..ac6d96dfd 100644
--- a/account_payment_partner/security/ir.model.access.csv
+++ b/account_payment_partner/security/ir.model.access.csv
@@ -1,2 +1,3 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_payment_mode_read,Read access on payment.mode to Employees,account_payment.model_payment_mode,base.group_user,1,0,0,0
+access_payment_mode_type_read,Read access on payment.mode.type to Employees,account_banking_payment_export.model_payment_mode_type,base.group_user,1,0,0,0
diff --git a/account_payment_partner/views/payment_mode.xml b/account_payment_partner/views/payment_mode.xml
new file mode 100644
index 000000000..b32d52b01
--- /dev/null
+++ b/account_payment_partner/views/payment_mode.xml
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+ account_payment_partner.payment.mode.form
+ payment.mode
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/account_payment_partner/wizard/payment_order_create.py b/account_payment_partner/wizard/payment_order_create.py
index 442047610..fbf4939fb 100644
--- a/account_payment_partner/wizard/payment_order_create.py
+++ b/account_payment_partner/wizard/payment_order_create.py
@@ -1,8 +1,8 @@
-# -*- encoding: utf-8 -*-
+# -*- coding: utf-8 -*-
##############################################################################
#
-# Account Payment Partner module for OpenERP
-# Copyright (C) 2014 Akretion (http://www.akretion.com)
+# Account Payment Partner module for Odoo
+# Copyright (C) 2014-2015 Akretion (http://www.akretion.com)
# @author Alexis de Lattre
#
# This program is free software: you can redistribute it and/or modify
@@ -20,39 +20,41 @@
#
##############################################################################
-from openerp import models, api
+from openerp import models, fields, api
class PaymentOrderCreate(models.TransientModel):
_inherit = 'payment.order.create'
+ payment_mode = fields.Selection([
+ ('same', 'Same'),
+ ('same_or_null', 'Same or empty'),
+ ('any', 'Any'),
+ ], string='Payment Mode on Invoice')
+
+ @api.model
+ def default_get(self, field_list):
+ res = super(PaymentOrderCreate, self).default_get(field_list)
+ context = self.env.context
+ assert context.get('active_model') == 'payment.order',\
+ 'active_model should be payment.order'
+ assert context.get('active_id'), 'Missing active_id in context !'
+ pay_order = self.env['payment.order'].browse(context['active_id'])
+ res['payment_mode'] = pay_order.mode.default_payment_mode
+ return res
+
@api.multi
def extend_payment_order_domain(self, payment_order, domain):
res = super(PaymentOrderCreate, self).extend_payment_order_domain(
payment_order, domain)
- # Monkey patch for fixing problem with the core search function
- # when args has ('invoice', '=', False), referred in the issue #4857
- # (https://github.com/odoo/odoo/issues/4857)
- #
- # Original domain:
- # domain += ['|', '|',
- # ('invoice', '=', False),
- # ('invoice.payment_mode_id', '=', False),
- # ('invoice.payment_mode_id', '=', payment_order.mode.id)]
- self.env.cr.execute(
- "SELECT l.id "
- "FROM account_move_line l "
- "LEFT OUTER JOIN account_invoice i "
- "ON l.move_id = i.move_id "
- "INNER JOIN account_account a "
- "ON a.id = l.account_id "
- "WHERE i.id IS NULL"
- " AND l.reconcile_id IS NULL"
- " AND a.type in ('receivable', 'payable')")
- ids = [x[0] for x in self.env.cr.fetchall()]
- domain += ['|',
- ('id', 'in', ids),
- '|',
- ('invoice.payment_mode_id', '=', False),
- ('invoice.payment_mode_id', '=', payment_order.mode.id)]
+ if self.invoice and self.payment_mode:
+ if self.payment_mode == 'same':
+ domain.append(
+ ('invoice.payment_mode_id', '=', payment_order.mode.id))
+ elif self.payment_mode == 'same_or_null':
+ domain += [
+ '|',
+ ('invoice.payment_mode_id', '=', False),
+ ('invoice.payment_mode_id', '=', payment_order.mode.id)]
+ # if payment_mode == 'any', don't modify domain
return res
diff --git a/account_payment_partner/wizard/payment_order_create_view.xml b/account_payment_partner/wizard/payment_order_create_view.xml
new file mode 100644
index 000000000..f163b8cd6
--- /dev/null
+++ b/account_payment_partner/wizard/payment_order_create_view.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+ account_payment_partner.payment.order.create.form
+ payment.order.create
+
+
+
+
+
+
+
+
+
+
+
From 2bed641fd9ad94aa11ce665ee7284efcb5ae0fbe Mon Sep 17 00:00:00 2001
From: "Pedro M. Baeza"
Date: Mon, 15 Feb 2016 23:10:18 +0100
Subject: [PATCH 14/58] [IMP] account_payment_partner: Several things
* Short headers
* Remove label field
There's already a field in the payment mode called 'note' that is
printed on the invoices, so there's no need of another field for
that purpose. This field is added by account_banking_payment_export
* Bump version numbers
* es translations
* Name to filter for better inheratiblity
---
account_payment_partner/__init__.py | 24 ++-------------
account_payment_partner/__openerp__.py | 28 ++++--------------
account_payment_partner/i18n/es.po | 29 +++++++++++++++++--
.../models/account_invoice.py | 25 +++-------------
.../models/payment_mode.py | 25 ++--------------
account_payment_partner/models/res_partner.py | 25 +++-------------
.../views/account_invoice_view.xml | 2 +-
.../views/payment_mode.xml | 3 --
8 files changed, 47 insertions(+), 114 deletions(-)
diff --git a/account_payment_partner/__init__.py b/account_payment_partner/__init__.py
index fe47437f2..794e1a243 100644
--- a/account_payment_partner/__init__.py
+++ b/account_payment_partner/__init__.py
@@ -1,24 +1,6 @@
-# -*- encoding: utf-8 -*-
-##############################################################################
-#
-# Account Payment Partner module for OpenERP
-# Copyright (C) 2014 Akretion (http://www.akretion.com)
-# @author Alexis de Lattre
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as
-# published by the Free Software Foundation, either version 3 of the
-# License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see .
-#
-##############################################################################
+# -*- coding: utf-8 -*-
+# © 2014 Akretion - Alexis de Lattre
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import models
from . import wizard
diff --git a/account_payment_partner/__openerp__.py b/account_payment_partner/__openerp__.py
index 2bbc92f96..0460a7c26 100644
--- a/account_payment_partner/__openerp__.py
+++ b/account_payment_partner/__openerp__.py
@@ -1,29 +1,11 @@
-# -*- encoding: utf-8 -*-
-##############################################################################
-#
-# Account Payment Partner module for OpenERP
-# Copyright (C) 2014 Akretion (http://www.akretion.com)
-# @author Alexis de Lattre
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as
-# published by the Free Software Foundation, either version 3 of the
-# License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see .
-#
-##############################################################################
-
+# -*- coding: utf-8 -*-
+# © 2014 Akretion - Alexis de Lattre
+# © 2014 Serv. Tecnol. Avanzados - Pedro M. Baeza
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
'name': 'Account Payment Partner',
- 'version': '8.0.0.1.0',
+ 'version': '8.0.0.2.0',
'category': 'Banking addons',
'license': 'AGPL-3',
'summary': 'Adds payment mode on partners and invoices',
diff --git a/account_payment_partner/i18n/es.po b/account_payment_partner/i18n/es.po
index 8d9b6b91a..c78c3e344 100644
--- a/account_payment_partner/i18n/es.po
+++ b/account_payment_partner/i18n/es.po
@@ -6,8 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2015-07-02 10:55+0000\n"
-"PO-Revision-Date: 2015-07-02 10:55+0000\n"
+"POT-Creation-Date: 2016-02-16 08:01+0000\n"
+"PO-Revision-Date: 2016-02-16 08:01+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@@ -15,6 +15,12 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
+#. module: account_payment_partner
+#: selection:payment.mode,default_payment_mode:0
+#: selection:payment.order.create,payment_mode:0
+msgid "Any"
+msgstr "Cualquiera"
+
#. module: account_payment_partner
#: view:website:account.report_invoice_document
msgid "Bank Account:"
@@ -37,14 +43,33 @@ msgstr "Empresa"
#. module: account_payment_partner
#: field:account.invoice,payment_mode_id:0
+#: model:ir.model,name:account_payment_partner.model_payment_mode
msgid "Payment Mode"
msgstr "Modo de pago"
+#. module: account_payment_partner
+#: field:payment.mode,default_payment_mode:0
+#: field:payment.order.create,payment_mode:0
+msgid "Payment Mode on Invoice"
+msgstr "Modo de pago en la factura"
+
#. module: account_payment_partner
#: view:website:account.report_invoice_document
msgid "Payment Mode:"
msgstr "Modo de pago:"
+#. module: account_payment_partner
+#: selection:payment.mode,default_payment_mode:0
+#: selection:payment.order.create,payment_mode:0
+msgid "Same"
+msgstr "Igual"
+
+#. module: account_payment_partner
+#: selection:payment.mode,default_payment_mode:0
+#: selection:payment.order.create,payment_mode:0
+msgid "Same or empty"
+msgstr "Igual o vacío"
+
#. module: account_payment_partner
#: help:res.partner,customer_payment_mode:0
msgid "Select the default payment mode for this customer."
diff --git a/account_payment_partner/models/account_invoice.py b/account_payment_partner/models/account_invoice.py
index e14c0d956..4c5b971c6 100644
--- a/account_payment_partner/models/account_invoice.py
+++ b/account_payment_partner/models/account_invoice.py
@@ -1,24 +1,7 @@
-# -*- encoding: utf-8 -*-
-##############################################################################
-#
-# Account Payment Partner module for OpenERP
-# Copyright (C) 2014 Akretion (http://www.akretion.com)
-# @author Alexis de Lattre
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as
-# published by the Free Software Foundation, either version 3 of the
-# License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see .
-#
-##############################################################################
+# -*- coding: utf-8 -*-
+# © 2014 Akretion - Alexis de Lattre
+# © 2014 Serv. Tecnol. Avanzados - Pedro M. Baeza
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp import models, fields, api
diff --git a/account_payment_partner/models/payment_mode.py b/account_payment_partner/models/payment_mode.py
index 62b8767e6..6d2fa946b 100644
--- a/account_payment_partner/models/payment_mode.py
+++ b/account_payment_partner/models/payment_mode.py
@@ -1,23 +1,7 @@
# -*- coding: utf-8 -*-
-##############################################################################
-#
-# Copyright (C) 2015 Akretion (http://www.akretion.com)
-# @author Alexis de Lattre
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as
-# published by the Free Software Foundation, either version 3 of the
-# License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see .
-#
-##############################################################################
+# © 2014 Akretion - Alexis de Lattre
+# © 2014 Serv. Tecnol. Avanzados - Pedro M. Baeza
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp import models, fields
@@ -25,9 +9,6 @@ from openerp import models, fields
class PaymentMode(models.Model):
_inherit = "payment.mode"
- label = fields.Char(
- string='Label', translate=True,
- help="This field is designed to be used in the invoice report")
default_payment_mode = fields.Selection([
('same', 'Same'),
('same_or_null', 'Same or empty'),
diff --git a/account_payment_partner/models/res_partner.py b/account_payment_partner/models/res_partner.py
index 5726da446..7b6c850aa 100644
--- a/account_payment_partner/models/res_partner.py
+++ b/account_payment_partner/models/res_partner.py
@@ -1,24 +1,7 @@
-# -*- encoding: utf-8 -*-
-##############################################################################
-#
-# Account Payment Partner module for OpenERP
-# Copyright (C) 2014 Akretion (http://www.akretion.com)
-# @author Alexis de Lattre
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as
-# published by the Free Software Foundation, either version 3 of the
-# License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see .
-#
-##############################################################################
+# -*- coding: utf-8 -*-
+# © 2014 Akretion - Alexis de Lattre
+# © 2014 Serv. Tecnol. Avanzados - Pedro M. Baeza
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp import models, fields, api
diff --git a/account_payment_partner/views/account_invoice_view.xml b/account_payment_partner/views/account_invoice_view.xml
index 72afbb2a5..895e03bf5 100644
--- a/account_payment_partner/views/account_invoice_view.xml
+++ b/account_payment_partner/views/account_invoice_view.xml
@@ -15,7 +15,7 @@
-
+
diff --git a/account_payment_partner/views/payment_mode.xml b/account_payment_partner/views/payment_mode.xml
index b32d52b01..120ca6970 100644
--- a/account_payment_partner/views/payment_mode.xml
+++ b/account_payment_partner/views/payment_mode.xml
@@ -12,9 +12,6 @@
-
-
-
From b000259c806dd3411e912424d8a5840ab65230f6 Mon Sep 17 00:00:00 2001
From: Alexis de Lattre
Date: Sat, 30 Apr 2016 01:46:34 +0200
Subject: [PATCH 15/58] [MIG] account_payment_partner: Start to port
bank-payment to v9 (with a lot of improvements) during the Sorrento Code
sprint 2016
Improvements include:
- full re-organisation of modules and big re-organisation of the code
- simplification of the code related to the fact that support for direct debit is now in t
he base module, not added by an optional module account_direct_debit (module was removed)
- new design of the wizard to select move lines to pay
- support for non-SEPA file transfer-
- support for German direct debit SEPA files (fixes bug #129)
- remove workflow of payment.order
* Finalise the wizard of selection of move lines to pay
* Add button "Add to payment/debit order" on invoice form view
* Started to integrate payment transfer in account_payment_order (not finished at all though)
* Copy payment mode and mandate from invoice to refund
* Run dos2unix on the few files that had DOS carriage return
* Add _id suffix on M2O fields customer_payment_mode and supplier_payment_mode (Odoo did the same on all the M2O property fields of res.partner)
* Better handling of partner_bank_id and mandate_id on invoice: invisible/required/onchange
* Move field bank_account_required from module account_payment_partner to account_payment_mode
---
account_payment_partner/README.rst | 22 ++---
account_payment_partner/__init__.py | 1 -
account_payment_partner/__openerp__.py | 8 +-
account_payment_partner/demo/partner_demo.xml | 42 ++-------
account_payment_partner/models/__init__.py | 2 +-
.../models/account_invoice.py | 87 ++++++++++++++-----
.../models/account_move_line.py | 12 +++
.../models/payment_mode.py | 16 ----
account_payment_partner/models/res_partner.py | 17 ++--
.../security/ir.model.access.csv | 3 -
.../views/account_invoice_view.xml | 58 ++++++++++---
.../views/account_move_line.xml | 28 ++++++
.../views/payment_mode.xml | 20 -----
.../views/report_invoice.xml | 2 +-
.../views/res_partner_view.xml | 17 ++--
account_payment_partner/wizard/__init__.py | 23 -----
.../wizard/payment_order_create.py | 60 -------------
.../wizard/payment_order_create_view.xml | 25 ------
18 files changed, 192 insertions(+), 251 deletions(-)
create mode 100644 account_payment_partner/models/account_move_line.py
delete mode 100644 account_payment_partner/models/payment_mode.py
delete mode 100644 account_payment_partner/security/ir.model.access.csv
create mode 100644 account_payment_partner/views/account_move_line.xml
delete mode 100644 account_payment_partner/views/payment_mode.xml
delete mode 100644 account_payment_partner/wizard/__init__.py
delete mode 100644 account_payment_partner/wizard/payment_order_create.py
delete mode 100644 account_payment_partner/wizard/payment_order_create_view.xml
diff --git a/account_payment_partner/README.rst b/account_payment_partner/README.rst
index 2837e36a1..704ca358a 100644
--- a/account_payment_partner/README.rst
+++ b/account_payment_partner/README.rst
@@ -1,6 +1,7 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:alt: License: AGPL-3
+=======================
Account Payment Partner
=======================
@@ -17,7 +18,8 @@ Installation
============
This module depends on :
-* account_banking_payment_export
+
+* account_payment_mode
This module is part of the OCA/bank-payment suite.
@@ -34,22 +36,22 @@ This payment mode is automatically associated to the invoice related to the part
When you create an payment order, only invoices related to chosen payment mode are displayed.
Invoices without any payment mode are displayed to.
-For further information, please visit:
-
- * https://www.odoo.com/forum/help-1
+.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
+ :alt: Try me on Runbot
+ :target: https://runbot.odoo-community.org/runbot/173/9.0
Known issues / Roadmap
======================
* No known issues.
-
+
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
-`here `_.
+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.
Credits
=======
@@ -58,7 +60,7 @@ Contributors
------------
* Pedro M. Baeza
-* Alexis de Lattre
+* Alexis de Lattre
* Raphaël Valyi
* Stefan Rijnhart (Therp)
* Alexandre Fayolle
diff --git a/account_payment_partner/__init__.py b/account_payment_partner/__init__.py
index 794e1a243..3845dd2da 100644
--- a/account_payment_partner/__init__.py
+++ b/account_payment_partner/__init__.py
@@ -3,4 +3,3 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import models
-from . import wizard
diff --git a/account_payment_partner/__openerp__.py b/account_payment_partner/__openerp__.py
index 0460a7c26..8c1068021 100644
--- a/account_payment_partner/__openerp__.py
+++ b/account_payment_partner/__openerp__.py
@@ -5,7 +5,7 @@
{
'name': 'Account Payment Partner',
- 'version': '8.0.0.2.0',
+ 'version': '9.0.1.0.0',
'category': 'Banking addons',
'license': 'AGPL-3',
'summary': 'Adds payment mode on partners and invoices',
@@ -13,14 +13,12 @@
"Serv. Tecnol. Avanzados - Pedro M. Baeza, "
"Odoo Community Association (OCA)",
'website': 'https://github.com/OCA/bank-payment',
- 'depends': ['account_banking_payment_export'],
+ 'depends': ['account_payment_mode'],
'data': [
'views/res_partner_view.xml',
'views/account_invoice_view.xml',
+ 'views/account_move_line.xml',
'views/report_invoice.xml',
- 'views/payment_mode.xml',
- 'security/ir.model.access.csv',
- 'wizard/payment_order_create_view.xml',
],
'demo': ['demo/partner_demo.xml'],
'installable': True,
diff --git a/account_payment_partner/demo/partner_demo.xml b/account_payment_partner/demo/partner_demo.xml
index 776058d44..20545d978 100644
--- a/account_payment_partner/demo/partner_demo.xml
+++ b/account_payment_partner/demo/partner_demo.xml
@@ -3,49 +3,23 @@
-
-
- supplier_payment_mode_12
+
+ Default Supplier Payment Mode
+ search="[('model','=','res.partner'),('name','=','supplier_payment_mode_id')]"/>
+ eval="'account.payment.mode,'+str(ref('account_payment_mode.payment_mode_outbound_ct1'))"/>
-
-
- customer_payment_mode_12
+
+ Default Customer Payment Mode
+ search="[('model','=','res.partner'),('name','=','customer_payment_mode_id')]"/>
+ eval="'account.payment.mode,'+str(ref('account_payment_mode.payment_mode_inbound_ct1'))"/>
-
-
-
- customer_payment_mode_2
-
-
-
-
-
-
-
-
- supplier_payment_mode_1
-
-
-
-
-
-
-
diff --git a/account_payment_partner/models/__init__.py b/account_payment_partner/models/__init__.py
index be3f531bb..152bb919c 100644
--- a/account_payment_partner/models/__init__.py
+++ b/account_payment_partner/models/__init__.py
@@ -2,4 +2,4 @@
from . import res_partner
from . import account_invoice
-from . import payment_mode
+from . import account_move_line
diff --git a/account_payment_partner/models/account_invoice.py b/account_payment_partner/models/account_invoice.py
index 4c5b971c6..14ac17a77 100644
--- a/account_payment_partner/models/account_invoice.py
+++ b/account_payment_partner/models/account_invoice.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# © 2014 Akretion - Alexis de Lattre
+# © 2014-2016 Akretion - Alexis de Lattre
# © 2014 Serv. Tecnol. Avanzados - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
@@ -10,27 +10,70 @@ class AccountInvoice(models.Model):
_inherit = 'account.invoice'
payment_mode_id = fields.Many2one(
- comodel_name='payment.mode', string="Payment Mode",
- domain="[('type', '=', type)]")
+ comodel_name='account.payment.mode', string="Payment Mode",
+ ondelete='restrict',
+ readonly=True, states={'draft': [('readonly', False)]})
+ bank_account_required = fields.Boolean(
+ related='payment_mode_id.payment_method_id.bank_account_required',
+ readonly=True)
- @api.multi
- def onchange_partner_id(
- self, type, partner_id, date_invoice=False,
- payment_term=False, partner_bank_id=False, company_id=False):
- res = super(AccountInvoice, self).onchange_partner_id(
- type, partner_id, date_invoice=date_invoice,
- payment_term=payment_term, partner_bank_id=partner_bank_id,
- company_id=company_id)
- if partner_id:
- partner = self.env['res.partner'].browse(partner_id)
- if type == 'in_invoice':
- res['value']['payment_mode_id'] = \
- partner.supplier_payment_mode.id
- elif type == 'out_invoice':
- res['value'].update({
- 'payment_mode_id': partner.customer_payment_mode.id,
- 'partner_bank_id': partner.customer_payment_mode.bank_id.id
- })
+ @api.onchange('partner_id', 'company_id')
+ def _onchange_partner_id(self):
+ super(AccountInvoice, self)._onchange_partner_id()
+ if self.partner_id:
+ if self.type == 'in_invoice':
+ pay_mode = self.partner_id.supplier_payment_mode_id
+ self.payment_mode_id = pay_mode
+ if (
+ pay_mode and
+ pay_mode.payment_type == 'outbound' and
+ pay_mode.payment_method_id.bank_account_required and
+ self.commercial_partner_id.bank_ids):
+ self.partner_bank_id =\
+ self.commercial_partner_id.bank_ids[0]
+ elif self.type == 'out_invoice':
+ pay_mode = self.partner_id.customer_payment_mode_id
+ self.payment_mode_id = pay_mode
+ if pay_mode and pay_mode.bank_account_link == 'fixed':
+ self.partner_bank_id = pay_mode.fixed_journal_id.\
+ bank_account_id
else:
- res['value']['payment_mode_id'] = False
+ self.payment_mode_id = False
+ if self.type == 'in_invoice':
+ self.partner_bank_id = False
+
+ @api.onchange('payment_mode_id')
+ def payment_mode_id_change(self):
+ if (
+ self.payment_mode_id and
+ self.payment_mode_id.payment_type == 'outbound' and
+ not self.payment_mode_id.payment_method_id.
+ bank_account_required):
+ self.partner_bank_id = False
+ elif not self.payment_mode_id:
+ self.partner_bank_id = False
+
+ @api.model
+ def line_get_convert(self, line, part):
+ """Copy payment mode from invoice to account move line"""
+ res = super(AccountInvoice, self).line_get_convert(line, part)
+ if line.get('type') == 'dest' and line.get('invoice_id'):
+ invoice = self.browse(line['invoice_id'])
+ res['payment_mode_id'] = invoice.payment_mode_id.id or False
return res
+
+ # I think copying payment mode from invoice to refund by default
+ # is a good idea because the most common way of "paying" a refund is to
+ # deduct it on the payment of the next invoice (and OCA/bank-payment
+ # allows to have negative payment lines since March 2016)
+ @api.model
+ def _prepare_refund(
+ self, invoice, date_invoice=None, date=None, description=None,
+ journal_id=None):
+ vals = super(AccountInvoice, self)._prepare_refund(
+ invoice, date_invoice=date_invoice, date=date,
+ description=description, journal_id=journal_id)
+ vals['payment_mode_id'] = invoice.payment_mode_id.id
+ if invoice.type == 'in_invoice':
+ vals['partner_bank_id'] = invoice.partner_bank_id.id
+ return vals
diff --git a/account_payment_partner/models/account_move_line.py b/account_payment_partner/models/account_move_line.py
new file mode 100644
index 000000000..080e73369
--- /dev/null
+++ b/account_payment_partner/models/account_move_line.py
@@ -0,0 +1,12 @@
+# -*- coding: utf-8 -*-
+# © 2016 Akretion (http://www.akretion.com/)
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
+
+from openerp import models, fields
+
+
+class AccountMoveLine(models.Model):
+ _inherit = 'account.move.line'
+
+ payment_mode_id = fields.Many2one(
+ 'account.payment.mode', string='Payment Mode', ondelete='restrict')
diff --git a/account_payment_partner/models/payment_mode.py b/account_payment_partner/models/payment_mode.py
deleted file mode 100644
index 6d2fa946b..000000000
--- a/account_payment_partner/models/payment_mode.py
+++ /dev/null
@@ -1,16 +0,0 @@
-# -*- coding: utf-8 -*-
-# © 2014 Akretion - Alexis de Lattre
-# © 2014 Serv. Tecnol. Avanzados - Pedro M. Baeza
-# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-
-from openerp import models, fields
-
-
-class PaymentMode(models.Model):
- _inherit = "payment.mode"
-
- default_payment_mode = fields.Selection([
- ('same', 'Same'),
- ('same_or_null', 'Same or empty'),
- ('any', 'Any'),
- ], string='Payment Mode on Invoice', default='same')
diff --git a/account_payment_partner/models/res_partner.py b/account_payment_partner/models/res_partner.py
index 7b6c850aa..b7a35e93c 100644
--- a/account_payment_partner/models/res_partner.py
+++ b/account_payment_partner/models/res_partner.py
@@ -9,17 +9,20 @@ from openerp import models, fields, api
class ResPartner(models.Model):
_inherit = 'res.partner'
- supplier_payment_mode = fields.Many2one(
- 'payment.mode', string='Supplier Payment Mode', company_dependent=True,
- domain="[('purchase_ok', '=', True)]",
+ # v8 fields : same without the _id suffix
+ supplier_payment_mode_id = fields.Many2one(
+ 'account.payment.mode', string='Supplier Payment Mode',
+ company_dependent=True,
+ domain=[('payment_type', '=', 'outbound')],
help="Select the default payment mode for this supplier.")
- customer_payment_mode = fields.Many2one(
- 'payment.mode', string='Customer Payment Mode', company_dependent=True,
- domain="[('sale_ok', '=', True)]",
+ customer_payment_mode_id = fields.Many2one(
+ 'account.payment.mode', string='Customer Payment Mode',
+ company_dependent=True,
+ domain=[('payment_type', '=', 'inbound')],
help="Select the default payment mode for this customer.")
@api.model
def _commercial_fields(self):
res = super(ResPartner, self)._commercial_fields()
- res += ['supplier_payment_mode', 'customer_payment_mode']
+ res += ['supplier_payment_mode_id', 'customer_payment_mode_id']
return res
diff --git a/account_payment_partner/security/ir.model.access.csv b/account_payment_partner/security/ir.model.access.csv
deleted file mode 100644
index ac6d96dfd..000000000
--- a/account_payment_partner/security/ir.model.access.csv
+++ /dev/null
@@ -1,3 +0,0 @@
-id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
-access_payment_mode_read,Read access on payment.mode to Employees,account_payment.model_payment_mode,base.group_user,1,0,0,0
-access_payment_mode_type_read,Read access on payment.mode.type to Employees,account_banking_payment_export.model_payment_mode_type,base.group_user,1,0,0,0
diff --git a/account_payment_partner/views/account_invoice_view.xml b/account_payment_partner/views/account_invoice_view.xml
index 895e03bf5..0e59c514d 100644
--- a/account_payment_partner/views/account_invoice_view.xml
+++ b/account_payment_partner/views/account_invoice_view.xml
@@ -1,21 +1,20 @@
-
-
+
-
- account_payment_partner.invoice_filter
+
+ account_payment_partner.account_invoice_search
account.invoice
-
-
+
+
@@ -28,8 +27,12 @@
+
+
+
+ 0
@@ -40,14 +43,43 @@
account.invoice
-
+
+
+
+
+
+ [('partner_id', '=', commercial_partner_id)]
+ 0
+ {'invisible': [('bank_account_required', '=', False)], 'required': [('bank_account_required', '=', True)]}
+
+
+
+
+
+ account_payment_partner.customer_invoice_tree
+ account.invoice
+
+
+
+
+
+
+
+
+
+ account_payment_partner.supplier_invoice_tree
+ account.invoice
+
+
+
+
-
+
diff --git a/account_payment_partner/views/account_move_line.xml b/account_payment_partner/views/account_move_line.xml
new file mode 100644
index 000000000..b0d0ca102
--- /dev/null
+++ b/account_payment_partner/views/account_move_line.xml
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
+
+
+ account_payment_partner.move_line_form
+ account.move.line
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/account_payment_partner/views/payment_mode.xml b/account_payment_partner/views/payment_mode.xml
deleted file mode 100644
index 120ca6970..000000000
--- a/account_payment_partner/views/payment_mode.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
-
-
-
- account_payment_partner.payment.mode.form
- payment.mode
-
-
-
-
-
-
-
-
-
-
-
diff --git a/account_payment_partner/views/report_invoice.xml b/account_payment_partner/views/report_invoice.xml
index 356ec1d4d..9368238f1 100644
--- a/account_payment_partner/views/report_invoice.xml
+++ b/account_payment_partner/views/report_invoice.xml
@@ -2,7 +2,7 @@
-
+
Payment Mode:
diff --git a/account_payment_partner/views/res_partner_view.xml b/account_payment_partner/views/res_partner_view.xml
index f52579b2c..3d06ee856 100644
--- a/account_payment_partner/views/res_partner_view.xml
+++ b/account_payment_partner/views/res_partner_view.xml
@@ -1,7 +1,6 @@
-
@@ -9,23 +8,21 @@
+
account_partner_payment.partner_form
res.partner
-
-
+
+
-
-
+
+
+
diff --git a/account_payment_partner/wizard/__init__.py b/account_payment_partner/wizard/__init__.py
deleted file mode 100644
index f7107a63f..000000000
--- a/account_payment_partner/wizard/__init__.py
+++ /dev/null
@@ -1,23 +0,0 @@
-# -*- encoding: utf-8 -*-
-##############################################################################
-#
-# Account Payment Partner module for OpenERP
-# Copyright (C) 2014 Akretion (http://www.akretion.com)
-# @author Alexis de Lattre
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as
-# published by the Free Software Foundation, either version 3 of the
-# License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see .
-#
-##############################################################################
-
-from . import payment_order_create
diff --git a/account_payment_partner/wizard/payment_order_create.py b/account_payment_partner/wizard/payment_order_create.py
deleted file mode 100644
index fbf4939fb..000000000
--- a/account_payment_partner/wizard/payment_order_create.py
+++ /dev/null
@@ -1,60 +0,0 @@
-# -*- coding: utf-8 -*-
-##############################################################################
-#
-# Account Payment Partner module for Odoo
-# Copyright (C) 2014-2015 Akretion (http://www.akretion.com)
-# @author Alexis de Lattre
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as
-# published by the Free Software Foundation, either version 3 of the
-# License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see .
-#
-##############################################################################
-
-from openerp import models, fields, api
-
-
-class PaymentOrderCreate(models.TransientModel):
- _inherit = 'payment.order.create'
-
- payment_mode = fields.Selection([
- ('same', 'Same'),
- ('same_or_null', 'Same or empty'),
- ('any', 'Any'),
- ], string='Payment Mode on Invoice')
-
- @api.model
- def default_get(self, field_list):
- res = super(PaymentOrderCreate, self).default_get(field_list)
- context = self.env.context
- assert context.get('active_model') == 'payment.order',\
- 'active_model should be payment.order'
- assert context.get('active_id'), 'Missing active_id in context !'
- pay_order = self.env['payment.order'].browse(context['active_id'])
- res['payment_mode'] = pay_order.mode.default_payment_mode
- return res
-
- @api.multi
- def extend_payment_order_domain(self, payment_order, domain):
- res = super(PaymentOrderCreate, self).extend_payment_order_domain(
- payment_order, domain)
- if self.invoice and self.payment_mode:
- if self.payment_mode == 'same':
- domain.append(
- ('invoice.payment_mode_id', '=', payment_order.mode.id))
- elif self.payment_mode == 'same_or_null':
- domain += [
- '|',
- ('invoice.payment_mode_id', '=', False),
- ('invoice.payment_mode_id', '=', payment_order.mode.id)]
- # if payment_mode == 'any', don't modify domain
- return res
diff --git a/account_payment_partner/wizard/payment_order_create_view.xml b/account_payment_partner/wizard/payment_order_create_view.xml
deleted file mode 100644
index f163b8cd6..000000000
--- a/account_payment_partner/wizard/payment_order_create_view.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
- account_payment_partner.payment.order.create.form
- payment.order.create
-
-
-
-
-
-
-
-
-
-
-
From 07f7e9809a29312f1fb773279d515820b2ca8e09 Mon Sep 17 00:00:00 2001
From: OCA Transbot
Date: Sat, 9 Apr 2016 02:15:34 -0400
Subject: [PATCH 16/58] OCA Transbot updated translations from Transifex
---
.../i18n/account_payment_partner.pot | 62 ------------
account_payment_partner/i18n/es.po | 95 ++++++++++---------
account_payment_partner/i18n/fr.po | 71 ++++++++++----
account_payment_partner/i18n/nb_NO.po | 88 +++++++++++++++++
account_payment_partner/i18n/nl.po | 81 +++++++++++-----
account_payment_partner/i18n/pt_BR.po | 64 ++++++++++---
account_payment_partner/i18n/sl.po | 88 +++++++++++++++++
7 files changed, 384 insertions(+), 165 deletions(-)
delete mode 100644 account_payment_partner/i18n/account_payment_partner.pot
create mode 100644 account_payment_partner/i18n/nb_NO.po
create mode 100644 account_payment_partner/i18n/sl.po
diff --git a/account_payment_partner/i18n/account_payment_partner.pot b/account_payment_partner/i18n/account_payment_partner.pot
deleted file mode 100644
index 82c70d780..000000000
--- a/account_payment_partner/i18n/account_payment_partner.pot
+++ /dev/null
@@ -1,62 +0,0 @@
-# Translation of Odoo Server.
-# This file contains the translation of the following modules:
-# * account_payment_partner
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: Odoo Server 8.0\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2015-07-02 10:53+0000\n"
-"PO-Revision-Date: 2015-07-02 10:53+0000\n"
-"Last-Translator: <>\n"
-"Language-Team: \n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: \n"
-"Plural-Forms: \n"
-
-#. module: account_payment_partner
-#: view:website:account.report_invoice_document
-msgid "Bank Account:"
-msgstr ""
-
-#. module: account_payment_partner
-#: field:res.partner,customer_payment_mode:0
-msgid "Customer Payment Mode"
-msgstr ""
-
-#. module: account_payment_partner
-#: model:ir.model,name:account_payment_partner.model_account_invoice
-msgid "Invoice"
-msgstr ""
-
-#. module: account_payment_partner
-#: model:ir.model,name:account_payment_partner.model_res_partner
-msgid "Partner"
-msgstr ""
-
-#. module: account_payment_partner
-#: field:account.invoice,payment_mode_id:0
-msgid "Payment Mode"
-msgstr ""
-
-#. module: account_payment_partner
-#: view:website:account.report_invoice_document
-msgid "Payment Mode:"
-msgstr ""
-
-#. module: account_payment_partner
-#: help:res.partner,customer_payment_mode:0
-msgid "Select the default payment mode for this customer."
-msgstr ""
-
-#. module: account_payment_partner
-#: help:res.partner,supplier_payment_mode:0
-msgid "Select the default payment mode for this supplier."
-msgstr ""
-
-#. module: account_payment_partner
-#: field:res.partner,supplier_payment_mode:0
-msgid "Supplier Payment Mode"
-msgstr ""
-
diff --git a/account_payment_partner/i18n/es.po b/account_payment_partner/i18n/es.po
index c78c3e344..ec1fe26fa 100644
--- a/account_payment_partner/i18n/es.po
+++ b/account_payment_partner/i18n/es.po
@@ -1,33 +1,47 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
-# * account_payment_partner
-#
+# * account_payment_partner
+#
+# Translators:
+# OCA Transbot , 2016
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 8.0\n"
+"Project-Id-Version: Odoo Server 9.0c\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2016-02-16 08:01+0000\n"
-"PO-Revision-Date: 2016-02-16 08:01+0000\n"
-"Last-Translator: <>\n"
-"Language-Team: \n"
+"POT-Creation-Date: 2016-07-01 19:28+0000\n"
+"PO-Revision-Date: 2016-07-01 19:28+0000\n"
+"Last-Translator: OCA Transbot , 2016\n"
+"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
-"Plural-Forms: \n"
+"Language: es\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: account_payment_partner
-#: selection:payment.mode,default_payment_mode:0
-#: selection:payment.order.create,payment_mode:0
-msgid "Any"
-msgstr "Cualquiera"
+#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
+msgid "Bank Account:"
+msgstr ""
#. module: account_payment_partner
-#: view:website:account.report_invoice_document
-msgid "Bank Account:"
-msgstr "Cuenta bancaria:"
+#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
+msgid "Payment Mode:"
+msgstr ""
#. module: account_payment_partner
-#: field:res.partner,customer_payment_mode:0
+#: model:ir.model.fields,help:account_payment_partner.field_account_invoice_bank_account_required
+msgid ""
+"Activate this option if this payment method requires you to know the bank "
+"account number of your customer or supplier."
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_bank_account_required
+msgid "Bank Account Required"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_customer_payment_mode_id
msgid "Customer Payment Mode"
msgstr "Modo de pago de cliente"
@@ -36,52 +50,43 @@ msgstr "Modo de pago de cliente"
msgid "Invoice"
msgstr "Factura"
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_account_move_line
+msgid "Journal Item"
+msgstr ""
+
#. module: account_payment_partner
#: model:ir.model,name:account_payment_partner.model_res_partner
msgid "Partner"
msgstr "Empresa"
#. module: account_payment_partner
-#: field:account.invoice,payment_mode_id:0
-#: model:ir.model,name:account_payment_partner.model_payment_mode
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_move_line_payment_mode_id
+#: model:ir.ui.view,arch_db:account_payment_partner.view_account_invoice_filter
msgid "Payment Mode"
msgstr "Modo de pago"
#. module: account_payment_partner
-#: field:payment.mode,default_payment_mode:0
-#: field:payment.order.create,payment_mode:0
-msgid "Payment Mode on Invoice"
-msgstr "Modo de pago en la factura"
+#: model:ir.ui.view,arch_db:account_payment_partner.view_move_line_form
+msgid "Payments"
+msgstr ""
#. module: account_payment_partner
-#: view:website:account.report_invoice_document
-msgid "Payment Mode:"
-msgstr "Modo de pago:"
-
-#. module: account_payment_partner
-#: selection:payment.mode,default_payment_mode:0
-#: selection:payment.order.create,payment_mode:0
-msgid "Same"
-msgstr "Igual"
-
-#. module: account_payment_partner
-#: selection:payment.mode,default_payment_mode:0
-#: selection:payment.order.create,payment_mode:0
-msgid "Same or empty"
-msgstr "Igual o vacío"
-
-#. module: account_payment_partner
-#: help:res.partner,customer_payment_mode:0
+#: model:ir.model.fields,help:account_payment_partner.field_res_partner_customer_payment_mode_id
msgid "Select the default payment mode for this customer."
-msgstr "Seleccione el modo de pago por defecto cuando esta empresa actúa como cliente."
+msgstr ""
+"Seleccione el modo de pago por defecto cuando esta empresa actúa como "
+"cliente."
#. module: account_payment_partner
-#: help:res.partner,supplier_payment_mode:0
+#: model:ir.model.fields,help:account_payment_partner.field_res_partner_supplier_payment_mode_id
msgid "Select the default payment mode for this supplier."
-msgstr "Seleccione el modo de pago por defecto cuando esta empresa actúa como proveedor."
+msgstr ""
+"Seleccione el modo de pago por defecto cuando esta empresa actúa como "
+"proveedor."
#. module: account_payment_partner
-#: field:res.partner,supplier_payment_mode:0
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_supplier_payment_mode_id
msgid "Supplier Payment Mode"
msgstr "Modo de pago de proveedor"
-
diff --git a/account_payment_partner/i18n/fr.po b/account_payment_partner/i18n/fr.po
index ca26e532d..ffc958868 100644
--- a/account_payment_partner/i18n/fr.po
+++ b/account_payment_partner/i18n/fr.po
@@ -1,22 +1,47 @@
-# Translation of OpenERP Server.
+# Translation of Odoo Server.
# This file contains the translation of the following modules:
-# * account_payment_partner
-#
+# * account_payment_partner
+#
+# Translators:
+# OCA Transbot , 2016
msgid ""
msgstr ""
-"Project-Id-Version: OpenERP Server 7.0\n"
+"Project-Id-Version: Odoo Server 9.0c\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2014-06-09 23:22+0000\n"
-"PO-Revision-Date: 2014-06-09 23:22+0000\n"
-"Last-Translator: <>\n"
-"Language-Team: \n"
+"POT-Creation-Date: 2016-07-01 19:28+0000\n"
+"PO-Revision-Date: 2016-07-01 19:28+0000\n"
+"Last-Translator: OCA Transbot , 2016\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"
-"Plural-Forms: \n"
+"Language: fr\n"
+"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: account_payment_partner
-#: field:res.partner,customer_payment_mode:0
+#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
+msgid "Bank Account:"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
+msgid "Payment Mode:"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,help:account_payment_partner.field_account_invoice_bank_account_required
+msgid ""
+"Activate this option if this payment method requires you to know the bank "
+"account number of your customer or supplier."
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_bank_account_required
+msgid "Bank Account Required"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_customer_payment_mode_id
msgid "Customer Payment Mode"
msgstr ""
@@ -25,33 +50,39 @@ msgstr ""
msgid "Invoice"
msgstr ""
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_account_move_line
+msgid "Journal Item"
+msgstr ""
+
#. module: account_payment_partner
#: model:ir.model,name:account_payment_partner.model_res_partner
msgid "Partner"
msgstr ""
#. module: account_payment_partner
-#: field:account.invoice,payment_mode_id:0
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_move_line_payment_mode_id
+#: model:ir.ui.view,arch_db:account_payment_partner.view_account_invoice_filter
msgid "Payment Mode"
+msgstr "Mode de paiement"
+
+#. module: account_payment_partner
+#: model:ir.ui.view,arch_db:account_payment_partner.view_move_line_form
+msgid "Payments"
msgstr ""
#. module: account_payment_partner
-#: help:res.partner,customer_payment_mode:0
+#: model:ir.model.fields,help:account_payment_partner.field_res_partner_customer_payment_mode_id
msgid "Select the default payment mode for this customer."
msgstr ""
#. module: account_payment_partner
-#: help:res.partner,supplier_payment_mode:0
+#: model:ir.model.fields,help:account_payment_partner.field_res_partner_supplier_payment_mode_id
msgid "Select the default payment mode for this supplier."
msgstr ""
#. module: account_payment_partner
-#: field:res.partner,supplier_payment_mode:0
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_supplier_payment_mode_id
msgid "Supplier Payment Mode"
msgstr ""
-
-#. module: account_payment_partner
-#: model:ir.model,name:account_payment_partner.model_payment_order_create
-msgid "payment.order.create"
-msgstr ""
-
diff --git a/account_payment_partner/i18n/nb_NO.po b/account_payment_partner/i18n/nb_NO.po
new file mode 100644
index 000000000..a140ee50a
--- /dev/null
+++ b/account_payment_partner/i18n/nb_NO.po
@@ -0,0 +1,88 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * account_payment_partner
+#
+# Translators:
+# Imre Kristoffer Eilertsen , 2016
+msgid ""
+msgstr ""
+"Project-Id-Version: Odoo Server 9.0c\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2016-07-30 07:37+0000\n"
+"PO-Revision-Date: 2016-07-30 07:37+0000\n"
+"Last-Translator: Imre Kristoffer Eilertsen , 2016\n"
+"Language-Team: Norwegian Bokmål (Norway) (https://www.transifex.com/oca/teams/23907/nb_NO/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: nb_NO\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. module: account_payment_partner
+#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
+msgid "Bank Account:"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
+msgid "Payment Mode:"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,help:account_payment_partner.field_account_invoice_bank_account_required
+msgid ""
+"Activate this option if this payment method requires you to know the bank "
+"account number of your customer or supplier."
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_bank_account_required
+msgid "Bank Account Required"
+msgstr "Bankkonto påkrevd"
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_customer_payment_mode_id
+msgid "Customer Payment Mode"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_account_invoice
+msgid "Invoice"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_account_move_line
+msgid "Journal Item"
+msgstr "Journalgjenstand"
+
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_res_partner
+msgid "Partner"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_move_line_payment_mode_id
+#: model:ir.ui.view,arch_db:account_payment_partner.view_account_invoice_filter
+msgid "Payment Mode"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.ui.view,arch_db:account_payment_partner.view_move_line_form
+msgid "Payments"
+msgstr "Betalinger"
+
+#. module: account_payment_partner
+#: model:ir.model.fields,help:account_payment_partner.field_res_partner_customer_payment_mode_id
+msgid "Select the default payment mode for this customer."
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,help:account_payment_partner.field_res_partner_supplier_payment_mode_id
+msgid "Select the default payment mode for this supplier."
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_supplier_payment_mode_id
+msgid "Supplier Payment Mode"
+msgstr ""
diff --git a/account_payment_partner/i18n/nl.po b/account_payment_partner/i18n/nl.po
index 4c90fe776..e0fcdf734 100644
--- a/account_payment_partner/i18n/nl.po
+++ b/account_payment_partner/i18n/nl.po
@@ -1,24 +1,50 @@
-# Dutch translation for banking-addons
-# Copyright (c) 2014 Rosetta Contributors and Canonical Ltd 2014
-# This file is distributed under the same license as the banking-addons package.
-# FIRST AUTHOR , 2014.
-#
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * account_payment_partner
+#
+# Translators:
+# OCA Transbot , 2016
+# Erwin van der Ploeg , 2016
msgid ""
msgstr ""
-"Project-Id-Version: banking-addons\n"
-"Report-Msgid-Bugs-To: FULL NAME \n"
-"POT-Creation-Date: 2014-06-09 23:22+0000\n"
-"PO-Revision-Date: 2014-06-26 14:13+0000\n"
-"Last-Translator: Erwin van der Ploeg (BAS Solutions) \n"
-"Language-Team: Dutch \n"
+"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"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2014-06-27 07:13+0000\n"
-"X-Generator: Launchpad (build 17077)\n"
+"Content-Transfer-Encoding: \n"
+"Language: nl\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: account_payment_partner
-#: field:res.partner,customer_payment_mode:0
+#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
+msgid "Bank Account:"
+msgstr "Bankrekening:"
+
+#. module: account_payment_partner
+#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
+msgid "Payment Mode:"
+msgstr "Betaalmode:"
+
+#. module: account_payment_partner
+#: model:ir.model.fields,help:account_payment_partner.field_account_invoice_bank_account_required
+msgid ""
+"Activate this option if this payment method requires you to know the bank "
+"account number of your customer or supplier."
+msgstr ""
+"Activeer deze optie als de betaalwijze verwacht dat u het bankrekeningnummer"
+" van uw klant of leverancier kent."
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_bank_account_required
+msgid "Bank Account Required"
+msgstr "Bankrekening verplicht"
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_customer_payment_mode_id
msgid "Customer Payment Mode"
msgstr "Betaalwijze klant"
@@ -27,32 +53,39 @@ msgstr "Betaalwijze klant"
msgid "Invoice"
msgstr "Factuur"
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_account_move_line
+msgid "Journal Item"
+msgstr "Boekingsregel"
+
#. module: account_payment_partner
#: model:ir.model,name:account_payment_partner.model_res_partner
msgid "Partner"
msgstr "Relatie"
#. module: account_payment_partner
-#: field:account.invoice,payment_mode_id:0
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_move_line_payment_mode_id
+#: model:ir.ui.view,arch_db:account_payment_partner.view_account_invoice_filter
msgid "Payment Mode"
msgstr "Betaalwijze"
#. module: account_payment_partner
-#: help:res.partner,customer_payment_mode:0
+#: model:ir.ui.view,arch_db:account_payment_partner.view_move_line_form
+msgid "Payments"
+msgstr "Betalingen"
+
+#. module: account_payment_partner
+#: model:ir.model.fields,help:account_payment_partner.field_res_partner_customer_payment_mode_id
msgid "Select the default payment mode for this customer."
msgstr "Selecteer de standaard betaalwijze voor deze klant."
#. module: account_payment_partner
-#: help:res.partner,supplier_payment_mode:0
+#: model:ir.model.fields,help:account_payment_partner.field_res_partner_supplier_payment_mode_id
msgid "Select the default payment mode for this supplier."
msgstr "Selecteer de standaard betaalwijze voor deze leverancier."
#. module: account_payment_partner
-#: field:res.partner,supplier_payment_mode:0
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_supplier_payment_mode_id
msgid "Supplier Payment Mode"
msgstr "Betaalwijze leverancier"
-
-#. module: account_payment_partner
-#: model:ir.model,name:account_payment_partner.model_payment_order_create
-msgid "payment.order.create"
-msgstr "payment.order.create"
diff --git a/account_payment_partner/i18n/pt_BR.po b/account_payment_partner/i18n/pt_BR.po
index 63cd2737f..26c15015d 100644
--- a/account_payment_partner/i18n/pt_BR.po
+++ b/account_payment_partner/i18n/pt_BR.po
@@ -1,22 +1,47 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
-# * account_payment_partner
-#
+# * account_payment_partner
+#
+# Translators:
+# OCA Transbot , 2016
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 8.0\n"
+"Project-Id-Version: Odoo Server 9.0c\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2014-10-31 22:53+0000\n"
-"PO-Revision-Date: 2014-10-31 22:53+0000\n"
-"Last-Translator: Danimar Ribeiro \n"
-"Language-Team: \n"
+"POT-Creation-Date: 2016-07-01 19:28+0000\n"
+"PO-Revision-Date: 2016-07-01 19:28+0000\n"
+"Last-Translator: OCA Transbot , 2016\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"
-"Plural-Forms: \n"
+"Language: pt_BR\n"
+"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: account_payment_partner
-#: field:res.partner,customer_payment_mode:0
+#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
+msgid "Bank Account:"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
+msgid "Payment Mode:"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,help:account_payment_partner.field_account_invoice_bank_account_required
+msgid ""
+"Activate this option if this payment method requires you to know the bank "
+"account number of your customer or supplier."
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_bank_account_required
+msgid "Bank Account Required"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_customer_payment_mode_id
msgid "Customer Payment Mode"
msgstr "Modo de Pagamento do Cliente"
@@ -25,28 +50,39 @@ msgstr "Modo de Pagamento do Cliente"
msgid "Invoice"
msgstr "Fatura"
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_account_move_line
+msgid "Journal Item"
+msgstr ""
+
#. module: account_payment_partner
#: model:ir.model,name:account_payment_partner.model_res_partner
msgid "Partner"
msgstr "Parceiro"
#. module: account_payment_partner
-#: field:account.invoice,payment_mode_id:0
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_move_line_payment_mode_id
+#: model:ir.ui.view,arch_db:account_payment_partner.view_account_invoice_filter
msgid "Payment Mode"
msgstr "Modo de Pagamento"
#. module: account_payment_partner
-#: help:res.partner,customer_payment_mode:0
+#: model:ir.ui.view,arch_db:account_payment_partner.view_move_line_form
+msgid "Payments"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,help:account_payment_partner.field_res_partner_customer_payment_mode_id
msgid "Select the default payment mode for this customer."
msgstr "Selecione o modo de pagamento padrão para este cliente."
#. module: account_payment_partner
-#: help:res.partner,supplier_payment_mode:0
+#: model:ir.model.fields,help:account_payment_partner.field_res_partner_supplier_payment_mode_id
msgid "Select the default payment mode for this supplier."
msgstr "Selecione o modo de pagamento padrão para este fornecedor."
#. module: account_payment_partner
-#: field:res.partner,supplier_payment_mode:0
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_supplier_payment_mode_id
msgid "Supplier Payment Mode"
msgstr "Modo de Pagamento do Fornecedor"
-
diff --git a/account_payment_partner/i18n/sl.po b/account_payment_partner/i18n/sl.po
new file mode 100644
index 000000000..6af55976f
--- /dev/null
+++ b/account_payment_partner/i18n/sl.po
@@ -0,0 +1,88 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * account_payment_partner
+#
+# 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: 2016-07-01 19:28+0000\n"
+"Last-Translator: OCA Transbot , 2016\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: account_payment_partner
+#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
+msgid "Bank Account:"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
+msgid "Payment Mode:"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,help:account_payment_partner.field_account_invoice_bank_account_required
+msgid ""
+"Activate this option if this payment method requires you to know the bank "
+"account number of your customer or supplier."
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_bank_account_required
+msgid "Bank Account Required"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_customer_payment_mode_id
+msgid "Customer Payment Mode"
+msgstr "Metoda plačila kupca"
+
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_account_invoice
+msgid "Invoice"
+msgstr "Račun"
+
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_account_move_line
+msgid "Journal Item"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_res_partner
+msgid "Partner"
+msgstr "Partner"
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_move_line_payment_mode_id
+#: model:ir.ui.view,arch_db:account_payment_partner.view_account_invoice_filter
+msgid "Payment Mode"
+msgstr "Metoda plačila"
+
+#. module: account_payment_partner
+#: model:ir.ui.view,arch_db:account_payment_partner.view_move_line_form
+msgid "Payments"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,help:account_payment_partner.field_res_partner_customer_payment_mode_id
+msgid "Select the default payment mode for this customer."
+msgstr "Izbira privzete metode plačila za tega kupca."
+
+#. module: account_payment_partner
+#: model:ir.model.fields,help:account_payment_partner.field_res_partner_supplier_payment_mode_id
+msgid "Select the default payment mode for this supplier."
+msgstr "Izbira privzete metode plačila za tega dobavitelja."
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_supplier_payment_mode_id
+msgid "Supplier Payment Mode"
+msgstr "Metoda plačila dobavitelja"
From 2033a69b8d15078e0a21a5412e8dd8578dc755ad Mon Sep 17 00:00:00 2001
From: Alexis de Lattre
Date: Thu, 20 Oct 2016 01:41:41 +0200
Subject: [PATCH 17/58] Port almost all modules to v10 (#305)
Port almost all modules to v10
* Update to EPC Rulebook v9.2 that start to apply on 2016-11-20 (bug #300)
---
account_payment_partner/README.rst | 2 +-
.../{__openerp__.py => __manifest__.py} | 4 +--
account_payment_partner/demo/partner_demo.xml | 7 ++--
.../models/account_invoice.py | 2 +-
.../models/account_move_line.py | 2 +-
account_payment_partner/models/res_partner.py | 2 +-
.../views/account_invoice_view.xml | 6 ++--
.../views/account_move_line.xml | 12 +++----
.../views/report_invoice.xml | 32 +++++++++----------
.../views/res_partner_view.xml | 12 +++----
10 files changed, 37 insertions(+), 44 deletions(-)
rename account_payment_partner/{__openerp__.py => __manifest__.py} (90%)
diff --git a/account_payment_partner/README.rst b/account_payment_partner/README.rst
index 704ca358a..4e9e8e684 100644
--- a/account_payment_partner/README.rst
+++ b/account_payment_partner/README.rst
@@ -38,7 +38,7 @@ Invoices without any payment mode are displayed to.
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
- :target: https://runbot.odoo-community.org/runbot/173/9.0
+ :target: https://runbot.odoo-community.org/runbot/173/10.0
Known issues / Roadmap
======================
diff --git a/account_payment_partner/__openerp__.py b/account_payment_partner/__manifest__.py
similarity index 90%
rename from account_payment_partner/__openerp__.py
rename to account_payment_partner/__manifest__.py
index 8c1068021..59484804b 100644
--- a/account_payment_partner/__openerp__.py
+++ b/account_payment_partner/__manifest__.py
@@ -5,12 +5,12 @@
{
'name': 'Account Payment Partner',
- 'version': '9.0.1.0.0',
+ 'version': '10.0.1.0.0',
'category': 'Banking addons',
'license': 'AGPL-3',
'summary': 'Adds payment mode on partners and invoices',
'author': "Akretion, "
- "Serv. Tecnol. Avanzados - Pedro M. Baeza, "
+ "Tecnativa, "
"Odoo Community Association (OCA)",
'website': 'https://github.com/OCA/bank-payment',
'depends': ['account_payment_mode'],
diff --git a/account_payment_partner/demo/partner_demo.xml b/account_payment_partner/demo/partner_demo.xml
index 20545d978..bf5b8b751 100644
--- a/account_payment_partner/demo/partner_demo.xml
+++ b/account_payment_partner/demo/partner_demo.xml
@@ -1,7 +1,6 @@
+
-
-
Default Supplier Payment Mode
@@ -21,5 +20,5 @@
-
-
+
+
diff --git a/account_payment_partner/models/account_invoice.py b/account_payment_partner/models/account_invoice.py
index 14ac17a77..6f33546e3 100644
--- a/account_payment_partner/models/account_invoice.py
+++ b/account_payment_partner/models/account_invoice.py
@@ -3,7 +3,7 @@
# © 2014 Serv. Tecnol. Avanzados - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-from openerp import models, fields, api
+from odoo import models, fields, api
class AccountInvoice(models.Model):
diff --git a/account_payment_partner/models/account_move_line.py b/account_payment_partner/models/account_move_line.py
index 080e73369..e5fa4d492 100644
--- a/account_payment_partner/models/account_move_line.py
+++ b/account_payment_partner/models/account_move_line.py
@@ -2,7 +2,7 @@
# © 2016 Akretion (http://www.akretion.com/)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-from openerp import models, fields
+from odoo import models, fields
class AccountMoveLine(models.Model):
diff --git a/account_payment_partner/models/res_partner.py b/account_payment_partner/models/res_partner.py
index b7a35e93c..9b8357141 100644
--- a/account_payment_partner/models/res_partner.py
+++ b/account_payment_partner/models/res_partner.py
@@ -3,7 +3,7 @@
# © 2014 Serv. Tecnol. Avanzados - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-from openerp import models, fields, api
+from odoo import models, fields, api
class ResPartner(models.Model):
diff --git a/account_payment_partner/views/account_invoice_view.xml b/account_payment_partner/views/account_invoice_view.xml
index 0e59c514d..b2553be57 100644
--- a/account_payment_partner/views/account_invoice_view.xml
+++ b/account_payment_partner/views/account_invoice_view.xml
@@ -5,7 +5,6 @@
-->
-
account_payment_partner.account_invoice_search
@@ -25,7 +24,7 @@
account.invoice
-
+
@@ -43,7 +42,7 @@
account.invoice
-
+
@@ -81,5 +80,4 @@
-
diff --git a/account_payment_partner/views/account_move_line.xml b/account_payment_partner/views/account_move_line.xml
index b0d0ca102..51cba50df 100644
--- a/account_payment_partner/views/account_move_line.xml
+++ b/account_payment_partner/views/account_move_line.xml
@@ -1,13 +1,12 @@
-
-
+
@@ -24,5 +23,4 @@
-
-
+
diff --git a/account_payment_partner/views/report_invoice.xml b/account_payment_partner/views/report_invoice.xml
index 9368238f1..068dbf672 100644
--- a/account_payment_partner/views/report_invoice.xml
+++ b/account_payment_partner/views/report_invoice.xml
@@ -1,17 +1,17 @@
-
-
-
-
-
- Payment Mode:
-
-
-
- Bank Account:
-
-
-
-
-
-
+
+
+
+
+
+ Payment Mode:
+
+
+
+ Bank Account:
+
+
+
+
+
+
diff --git a/account_payment_partner/views/res_partner_view.xml b/account_payment_partner/views/res_partner_view.xml
index 3d06ee856..bf545cb1d 100644
--- a/account_payment_partner/views/res_partner_view.xml
+++ b/account_payment_partner/views/res_partner_view.xml
@@ -1,12 +1,11 @@
-
-
+
@@ -24,5 +23,4 @@
-
-
+
From 361ca7a8132f4a52341720b578a6735dfa7ebb39 Mon Sep 17 00:00:00 2001
From: "Pedro M. Baeza"
Date: Sun, 2 Apr 2017 04:04:55 +0200
Subject: [PATCH 18/58] [IMP] account_payment_partner: Several things:
* Change copyright and author after company merging
* Fill payment mode in invoices if none is provided
Using same method as in upstream, payment mode is filled on invoice creation if
no payment method is provided. This way, we don't need to install
account_payment_sale if we don't want to handle several payment modes at sales
level. Even more, if we install the module later and we have already existing
sales orders without payment mode filled, those orders will be invoiced with
the customer payment mode.
* Signature changed in convert_to_write
---
account_payment_partner/__manifest__.py | 4 ++--
.../models/account_invoice.py | 21 ++++++++++++++++++-
2 files changed, 22 insertions(+), 3 deletions(-)
diff --git a/account_payment_partner/__manifest__.py b/account_payment_partner/__manifest__.py
index 59484804b..c38f46c9c 100644
--- a/account_payment_partner/__manifest__.py
+++ b/account_payment_partner/__manifest__.py
@@ -1,11 +1,11 @@
# -*- coding: utf-8 -*-
# © 2014 Akretion - Alexis de Lattre
-# © 2014 Serv. Tecnol. Avanzados - Pedro M. Baeza
+# © 2014 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
'name': 'Account Payment Partner',
- 'version': '10.0.1.0.0',
+ 'version': '10.0.1.1.0',
'category': 'Banking addons',
'license': 'AGPL-3',
'summary': 'Adds payment mode on partners and invoices',
diff --git a/account_payment_partner/models/account_invoice.py b/account_payment_partner/models/account_invoice.py
index 6f33546e3..cc50ce9b5 100644
--- a/account_payment_partner/models/account_invoice.py
+++ b/account_payment_partner/models/account_invoice.py
@@ -19,7 +19,7 @@ class AccountInvoice(models.Model):
@api.onchange('partner_id', 'company_id')
def _onchange_partner_id(self):
- super(AccountInvoice, self)._onchange_partner_id()
+ res = super(AccountInvoice, self)._onchange_partner_id()
if self.partner_id:
if self.type == 'in_invoice':
pay_mode = self.partner_id.supplier_payment_mode_id
@@ -41,6 +41,25 @@ class AccountInvoice(models.Model):
self.payment_mode_id = False
if self.type == 'in_invoice':
self.partner_bank_id = False
+ return res
+
+ @api.model
+ def create(self, vals):
+ """Fill the payment_mode_id from the partner if none is provided on
+ creation, using same method as upstream."""
+ onchanges = {
+ '_onchange_partner_id': ['payment_mode_id'],
+ }
+ for onchange_method, changed_fields in onchanges.items():
+ if any(f not in vals for f in changed_fields):
+ invoice = self.new(vals)
+ getattr(invoice, onchange_method)()
+ for field in changed_fields:
+ if field not in vals and invoice[field]:
+ vals[field] = invoice._fields[field].convert_to_write(
+ invoice[field], invoice,
+ )
+ return super(AccountInvoice, self).create(vals)
@api.onchange('payment_mode_id')
def payment_mode_id_change(self):
From 799c6964f17a97d1067e5452d435c3a5c3b0fdcb Mon Sep 17 00:00:00 2001
From: OCA Transbot
Date: Sat, 17 Sep 2016 01:31:04 -0400
Subject: [PATCH 19/58] OCA Transbot updated translations from Transifex
---
account_payment_partner/i18n/de.po | 93 +++++++++++++++++++++++++++
account_payment_partner/i18n/es.po | 35 +++++-----
account_payment_partner/i18n/fr.po | 6 +-
account_payment_partner/i18n/hr.po | 91 ++++++++++++++++++++++++++
account_payment_partner/i18n/nl.po | 20 +++---
account_payment_partner/i18n/pt_BR.po | 14 ++--
account_payment_partner/i18n/sl.po | 14 ++--
7 files changed, 234 insertions(+), 39 deletions(-)
create mode 100644 account_payment_partner/i18n/de.po
create mode 100644 account_payment_partner/i18n/hr.po
diff --git a/account_payment_partner/i18n/de.po b/account_payment_partner/i18n/de.po
new file mode 100644
index 000000000..1bf0e8d9a
--- /dev/null
+++ b/account_payment_partner/i18n/de.po
@@ -0,0 +1,93 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * account_payment_partner
+#
+# Translators:
+# Niki Waibel, 2016
+# Niki Waibel, 2016
+msgid ""
+msgstr ""
+"Project-Id-Version: bank-payment (10.0)\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2017-05-01 14:55+0000\n"
+"PO-Revision-Date: 2016-11-01 20:49+0000\n"
+"Last-Translator: Niki Waibel\n"
+"Language-Team: German (http://www.transifex.com/oca/OCA-bank-payment-10-0/language/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: account_payment_partner
+#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
+msgid "Bank Account:"
+msgstr "Bankkonto:"
+
+#. module: account_payment_partner
+#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
+msgid "Payment Mode:"
+msgstr "Zahlungsmethode:"
+
+#. module: account_payment_partner
+#: model:ir.model.fields,help:account_payment_partner.field_account_invoice_bank_account_required
+msgid ""
+"Activate this option if this payment method requires you to know the bank "
+"account number of your customer or supplier."
+msgstr "Aktiviere diese Option, wenn mit dieser Zahlungsmethode die Bankkontonummer des Kunden oder Lieferanten bekannt sein muss."
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_bank_account_required
+msgid "Bank Account Required"
+msgstr "Bankkonto erforderlich"
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_customer_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_customer_payment_mode_id
+msgid "Customer Payment Mode"
+msgstr "Zahlungsmethode des Kunden"
+
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_account_invoice
+msgid "Invoice"
+msgstr "Rechnung"
+
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_account_move_line
+msgid "Journal Item"
+msgstr "Logbuch Eintrag"
+
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_res_partner
+msgid "Partner"
+msgstr "Partner"
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_move_line_payment_mode_id
+#: model:ir.ui.view,arch_db:account_payment_partner.view_account_invoice_filter
+msgid "Payment Mode"
+msgstr "Zahlungsmodus"
+
+#. module: account_payment_partner
+#: model:ir.ui.view,arch_db:account_payment_partner.view_move_line_form
+msgid "Payments"
+msgstr "Zahlungen"
+
+#. module: account_payment_partner
+#: model:ir.model.fields,help:account_payment_partner.field_res_partner_customer_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_users_customer_payment_mode_id
+msgid "Select the default payment mode for this customer."
+msgstr "Wähle die standard Zahlungsmethode für diesen Kunden."
+
+#. module: account_payment_partner
+#: model:ir.model.fields,help:account_payment_partner.field_res_partner_supplier_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_users_supplier_payment_mode_id
+msgid "Select the default payment mode for this supplier."
+msgstr "Wähle die standard Zahlungsmethode für diesen Lieferanten."
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_supplier_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_supplier_payment_mode_id
+msgid "Supplier Payment Mode"
+msgstr "Zahlungsmethode des Lieferanten"
diff --git a/account_payment_partner/i18n/es.po b/account_payment_partner/i18n/es.po
index ec1fe26fa..71c086681 100644
--- a/account_payment_partner/i18n/es.po
+++ b/account_payment_partner/i18n/es.po
@@ -4,14 +4,15 @@
#
# Translators:
# OCA Transbot , 2016
+# Pedro M. Baeza , 2016
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 9.0c\n"
+"Project-Id-Version: bank-payment (10.0)\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2016-07-01 19:28+0000\n"
-"PO-Revision-Date: 2016-07-01 19:28+0000\n"
-"Last-Translator: OCA Transbot , 2016\n"
-"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n"
+"POT-Creation-Date: 2017-05-01 14:55+0000\n"
+"PO-Revision-Date: 2016-12-27 12:50+0000\n"
+"Last-Translator: Pedro M. Baeza \n"
+"Language-Team: Spanish (http://www.transifex.com/oca/OCA-bank-payment-10-0/language/es/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
@@ -21,27 +22,28 @@ msgstr ""
#. module: account_payment_partner
#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
msgid "Bank Account:"
-msgstr ""
+msgstr "Cuenta bancaria:"
#. module: account_payment_partner
#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
msgid "Payment Mode:"
-msgstr ""
+msgstr "Modo de pago:"
#. module: account_payment_partner
#: model:ir.model.fields,help:account_payment_partner.field_account_invoice_bank_account_required
msgid ""
"Activate this option if this payment method requires you to know the bank "
"account number of your customer or supplier."
-msgstr ""
+msgstr "Activa esta opción si este método de pago debe requerirte informar el número de cuenta bancaria de tu cliente o proveedor"
#. module: account_payment_partner
#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_bank_account_required
msgid "Bank Account Required"
-msgstr ""
+msgstr "Cuenta bancaria requerida"
#. module: account_payment_partner
#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_customer_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_customer_payment_mode_id
msgid "Customer Payment Mode"
msgstr "Modo de pago de cliente"
@@ -53,7 +55,7 @@ msgstr "Factura"
#. module: account_payment_partner
#: model:ir.model,name:account_payment_partner.model_account_move_line
msgid "Journal Item"
-msgstr ""
+msgstr "Apunte contable"
#. module: account_payment_partner
#: model:ir.model,name:account_payment_partner.model_res_partner
@@ -70,23 +72,22 @@ msgstr "Modo de pago"
#. module: account_payment_partner
#: model:ir.ui.view,arch_db:account_payment_partner.view_move_line_form
msgid "Payments"
-msgstr ""
+msgstr "Pagos"
#. module: account_payment_partner
#: model:ir.model.fields,help:account_payment_partner.field_res_partner_customer_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_users_customer_payment_mode_id
msgid "Select the default payment mode for this customer."
-msgstr ""
-"Seleccione el modo de pago por defecto cuando esta empresa actúa como "
-"cliente."
+msgstr "Seleccione el modo de pago por defecto cuando esta empresa actúa como cliente."
#. module: account_payment_partner
#: model:ir.model.fields,help:account_payment_partner.field_res_partner_supplier_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_users_supplier_payment_mode_id
msgid "Select the default payment mode for this supplier."
-msgstr ""
-"Seleccione el modo de pago por defecto cuando esta empresa actúa como "
-"proveedor."
+msgstr "Seleccione el modo de pago por defecto cuando esta empresa actúa como proveedor."
#. module: account_payment_partner
#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_supplier_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_supplier_payment_mode_id
msgid "Supplier Payment Mode"
msgstr "Modo de pago de proveedor"
diff --git a/account_payment_partner/i18n/fr.po b/account_payment_partner/i18n/fr.po
index ffc958868..48e07c7e6 100644
--- a/account_payment_partner/i18n/fr.po
+++ b/account_payment_partner/i18n/fr.po
@@ -8,8 +8,8 @@ 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: 2016-07-01 19:28+0000\n"
+"POT-Creation-Date: 2016-09-10 16:16+0000\n"
+"PO-Revision-Date: 2016-09-10 16:16+0000\n"
"Last-Translator: OCA Transbot , 2016\n"
"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n"
"MIME-Version: 1.0\n"
@@ -58,7 +58,7 @@ msgstr ""
#. module: account_payment_partner
#: model:ir.model,name:account_payment_partner.model_res_partner
msgid "Partner"
-msgstr ""
+msgstr "Partenaire"
#. module: account_payment_partner
#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_payment_mode_id
diff --git a/account_payment_partner/i18n/hr.po b/account_payment_partner/i18n/hr.po
new file mode 100644
index 000000000..78d4bd9cc
--- /dev/null
+++ b/account_payment_partner/i18n/hr.po
@@ -0,0 +1,91 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * account_payment_partner
+#
+# Translators:
+msgid ""
+msgstr ""
+"Project-Id-Version: bank-payment (10.0)\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2017-06-03 00:10+0000\n"
+"PO-Revision-Date: 2016-10-19 23:47+0000\n"
+"Last-Translator: <>\n"
+"Language-Team: Croatian (http://www.transifex.com/oca/OCA-bank-payment-10-0/language/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: account_payment_partner
+#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
+msgid "Bank Account:"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
+msgid "Payment Mode:"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,help:account_payment_partner.field_account_invoice_bank_account_required
+msgid ""
+"Activate this option if this payment method requires you to know the bank "
+"account number of your customer or supplier."
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_bank_account_required
+msgid "Bank Account Required"
+msgstr "Bankovni račun je obavezan"
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_customer_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_customer_payment_mode_id
+msgid "Customer Payment Mode"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_account_invoice
+msgid "Invoice"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_account_move_line
+msgid "Journal Item"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_res_partner
+msgid "Partner"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_move_line_payment_mode_id
+#: model:ir.ui.view,arch_db:account_payment_partner.view_account_invoice_filter
+msgid "Payment Mode"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.ui.view,arch_db:account_payment_partner.view_move_line_form
+msgid "Payments"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,help:account_payment_partner.field_res_partner_customer_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_users_customer_payment_mode_id
+msgid "Select the default payment mode for this customer."
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,help:account_payment_partner.field_res_partner_supplier_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_users_supplier_payment_mode_id
+msgid "Select the default payment mode for this supplier."
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_supplier_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_supplier_payment_mode_id
+msgid "Supplier Payment Mode"
+msgstr ""
diff --git a/account_payment_partner/i18n/nl.po b/account_payment_partner/i18n/nl.po
index e0fcdf734..47ccf4f2b 100644
--- a/account_payment_partner/i18n/nl.po
+++ b/account_payment_partner/i18n/nl.po
@@ -3,16 +3,16 @@
# * account_payment_partner
#
# Translators:
-# OCA Transbot , 2016
# Erwin van der Ploeg , 2016
+# OCA Transbot , 2016
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 9.0c\n"
+"Project-Id-Version: bank-payment (10.0)\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"
+"POT-Creation-Date: 2017-05-01 14:55+0000\n"
+"PO-Revision-Date: 2016-10-19 23:47+0000\n"
+"Last-Translator: OCA Transbot \n"
+"Language-Team: Dutch (http://www.transifex.com/oca/OCA-bank-payment-10-0/language/nl/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
@@ -34,9 +34,7 @@ msgstr "Betaalmode:"
msgid ""
"Activate this option if this payment method requires you to know the bank "
"account number of your customer or supplier."
-msgstr ""
-"Activeer deze optie als de betaalwijze verwacht dat u het bankrekeningnummer"
-" van uw klant of leverancier kent."
+msgstr "Activeer deze optie als de betaalwijze verwacht dat u het bankrekeningnummer van uw klant of leverancier kent."
#. module: account_payment_partner
#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_bank_account_required
@@ -45,6 +43,7 @@ msgstr "Bankrekening verplicht"
#. module: account_payment_partner
#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_customer_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_customer_payment_mode_id
msgid "Customer Payment Mode"
msgstr "Betaalwijze klant"
@@ -77,15 +76,18 @@ msgstr "Betalingen"
#. module: account_payment_partner
#: model:ir.model.fields,help:account_payment_partner.field_res_partner_customer_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_users_customer_payment_mode_id
msgid "Select the default payment mode for this customer."
msgstr "Selecteer de standaard betaalwijze voor deze klant."
#. module: account_payment_partner
#: model:ir.model.fields,help:account_payment_partner.field_res_partner_supplier_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_users_supplier_payment_mode_id
msgid "Select the default payment mode for this supplier."
msgstr "Selecteer de standaard betaalwijze voor deze leverancier."
#. module: account_payment_partner
#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_supplier_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_supplier_payment_mode_id
msgid "Supplier Payment Mode"
msgstr "Betaalwijze leverancier"
diff --git a/account_payment_partner/i18n/pt_BR.po b/account_payment_partner/i18n/pt_BR.po
index 26c15015d..065892bb0 100644
--- a/account_payment_partner/i18n/pt_BR.po
+++ b/account_payment_partner/i18n/pt_BR.po
@@ -6,12 +6,12 @@
# OCA Transbot , 2016
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 9.0c\n"
+"Project-Id-Version: bank-payment (10.0)\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2016-07-01 19:28+0000\n"
-"PO-Revision-Date: 2016-07-01 19:28+0000\n"
-"Last-Translator: OCA Transbot , 2016\n"
-"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/teams/23907/pt_BR/)\n"
+"POT-Creation-Date: 2017-05-01 14:55+0000\n"
+"PO-Revision-Date: 2016-10-19 23:47+0000\n"
+"Last-Translator: OCA Transbot \n"
+"Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/OCA-bank-payment-10-0/language/pt_BR/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
@@ -42,6 +42,7 @@ msgstr ""
#. module: account_payment_partner
#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_customer_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_customer_payment_mode_id
msgid "Customer Payment Mode"
msgstr "Modo de Pagamento do Cliente"
@@ -74,15 +75,18 @@ msgstr ""
#. module: account_payment_partner
#: model:ir.model.fields,help:account_payment_partner.field_res_partner_customer_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_users_customer_payment_mode_id
msgid "Select the default payment mode for this customer."
msgstr "Selecione o modo de pagamento padrão para este cliente."
#. module: account_payment_partner
#: model:ir.model.fields,help:account_payment_partner.field_res_partner_supplier_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_users_supplier_payment_mode_id
msgid "Select the default payment mode for this supplier."
msgstr "Selecione o modo de pagamento padrão para este fornecedor."
#. module: account_payment_partner
#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_supplier_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_supplier_payment_mode_id
msgid "Supplier Payment Mode"
msgstr "Modo de Pagamento do Fornecedor"
diff --git a/account_payment_partner/i18n/sl.po b/account_payment_partner/i18n/sl.po
index 6af55976f..8ec6dcc80 100644
--- a/account_payment_partner/i18n/sl.po
+++ b/account_payment_partner/i18n/sl.po
@@ -6,12 +6,12 @@
# OCA Transbot , 2016
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 9.0c\n"
+"Project-Id-Version: bank-payment (10.0)\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2016-07-01 19:28+0000\n"
-"PO-Revision-Date: 2016-07-01 19:28+0000\n"
-"Last-Translator: OCA Transbot , 2016\n"
-"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n"
+"POT-Creation-Date: 2017-05-01 14:55+0000\n"
+"PO-Revision-Date: 2016-10-19 23:47+0000\n"
+"Last-Translator: OCA Transbot \n"
+"Language-Team: Slovenian (http://www.transifex.com/oca/OCA-bank-payment-10-0/language/sl/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
@@ -42,6 +42,7 @@ msgstr ""
#. module: account_payment_partner
#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_customer_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_customer_payment_mode_id
msgid "Customer Payment Mode"
msgstr "Metoda plačila kupca"
@@ -74,15 +75,18 @@ msgstr ""
#. module: account_payment_partner
#: model:ir.model.fields,help:account_payment_partner.field_res_partner_customer_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_users_customer_payment_mode_id
msgid "Select the default payment mode for this customer."
msgstr "Izbira privzete metode plačila za tega kupca."
#. module: account_payment_partner
#: model:ir.model.fields,help:account_payment_partner.field_res_partner_supplier_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_users_supplier_payment_mode_id
msgid "Select the default payment mode for this supplier."
msgstr "Izbira privzete metode plačila za tega dobavitelja."
#. module: account_payment_partner
#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_supplier_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_supplier_payment_mode_id
msgid "Supplier Payment Mode"
msgstr "Metoda plačila dobavitelja"
From 6226f64fa1c6e1971c9c1ecdd656cf4416cc111d Mon Sep 17 00:00:00 2001
From: etobella
Date: Tue, 17 Oct 2017 16:05:26 +0200
Subject: [PATCH 20/58] [MIG] account_payment_partner
---
account_payment_partner/README.rst | 8 ++--
account_payment_partner/__init__.py | 2 +-
account_payment_partner/__manifest__.py | 4 +-
.../models/account_invoice.py | 46 +++++++++++--------
.../models/account_move_line.py | 10 ++--
account_payment_partner/models/res_partner.py | 8 ++--
.../views/account_invoice_view.xml | 9 ++--
.../views/account_move_line.xml | 4 +-
.../views/res_partner_view.xml | 4 +-
9 files changed, 54 insertions(+), 41 deletions(-)
diff --git a/account_payment_partner/README.rst b/account_payment_partner/README.rst
index 4e9e8e684..15ee4b252 100644
--- a/account_payment_partner/README.rst
+++ b/account_payment_partner/README.rst
@@ -38,7 +38,7 @@ Invoices without any payment mode are displayed to.
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
- :target: https://runbot.odoo-community.org/runbot/173/10.0
+ :target: https://runbot.odoo-community.org/runbot/173/11.0
Known issues / Roadmap
======================
@@ -71,12 +71,12 @@ Contributors
Maintainer
----------
-.. image:: http://odoo-community.org/logo.png
+.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
- :target: http://odoo-community.org
+ :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 http://odoo-community.org.
+To contribute to this module, please visit https://odoo-community.org.
diff --git a/account_payment_partner/__init__.py b/account_payment_partner/__init__.py
index 3845dd2da..50def6204 100644
--- a/account_payment_partner/__init__.py
+++ b/account_payment_partner/__init__.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# © 2014 Akretion - Alexis de Lattre
-# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
+# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from . import models
diff --git a/account_payment_partner/__manifest__.py b/account_payment_partner/__manifest__.py
index c38f46c9c..2d29082d2 100644
--- a/account_payment_partner/__manifest__.py
+++ b/account_payment_partner/__manifest__.py
@@ -1,11 +1,11 @@
# -*- coding: utf-8 -*-
# © 2014 Akretion - Alexis de Lattre
# © 2014 Tecnativa - Pedro M. Baeza
-# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
+# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
'name': 'Account Payment Partner',
- 'version': '10.0.1.1.0',
+ 'version': '11.0.1.0.0',
'category': 'Banking addons',
'license': 'AGPL-3',
'summary': 'Adds payment mode on partners and invoices',
diff --git a/account_payment_partner/models/account_invoice.py b/account_payment_partner/models/account_invoice.py
index cc50ce9b5..e858875a0 100644
--- a/account_payment_partner/models/account_invoice.py
+++ b/account_payment_partner/models/account_invoice.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
# © 2014-2016 Akretion - Alexis de Lattre
# © 2014 Serv. Tecnol. Avanzados - Pedro M. Baeza
-# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
+# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import models, fields, api
@@ -22,20 +22,25 @@ class AccountInvoice(models.Model):
res = super(AccountInvoice, self)._onchange_partner_id()
if self.partner_id:
if self.type == 'in_invoice':
- pay_mode = self.partner_id.supplier_payment_mode_id
+ pay_mode = self.with_context(
+ company_id=self.company_id.id
+ ).partner_id.supplier_payment_mode_id
self.payment_mode_id = pay_mode
if (
- pay_mode and
- pay_mode.payment_type == 'outbound' and
- pay_mode.payment_method_id.bank_account_required and
- self.commercial_partner_id.bank_ids):
- self.partner_bank_id =\
+ pay_mode and
+ pay_mode.payment_type == 'outbound' and
+ pay_mode.payment_method_id.bank_account_required and
+ self.commercial_partner_id.bank_ids
+ ):
+ self.partner_bank_id = \
self.commercial_partner_id.bank_ids[0]
elif self.type == 'out_invoice':
- pay_mode = self.partner_id.customer_payment_mode_id
+ pay_mode = self.with_context(
+ company_id=self.company_id.id
+ ).partner_id.customer_payment_mode_id
self.payment_mode_id = pay_mode
if pay_mode and pay_mode.bank_account_link == 'fixed':
- self.partner_bank_id = pay_mode.fixed_journal_id.\
+ self.partner_bank_id = pay_mode.fixed_journal_id. \
bank_account_id
else:
self.payment_mode_id = False
@@ -43,6 +48,18 @@ class AccountInvoice(models.Model):
self.partner_bank_id = False
return res
+ @api.onchange('payment_mode_id')
+ def _onchange_payment_mode_id(self):
+ pay_mode = self.payment_mode_id
+ if (
+ pay_mode and
+ pay_mode.payment_type == 'outbound' and not
+ pay_mode.payment_method_id.bank_account_required
+ ):
+ self.partner_bank_id = False
+ elif not self.payment_mode_id:
+ self.partner_bank_id = False
+
@api.model
def create(self, vals):
"""Fill the payment_mode_id from the partner if none is provided on
@@ -61,17 +78,6 @@ class AccountInvoice(models.Model):
)
return super(AccountInvoice, self).create(vals)
- @api.onchange('payment_mode_id')
- def payment_mode_id_change(self):
- if (
- self.payment_mode_id and
- self.payment_mode_id.payment_type == 'outbound' and
- not self.payment_mode_id.payment_method_id.
- bank_account_required):
- self.partner_bank_id = False
- elif not self.payment_mode_id:
- self.partner_bank_id = False
-
@api.model
def line_get_convert(self, line, part):
"""Copy payment mode from invoice to account move line"""
diff --git a/account_payment_partner/models/account_move_line.py b/account_payment_partner/models/account_move_line.py
index e5fa4d492..9bdcec4e6 100644
--- a/account_payment_partner/models/account_move_line.py
+++ b/account_payment_partner/models/account_move_line.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
-# © 2016 Akretion (http://www.akretion.com/)
-# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
+# © 2016 Akretion (https://www.akretion.com/)
+# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import models, fields
@@ -9,4 +9,8 @@ class AccountMoveLine(models.Model):
_inherit = 'account.move.line'
payment_mode_id = fields.Many2one(
- 'account.payment.mode', string='Payment Mode', ondelete='restrict')
+ 'account.payment.mode',
+ string='Payment Mode',
+ domain="[('company_id', '=', company_id)]",
+ ondelete='restrict'
+ )
diff --git a/account_payment_partner/models/res_partner.py b/account_payment_partner/models/res_partner.py
index 9b8357141..246c8739c 100644
--- a/account_payment_partner/models/res_partner.py
+++ b/account_payment_partner/models/res_partner.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
# © 2014 Akretion - Alexis de Lattre
# © 2014 Serv. Tecnol. Avanzados - Pedro M. Baeza
-# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
+# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import models, fields, api
@@ -13,12 +13,14 @@ class ResPartner(models.Model):
supplier_payment_mode_id = fields.Many2one(
'account.payment.mode', string='Supplier Payment Mode',
company_dependent=True,
- domain=[('payment_type', '=', 'outbound')],
+ domain="[('payment_type', '=', 'outbound'), "
+ "('company_id', '=', company_id)]",
help="Select the default payment mode for this supplier.")
customer_payment_mode_id = fields.Many2one(
'account.payment.mode', string='Customer Payment Mode',
company_dependent=True,
- domain=[('payment_type', '=', 'inbound')],
+ domain="[('payment_type', '=', 'inbound'), "
+ "('company_id', '=', company_id)]",
help="Select the default payment mode for this customer.")
@api.model
diff --git a/account_payment_partner/views/account_invoice_view.xml b/account_payment_partner/views/account_invoice_view.xml
index b2553be57..859e4572c 100644
--- a/account_payment_partner/views/account_invoice_view.xml
+++ b/account_payment_partner/views/account_invoice_view.xml
@@ -1,7 +1,7 @@
@@ -26,7 +26,7 @@
@@ -44,13 +44,14 @@
- [('partner_id', '=', commercial_partner_id)]
+ [('partner_id', '=', commercial_partner_id),
+ '|',('company_id', '=', company_id),('company_id', '=', False)]
0
{'invisible': [('bank_account_required', '=', False)], 'required': [('bank_account_required', '=', True)]}
diff --git a/account_payment_partner/views/account_move_line.xml b/account_payment_partner/views/account_move_line.xml
index 51cba50df..1abe8b5e1 100644
--- a/account_payment_partner/views/account_move_line.xml
+++ b/account_payment_partner/views/account_move_line.xml
@@ -1,9 +1,9 @@
diff --git a/account_payment_partner/views/res_partner_view.xml b/account_payment_partner/views/res_partner_view.xml
index bf545cb1d..ad7ceeafe 100644
--- a/account_payment_partner/views/res_partner_view.xml
+++ b/account_payment_partner/views/res_partner_view.xml
@@ -1,8 +1,8 @@
From 59f244b456e2cf8a1b55f8b17d15d2c520c65093 Mon Sep 17 00:00:00 2001
From: Jordi Ballester
Date: Sun, 22 Oct 2017 23:37:18 +0200
Subject: [PATCH 21/58] add tests and small fixes
---
account_payment_partner/models/__init__.py | 2 +-
.../models/account_invoice.py | 23 +-
.../models/account_payment_mode.py | 31 ++
account_payment_partner/tests/__init__.py | 2 +
.../tests/test_account_payment_partner.py | 315 ++++++++++++++++++
5 files changed, 368 insertions(+), 5 deletions(-)
create mode 100644 account_payment_partner/models/account_payment_mode.py
create mode 100644 account_payment_partner/tests/__init__.py
create mode 100644 account_payment_partner/tests/test_account_payment_partner.py
diff --git a/account_payment_partner/models/__init__.py b/account_payment_partner/models/__init__.py
index 152bb919c..6237433ee 100644
--- a/account_payment_partner/models/__init__.py
+++ b/account_payment_partner/models/__init__.py
@@ -1,5 +1,5 @@
-# -*- coding: utf-8 -*-
from . import res_partner
from . import account_invoice
from . import account_move_line
+from . import account_payment_mode
diff --git a/account_payment_partner/models/account_invoice.py b/account_payment_partner/models/account_invoice.py
index e858875a0..d78eb5079 100644
--- a/account_payment_partner/models/account_invoice.py
+++ b/account_payment_partner/models/account_invoice.py
@@ -3,7 +3,8 @@
# © 2014 Serv. Tecnol. Avanzados - Pedro M. Baeza
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
-from odoo import models, fields, api
+from odoo import api, fields, models, _
+from odoo.exceptions import ValidationError
class AccountInvoice(models.Model):
@@ -23,7 +24,7 @@ class AccountInvoice(models.Model):
if self.partner_id:
if self.type == 'in_invoice':
pay_mode = self.with_context(
- company_id=self.company_id.id
+ force_company=self.company_id.id
).partner_id.supplier_payment_mode_id
self.payment_mode_id = pay_mode
if (
@@ -33,10 +34,15 @@ class AccountInvoice(models.Model):
self.commercial_partner_id.bank_ids
):
self.partner_bank_id = \
- self.commercial_partner_id.bank_ids[0]
+ self.commercial_partner_id.bank_ids.filtered(
+ lambda b: b.company_id == self.company_id or not
+ b.company_id)
+ else:
+ self.partner_bank_id = False
+
elif self.type == 'out_invoice':
pay_mode = self.with_context(
- company_id=self.company_id.id
+ force_company=self.company_id.id
).partner_id.customer_payment_mode_id
self.payment_mode_id = pay_mode
if pay_mode and pay_mode.bank_account_link == 'fixed':
@@ -102,3 +108,12 @@ class AccountInvoice(models.Model):
if invoice.type == 'in_invoice':
vals['partner_bank_id'] = invoice.partner_bank_id.id
return vals
+
+ @api.constrains('company_id', 'payment_mode_id')
+ def _check_payment_mode_company_constrains(self):
+ for rec in self.sudo():
+ if (rec.payment_mode_id and rec.company_id !=
+ rec.payment_mode_id.company_id):
+ raise ValidationError(
+ _("The company of the invoice %s does not match "
+ "with that of the payment mode") % rec.name)
diff --git a/account_payment_partner/models/account_payment_mode.py b/account_payment_partner/models/account_payment_mode.py
new file mode 100644
index 000000000..2b0f618ab
--- /dev/null
+++ b/account_payment_partner/models/account_payment_mode.py
@@ -0,0 +1,31 @@
+# Copyright 2017 Eficent Business and IT Consulting Services S.L.
+# License AGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
+
+from odoo import models, api, _
+from odoo.exceptions import ValidationError
+
+
+class AccountPaymentMode(models.Model):
+ _inherit = "account.payment.mode"
+
+ @api.constrains('company_id')
+ def account_invoice_company_constrains(self):
+ for mode in self:
+ if self.env['account.invoice'].sudo().search(
+ [('payment_mode_id', '=', mode.id),
+ ('company_id', '!=', mode.company_id.id)], limit=1):
+ raise ValidationError(_(
+ "You cannot change the Company. There exists "
+ "at least one Invoice with this Payment Mode, "
+ "already assigned to another Company."))
+
+ @api.constrains('company_id')
+ def account_move_line_company_constrains(self):
+ for mode in self:
+ if self.env['account.move.line'].sudo().search(
+ [('payment_mode_id', '=', mode.id),
+ ('company_id', '!=', mode.company_id.id)], limit=1):
+ raise ValidationError(_(
+ "You cannot change the Company. There exists "
+ "at least one Journal Item with this Payment Mode, "
+ "already assigned to another Company."))
diff --git a/account_payment_partner/tests/__init__.py b/account_payment_partner/tests/__init__.py
new file mode 100644
index 000000000..0d757b027
--- /dev/null
+++ b/account_payment_partner/tests/__init__.py
@@ -0,0 +1,2 @@
+
+from . import test_account_payment_partner
diff --git a/account_payment_partner/tests/test_account_payment_partner.py b/account_payment_partner/tests/test_account_payment_partner.py
new file mode 100644
index 000000000..b02016463
--- /dev/null
+++ b/account_payment_partner/tests/test_account_payment_partner.py
@@ -0,0 +1,315 @@
+# Copyright 2017 Eficent Business and IT Consulting Services S.L.
+# License AGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
+
+from odoo import fields, _
+from odoo.tests import common
+from odoo.exceptions import ValidationError
+
+
+class TestAccountPaymentPartner(common.SavepointCase):
+
+ @classmethod
+ def setUpClass(cls):
+ super(TestAccountPaymentPartner, cls).setUpClass()
+
+ cls.res_users_model = cls.env['res.users']
+ cls.journal_model = cls.env['account.journal']
+ cls.payment_mode_model = cls.env['account.payment.mode']
+ cls.partner_bank_model = cls.env['res.partner.bank']
+
+ # Refs
+ cls.company = cls.env.ref('base.main_company')
+ cls.acct_type_payable = cls.env.ref(
+ 'account.data_account_type_payable')
+ cls.acct_type_expenses = cls.env.ref(
+ 'account.data_account_type_expenses')
+
+ cls.company_2 = cls.env['res.company'].create(
+ {'name': 'Company 2'},
+ )
+ charts = cls.env['account.chart.template'].search([])
+ if charts:
+ cls.chart = charts[0]
+ else:
+ raise ValidationError(
+ _("No Chart of Account Template has been defined !"))
+ cls.wizard = cls.env['wizard.multi.charts.accounts'].create({
+ 'company_id': cls.company_2.id,
+ 'chart_template_id': cls.chart.id,
+ 'sale_tax_id': False,
+ 'purchase_tax_id': False,
+ 'code_digits': 6,
+ 'currency_id': cls.env.ref('base.EUR').id,
+ 'transfer_account_id': cls.chart.transfer_account_id.id,
+ })
+ cls.wizard.execute()
+
+ # refs
+ cls.manual_out = cls.env.ref(
+ 'account.account_payment_method_manual_out')
+ cls.manual_in = cls.env.ref(
+ 'account.account_payment_method_manual_in')
+
+ cls.journal_sale = cls.env['account.journal'].create({
+ 'name': 'Test Sales Journal',
+ 'code': 'tSAL',
+ 'type': 'sale',
+ 'company_id': cls.company.id,
+ })
+
+ cls.journal_c1 = cls.journal_model.create({
+ 'name': 'J1',
+ 'code': 'J1',
+ 'type': 'bank',
+ 'company_id': cls.company.id,
+ 'bank_acc_number': '123456',
+ })
+
+ cls.journal_c2 = cls.journal_model.create({
+ 'name': 'J2',
+ 'code': 'J2',
+ 'type': 'bank',
+ 'company_id': cls.company_2.id,
+ 'bank_acc_number': '552344',
+ })
+
+ cls.supplier_payment_mode = cls.payment_mode_model.create({
+ 'name': 'Suppliers Bank 1',
+ 'bank_account_link': 'variable',
+ 'payment_method_id': cls.manual_out.id,
+ 'company_id': cls.company.id,
+ 'fixed_journal_id': cls.journal_c1.id,
+ 'variable_journal_ids': [(6, 0, [cls.journal_c1.id])]
+ })
+
+ cls.supplier_payment_mode_c2 = cls.payment_mode_model.create({
+ 'name': 'Suppliers Bank 2',
+ 'bank_account_link': 'variable',
+ 'payment_method_id': cls.manual_out.id,
+ 'company_id': cls.company_2.id,
+ 'fixed_journal_id': cls.journal_c2.id,
+ 'variable_journal_ids': [(6, 0, [cls.journal_c2.id])]
+ })
+
+ cls.customer_payment_mode = cls.payment_mode_model.create({
+ 'name': 'Customers to Bank 1',
+ 'bank_account_link': 'fixed',
+ 'payment_method_id': cls.manual_in.id,
+ 'company_id': cls.company.id,
+ 'fixed_journal_id': cls.journal_c1.id,
+ 'variable_journal_ids': [(6, 0, [cls.journal_c1.id])]
+ })
+
+ cls.customer = cls.env['res.partner'].with_context(
+ force_company=cls.company.id).create({
+ 'name': 'Test customer',
+ 'customer_payment_mode_id': cls.customer_payment_mode,
+ })
+
+ cls.supplier = cls.env['res.partner'].with_context(
+ force_company=cls.company.id).create({
+ 'name': 'Test supplier',
+ 'supplier_payment_mode_id': cls.supplier_payment_mode,
+ 'bank_ids': [
+ (0, 0, {
+ 'acc_number': '5345345',
+ 'company_id': cls.company.id,
+ }),
+ (0, 0, {
+ 'acc_number': '3452342',
+ 'company_id': cls.company_2.id,
+ })]
+ })
+ cls.supplier.with_context(
+ force_company=cls.company_2.id).supplier_payment_mode_id = \
+ cls.supplier_payment_mode_c2
+
+ cls.invoice_account = cls.env['account.account'].search(
+ [('user_type_id', '=', cls.acct_type_payable.id),
+ ('company_id', '=', cls.company.id)],
+ limit=1)
+ cls.invoice_line_account = cls.env['account.account'].search(
+ [('user_type_id', '=', cls.acct_type_expenses.id),
+ ('company_id', '=', cls.company.id)],
+ limit=1)
+
+ def _create_invoice(self):
+
+ invoice = self.env['account.invoice'].create({
+ 'partner_id': self.supplier.id,
+ 'journal_id': self.journal_sale.id,
+ 'account_id': self.invoice_account.id,
+ 'type': 'in_invoice',
+ 'company_id': self.company.id,
+ 'payment_mode_id': self.env.ref(
+ 'account_payment_mode.payment_mode_outbound_ct1').id
+ })
+
+ self.env['account.invoice.line'].create({
+ 'product_id': self.env.ref('product.product_product_4').id,
+ 'quantity': 1.0,
+ 'price_unit': 100.0,
+ 'invoice_id': invoice.id,
+ 'name': 'product that cost 100',
+ 'account_id': self.invoice_line_account.id,
+ })
+ return invoice
+
+ def test_create_partner(self):
+ customer = self.env['res.partner'].with_context(
+ force_company=self.company.id).create({
+ 'name': 'Test customer',
+ 'customer_payment_mode_id': self.customer_payment_mode,
+ })
+
+ self.assertEquals(customer.with_context(
+ force_company=self.company.id).customer_payment_mode_id,
+ self.customer_payment_mode)
+ self.assertEquals(customer.with_context(
+ force_company=self.company_2.id).customer_payment_mode_id,
+ self.payment_mode_model)
+
+ def test_out_invoice_onchange(self):
+ # Test the onchange methods in invoice
+ invoice = self.env['account.invoice'].new({
+ 'partner_id': self.customer.id,
+ 'type': 'out_invoice',
+ 'company_id': self.company.id,
+ })
+
+ invoice._onchange_partner_id()
+
+ self.assertEquals(invoice.payment_mode_id, self.customer_payment_mode)
+ self.assertEquals(
+ invoice.partner_bank_id,
+ self.customer_payment_mode.fixed_journal_id.bank_account_id)
+
+ invoice.company_id = self.company_2
+ invoice._onchange_partner_id()
+ self.assertEquals(invoice.payment_mode_id, self.payment_mode_model)
+
+ invoice.payment_mode_id = False
+ invoice._onchange_payment_mode_id()
+ self.assertFalse(invoice.partner_bank_id)
+
+ def test_in_invoice_onchange(self):
+ # Test the onchange methods in invoice
+ self.manual_out.bank_account_required = True
+ invoice = self.env['account.invoice'].new({
+ 'partner_id': self.supplier.id,
+ 'type': 'in_invoice',
+ 'company_id': self.company.id,
+ })
+
+ invoice._onchange_partner_id()
+
+ self.assertEquals(invoice.payment_mode_id, self.supplier_payment_mode)
+ bank = self.partner_bank_model.search(
+ [('acc_number', '=', '5345345')], limit=1)
+ self.assertEquals(
+ invoice.partner_bank_id,
+ bank)
+
+ invoice.company_id = self.company_2
+ invoice._onchange_partner_id()
+ self.assertEquals(invoice.payment_mode_id,
+ self.supplier_payment_mode_c2)
+ bank = self.partner_bank_model.search(
+ [('acc_number', '=', '3452342')], limit=1)
+ self.assertEquals(invoice.partner_bank_id, bank)
+
+ invoice.payment_mode_id = self.supplier_payment_mode
+ invoice._onchange_payment_mode_id()
+ self.assertTrue(invoice.partner_bank_id)
+
+ self.manual_out.bank_account_required = False
+
+ invoice.payment_mode_id = self.supplier_payment_mode_c2
+ invoice._onchange_payment_mode_id()
+ self.assertFalse(invoice.partner_bank_id)
+
+ invoice.partner_id = False
+ invoice._onchange_partner_id()
+ self.assertEquals(invoice.payment_mode_id,
+ self.payment_mode_model)
+ self.assertEquals(invoice.partner_bank_id,
+ self.partner_bank_model)
+
+ def test_invoice_create(self):
+ invoice = self._create_invoice()
+ invoice.action_invoice_open()
+ aml = invoice.move_id.line_ids.filtered(
+ lambda l: l.account_id.user_type_id == self.acct_type_payable)
+ self.assertEquals(invoice.payment_mode_id,
+ aml[0].payment_mode_id)
+
+ def test_invoice_constrains(self):
+ with self.assertRaises(ValidationError):
+ self.env['account.invoice'].create({
+ 'partner_id': self.supplier.id,
+ 'type': 'in_invoice',
+ 'company_id': self.company.id,
+ 'payment_mode_id': self.supplier_payment_mode_c2.id
+ })
+
+ def test_payment_mode_constrains_01(self):
+ self.env['account.invoice'].create({
+ 'partner_id': self.supplier.id,
+ 'type': 'in_invoice',
+ 'company_id': self.company.id,
+ })
+ with self.assertRaises(ValidationError):
+ self.supplier_payment_mode.company_id = self.company_2
+
+ def test_payment_mode_constrains_02(self):
+ self.env['account.move'].create({
+ 'date': fields.Date.today(),
+ 'journal_id': self.journal_sale.id,
+ 'name': '/',
+ 'ref': 'reference',
+ 'state': 'draft',
+ 'line_ids': [(0, 0, {
+ 'account_id': self.invoice_account.id,
+ 'credit': 1000,
+ 'debit': 0,
+ 'name': 'Test',
+ 'ref': 'reference',
+ }), (0, 0, {
+ 'account_id': self.invoice_line_account.id,
+ 'credit': 0,
+ 'debit': 1000,
+ 'name': 'Test',
+ 'ref': 'reference',
+ })]})
+ with self.assertRaises(ValidationError):
+ self.supplier_payment_mode.company_id = self.company_2
+
+ def test_invoice_refund(self):
+ invoice = self._create_invoice()
+ invoice.action_invoice_open()
+ # Lets create a refund invoice for invoice_1.
+ # I refund the invoice Using Refund Button.
+ context = {"active_model": 'account.invoice',
+ "active_ids": [invoice.id], "active_id": invoice.id}
+ account_invoice_refund = self.env[
+ 'account.invoice.refund'].with_context(context).create(dict(
+ description='Refund for Invoice',
+ filter_refund='refund',
+ ))
+ # I clicked on refund button.
+ account_invoice_refund.with_context(context).invoice_refund()
+ invoice_refund = invoice.refund_invoice_ids[0]
+
+ self.assertEquals(invoice_refund.payment_mode_id,
+ invoice.payment_mode_id)
+ self.assertEquals(invoice_refund.partner_bank_id,
+ invoice.partner_bank_id)
+
+ def test_partner(self):
+ self.customer.write({
+ 'customer_payment_mode_id': self.customer_payment_mode.id
+ })
+ self.assertEqual(
+ self.customer.customer_payment_mode_id,
+ self.customer_payment_mode
+ )
From 7bda577cd0eb951fc139c592d88616a0eae26c79 Mon Sep 17 00:00:00 2001
From: OCA Transbot
Date: Sat, 25 Nov 2017 02:20:27 +0100
Subject: [PATCH 22/58] OCA Transbot updated translations from Transifex
---
account_payment_partner/i18n/ca.po | 126 ++++++++++++++++++++++++++
account_payment_partner/i18n/da_DK.po | 126 ++++++++++++++++++++++++++
account_payment_partner/i18n/de.po | 57 +++++++++---
account_payment_partner/i18n/es.po | 65 ++++++++++---
account_payment_partner/i18n/fr.po | 81 +++++++++++++----
account_payment_partner/i18n/hr.po | 49 ++++++++--
account_payment_partner/i18n/nl.po | 57 +++++++++---
account_payment_partner/i18n/pt_BR.po | 52 +++++++++--
account_payment_partner/i18n/sl.po | 52 +++++++++--
9 files changed, 588 insertions(+), 77 deletions(-)
create mode 100644 account_payment_partner/i18n/ca.po
create mode 100644 account_payment_partner/i18n/da_DK.po
diff --git a/account_payment_partner/i18n/ca.po b/account_payment_partner/i18n/ca.po
new file mode 100644
index 000000000..039a564a7
--- /dev/null
+++ b/account_payment_partner/i18n/ca.po
@@ -0,0 +1,126 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * account_payment_partner
+#
+# Translators:
+# OCA Transbot , 2018
+msgid ""
+msgstr ""
+"Project-Id-Version: Odoo Server 11.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2018-02-02 03:43+0000\n"
+"PO-Revision-Date: 2018-02-02 03:43+0000\n"
+"Last-Translator: OCA Transbot , 2018\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: account_payment_partner
+#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
+msgid "Bank Account:"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
+msgid "Payment Mode:"
+msgstr "Mode de pagament:"
+
+#. module: account_payment_partner
+#: model:ir.model.fields,help:account_payment_partner.field_account_invoice_bank_account_required
+msgid ""
+"Activate this option if this payment method requires you to know the bank "
+"account number of your customer or supplier."
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_bank_account_required
+msgid "Bank Account Required"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_res_partner
+msgid "Contact"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_customer_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_customer_payment_mode_id
+msgid "Customer Payment Mode"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_account_invoice
+msgid "Invoice"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_account_move_line
+msgid "Journal Item"
+msgstr ""
+
+#. module: account_payment_partner
+#: code:addons/account_payment_partner/tests/test_account_payment_partner.py:35
+#, python-format
+msgid "No Chart of Account Template has been defined !"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_move_line_payment_mode_id
+#: model:ir.ui.view,arch_db:account_payment_partner.view_account_invoice_filter
+msgid "Payment Mode"
+msgstr "Mode de pagament"
+
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_account_payment_mode
+msgid "Payment Modes"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.ui.view,arch_db:account_payment_partner.view_move_line_form
+msgid "Payments"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,help:account_payment_partner.field_res_partner_customer_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_users_customer_payment_mode_id
+msgid "Select the default payment mode for this customer."
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,help:account_payment_partner.field_res_partner_supplier_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_users_supplier_payment_mode_id
+msgid "Select the default payment mode for this supplier."
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_supplier_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_supplier_payment_mode_id
+msgid "Supplier Payment Mode"
+msgstr ""
+
+#. module: account_payment_partner
+#: code:addons/account_payment_partner/models/account_invoice.py:118
+#, python-format
+msgid ""
+"The company of the invoice %s does not match with that of the payment mode"
+msgstr ""
+
+#. module: account_payment_partner
+#: code:addons/account_payment_partner/models/account_payment_mode.py:17
+#, python-format
+msgid ""
+"You cannot change the Company. There exists at least one Invoice with this "
+"Payment Mode, already assigned to another Company."
+msgstr ""
+
+#. module: account_payment_partner
+#: code:addons/account_payment_partner/models/account_payment_mode.py:28
+#, python-format
+msgid ""
+"You cannot change the Company. There exists at least one Journal Item with "
+"this Payment Mode, already assigned to another Company."
+msgstr ""
diff --git a/account_payment_partner/i18n/da_DK.po b/account_payment_partner/i18n/da_DK.po
new file mode 100644
index 000000000..65ef580b6
--- /dev/null
+++ b/account_payment_partner/i18n/da_DK.po
@@ -0,0 +1,126 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * account_payment_partner
+#
+# Translators:
+# OCA Transbot , 2018
+msgid ""
+msgstr ""
+"Project-Id-Version: Odoo Server 11.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2018-02-02 03:43+0000\n"
+"PO-Revision-Date: 2018-02-02 03:43+0000\n"
+"Last-Translator: OCA Transbot , 2018\n"
+"Language-Team: Danish (Denmark) (https://www.transifex.com/oca/teams/23907/da_DK/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: da_DK\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. module: account_payment_partner
+#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
+msgid "Bank Account:"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
+msgid "Payment Mode:"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,help:account_payment_partner.field_account_invoice_bank_account_required
+msgid ""
+"Activate this option if this payment method requires you to know the bank "
+"account number of your customer or supplier."
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_bank_account_required
+msgid "Bank Account Required"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_res_partner
+msgid "Contact"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_customer_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_customer_payment_mode_id
+msgid "Customer Payment Mode"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_account_invoice
+msgid "Invoice"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_account_move_line
+msgid "Journal Item"
+msgstr ""
+
+#. module: account_payment_partner
+#: code:addons/account_payment_partner/tests/test_account_payment_partner.py:35
+#, python-format
+msgid "No Chart of Account Template has been defined !"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_move_line_payment_mode_id
+#: model:ir.ui.view,arch_db:account_payment_partner.view_account_invoice_filter
+msgid "Payment Mode"
+msgstr "Betalingsform"
+
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_account_payment_mode
+msgid "Payment Modes"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.ui.view,arch_db:account_payment_partner.view_move_line_form
+msgid "Payments"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,help:account_payment_partner.field_res_partner_customer_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_users_customer_payment_mode_id
+msgid "Select the default payment mode for this customer."
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,help:account_payment_partner.field_res_partner_supplier_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_users_supplier_payment_mode_id
+msgid "Select the default payment mode for this supplier."
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_supplier_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_supplier_payment_mode_id
+msgid "Supplier Payment Mode"
+msgstr ""
+
+#. module: account_payment_partner
+#: code:addons/account_payment_partner/models/account_invoice.py:118
+#, python-format
+msgid ""
+"The company of the invoice %s does not match with that of the payment mode"
+msgstr ""
+
+#. module: account_payment_partner
+#: code:addons/account_payment_partner/models/account_payment_mode.py:17
+#, python-format
+msgid ""
+"You cannot change the Company. There exists at least one Invoice with this "
+"Payment Mode, already assigned to another Company."
+msgstr ""
+
+#. module: account_payment_partner
+#: code:addons/account_payment_partner/models/account_payment_mode.py:28
+#, python-format
+msgid ""
+"You cannot change the Company. There exists at least one Journal Item with "
+"this Payment Mode, already assigned to another Company."
+msgstr ""
diff --git a/account_payment_partner/i18n/de.po b/account_payment_partner/i18n/de.po
index 1bf0e8d9a..1f69befa9 100644
--- a/account_payment_partner/i18n/de.po
+++ b/account_payment_partner/i18n/de.po
@@ -3,16 +3,15 @@
# * account_payment_partner
#
# Translators:
-# Niki Waibel, 2016
-# Niki Waibel, 2016
+# OCA Transbot , 2017
msgid ""
msgstr ""
-"Project-Id-Version: bank-payment (10.0)\n"
+"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2017-05-01 14:55+0000\n"
-"PO-Revision-Date: 2016-11-01 20:49+0000\n"
-"Last-Translator: Niki Waibel\n"
-"Language-Team: German (http://www.transifex.com/oca/OCA-bank-payment-10-0/language/de/)\n"
+"POT-Creation-Date: 2017-11-23 03:38+0000\n"
+"PO-Revision-Date: 2017-11-23 03:38+0000\n"
+"Last-Translator: OCA Transbot , 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"
@@ -34,13 +33,20 @@ msgstr "Zahlungsmethode:"
msgid ""
"Activate this option if this payment method requires you to know the bank "
"account number of your customer or supplier."
-msgstr "Aktiviere diese Option, wenn mit dieser Zahlungsmethode die Bankkontonummer des Kunden oder Lieferanten bekannt sein muss."
+msgstr ""
+"Aktiviere diese Option, wenn mit dieser Zahlungsmethode die Bankkontonummer "
+"des Kunden oder Lieferanten bekannt sein muss."
#. module: account_payment_partner
#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_bank_account_required
msgid "Bank Account Required"
msgstr "Bankkonto erforderlich"
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_res_partner
+msgid "Contact"
+msgstr ""
+
#. module: account_payment_partner
#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_customer_payment_mode_id
#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_customer_payment_mode_id
@@ -58,9 +64,10 @@ msgid "Journal Item"
msgstr "Logbuch Eintrag"
#. module: account_payment_partner
-#: model:ir.model,name:account_payment_partner.model_res_partner
-msgid "Partner"
-msgstr "Partner"
+#: code:addons/account_payment_partner/tests/test_account_payment_partner.py:35
+#, python-format
+msgid "No Chart of Account Template has been defined !"
+msgstr ""
#. module: account_payment_partner
#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_payment_mode_id
@@ -69,6 +76,11 @@ msgstr "Partner"
msgid "Payment Mode"
msgstr "Zahlungsmodus"
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_account_payment_mode
+msgid "Payment Modes"
+msgstr "Zahlungsmodi"
+
#. module: account_payment_partner
#: model:ir.ui.view,arch_db:account_payment_partner.view_move_line_form
msgid "Payments"
@@ -91,3 +103,26 @@ msgstr "Wähle die standard Zahlungsmethode für diesen Lieferanten."
#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_supplier_payment_mode_id
msgid "Supplier Payment Mode"
msgstr "Zahlungsmethode des Lieferanten"
+
+#. module: account_payment_partner
+#: code:addons/account_payment_partner/models/account_invoice.py:118
+#, python-format
+msgid ""
+"The company of the invoice %s does not match with that of the payment mode"
+msgstr ""
+
+#. module: account_payment_partner
+#: code:addons/account_payment_partner/models/account_payment_mode.py:17
+#, python-format
+msgid ""
+"You cannot change the Company. There exists at least one Invoice with this "
+"Payment Mode, already assigned to another Company."
+msgstr ""
+
+#. module: account_payment_partner
+#: code:addons/account_payment_partner/models/account_payment_mode.py:28
+#, python-format
+msgid ""
+"You cannot change the Company. There exists at least one Journal Item with "
+"this Payment Mode, already assigned to another Company."
+msgstr ""
diff --git a/account_payment_partner/i18n/es.po b/account_payment_partner/i18n/es.po
index 71c086681..bd7a14e49 100644
--- a/account_payment_partner/i18n/es.po
+++ b/account_payment_partner/i18n/es.po
@@ -3,16 +3,15 @@
# * account_payment_partner
#
# Translators:
-# OCA Transbot , 2016
-# Pedro M. Baeza , 2016
+# OCA Transbot , 2017
msgid ""
msgstr ""
-"Project-Id-Version: bank-payment (10.0)\n"
+"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2017-05-01 14:55+0000\n"
-"PO-Revision-Date: 2016-12-27 12:50+0000\n"
-"Last-Translator: Pedro M. Baeza \n"
-"Language-Team: Spanish (http://www.transifex.com/oca/OCA-bank-payment-10-0/language/es/)\n"
+"POT-Creation-Date: 2017-11-23 03:38+0000\n"
+"PO-Revision-Date: 2017-11-23 03:38+0000\n"
+"Last-Translator: OCA Transbot , 2017\n"
+"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
@@ -34,13 +33,20 @@ msgstr "Modo de pago:"
msgid ""
"Activate this option if this payment method requires you to know the bank "
"account number of your customer or supplier."
-msgstr "Activa esta opción si este método de pago debe requerirte informar el número de cuenta bancaria de tu cliente o proveedor"
+msgstr ""
+"Activa esta opción si este método de pago debe requerirte informar el número"
+" de cuenta bancaria de tu cliente o proveedor"
#. module: account_payment_partner
#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_bank_account_required
msgid "Bank Account Required"
msgstr "Cuenta bancaria requerida"
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_res_partner
+msgid "Contact"
+msgstr ""
+
#. module: account_payment_partner
#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_customer_payment_mode_id
#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_customer_payment_mode_id
@@ -58,9 +64,10 @@ msgid "Journal Item"
msgstr "Apunte contable"
#. module: account_payment_partner
-#: model:ir.model,name:account_payment_partner.model_res_partner
-msgid "Partner"
-msgstr "Empresa"
+#: code:addons/account_payment_partner/tests/test_account_payment_partner.py:35
+#, python-format
+msgid "No Chart of Account Template has been defined !"
+msgstr ""
#. module: account_payment_partner
#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_payment_mode_id
@@ -69,6 +76,11 @@ msgstr "Empresa"
msgid "Payment Mode"
msgstr "Modo de pago"
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_account_payment_mode
+msgid "Payment Modes"
+msgstr "Modos de pago"
+
#. module: account_payment_partner
#: model:ir.ui.view,arch_db:account_payment_partner.view_move_line_form
msgid "Payments"
@@ -78,16 +90,43 @@ msgstr "Pagos"
#: model:ir.model.fields,help:account_payment_partner.field_res_partner_customer_payment_mode_id
#: model:ir.model.fields,help:account_payment_partner.field_res_users_customer_payment_mode_id
msgid "Select the default payment mode for this customer."
-msgstr "Seleccione el modo de pago por defecto cuando esta empresa actúa como cliente."
+msgstr ""
+"Seleccione el modo de pago por defecto cuando esta empresa actúa como "
+"cliente."
#. module: account_payment_partner
#: model:ir.model.fields,help:account_payment_partner.field_res_partner_supplier_payment_mode_id
#: model:ir.model.fields,help:account_payment_partner.field_res_users_supplier_payment_mode_id
msgid "Select the default payment mode for this supplier."
-msgstr "Seleccione el modo de pago por defecto cuando esta empresa actúa como proveedor."
+msgstr ""
+"Seleccione el modo de pago por defecto cuando esta empresa actúa como "
+"proveedor."
#. module: account_payment_partner
#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_supplier_payment_mode_id
#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_supplier_payment_mode_id
msgid "Supplier Payment Mode"
msgstr "Modo de pago de proveedor"
+
+#. module: account_payment_partner
+#: code:addons/account_payment_partner/models/account_invoice.py:118
+#, python-format
+msgid ""
+"The company of the invoice %s does not match with that of the payment mode"
+msgstr ""
+
+#. module: account_payment_partner
+#: code:addons/account_payment_partner/models/account_payment_mode.py:17
+#, python-format
+msgid ""
+"You cannot change the Company. There exists at least one Invoice with this "
+"Payment Mode, already assigned to another Company."
+msgstr ""
+
+#. module: account_payment_partner
+#: code:addons/account_payment_partner/models/account_payment_mode.py:28
+#, python-format
+msgid ""
+"You cannot change the Company. There exists at least one Journal Item with "
+"this Payment Mode, already assigned to another Company."
+msgstr ""
diff --git a/account_payment_partner/i18n/fr.po b/account_payment_partner/i18n/fr.po
index 48e07c7e6..d06657fd7 100644
--- a/account_payment_partner/i18n/fr.po
+++ b/account_payment_partner/i18n/fr.po
@@ -3,14 +3,16 @@
# * account_payment_partner
#
# Translators:
-# OCA Transbot , 2016
+# OCA Transbot , 2017
+# Quentin THEURET , 2018
+# Nicolas JEUDY , 2018
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 9.0c\n"
+"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2016-09-10 16:16+0000\n"
-"PO-Revision-Date: 2016-09-10 16:16+0000\n"
-"Last-Translator: OCA Transbot , 2016\n"
+"POT-Creation-Date: 2018-02-10 02:10+0000\n"
+"PO-Revision-Date: 2018-02-10 02:10+0000\n"
+"Last-Translator: Nicolas JEUDY , 2018\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"
@@ -21,12 +23,12 @@ msgstr ""
#. module: account_payment_partner
#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
msgid "Bank Account:"
-msgstr ""
+msgstr "Compte bancaire:"
#. module: account_payment_partner
#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
msgid "Payment Mode:"
-msgstr ""
+msgstr "Mode de paiement :"
#. module: account_payment_partner
#: model:ir.model.fields,help:account_payment_partner.field_account_invoice_bank_account_required
@@ -34,31 +36,40 @@ msgid ""
"Activate this option if this payment method requires you to know the bank "
"account number of your customer or supplier."
msgstr ""
+"Activez cette option si ce mode de paiement exige que vous connaissiez le "
+"numéro de compte bancaire de votre client ou fournisseur."
#. module: account_payment_partner
#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_bank_account_required
msgid "Bank Account Required"
-msgstr ""
+msgstr "Compte bancaire requis"
+
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_res_partner
+msgid "Contact"
+msgstr "Contacte"
#. module: account_payment_partner
#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_customer_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_customer_payment_mode_id
msgid "Customer Payment Mode"
-msgstr ""
+msgstr "Mode de paiement client"
#. module: account_payment_partner
#: model:ir.model,name:account_payment_partner.model_account_invoice
msgid "Invoice"
-msgstr ""
+msgstr "Facture"
#. module: account_payment_partner
#: model:ir.model,name:account_payment_partner.model_account_move_line
msgid "Journal Item"
-msgstr ""
+msgstr "Élément de journal"
#. module: account_payment_partner
-#: model:ir.model,name:account_payment_partner.model_res_partner
-msgid "Partner"
-msgstr "Partenaire"
+#: code:addons/account_payment_partner/tests/test_account_payment_partner.py:35
+#, python-format
+msgid "No Chart of Account Template has been defined !"
+msgstr "Aucun modèle de plan comptable n'a été défini !"
#. module: account_payment_partner
#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_payment_mode_id
@@ -67,22 +78,58 @@ msgstr "Partenaire"
msgid "Payment Mode"
msgstr "Mode de paiement"
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_account_payment_mode
+msgid "Payment Modes"
+msgstr "Mode de paiement"
+
#. module: account_payment_partner
#: model:ir.ui.view,arch_db:account_payment_partner.view_move_line_form
msgid "Payments"
-msgstr ""
+msgstr "Règlements"
#. module: account_payment_partner
#: model:ir.model.fields,help:account_payment_partner.field_res_partner_customer_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_users_customer_payment_mode_id
msgid "Select the default payment mode for this customer."
-msgstr ""
+msgstr "Sélectionnez le mode de paiement par défaut pour ce client."
#. module: account_payment_partner
#: model:ir.model.fields,help:account_payment_partner.field_res_partner_supplier_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_users_supplier_payment_mode_id
msgid "Select the default payment mode for this supplier."
-msgstr ""
+msgstr "Sélectionnez le mode de paiement par défaut pour ce fournisseur."
#. module: account_payment_partner
#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_supplier_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_supplier_payment_mode_id
msgid "Supplier Payment Mode"
+msgstr "Mode de règlement fournisseur"
+
+#. module: account_payment_partner
+#: code:addons/account_payment_partner/models/account_invoice.py:118
+#, python-format
+msgid ""
+"The company of the invoice %s does not match with that of the payment mode"
msgstr ""
+"La société de la facture %s ne correspond pas à celle du mode de paiement"
+
+#. module: account_payment_partner
+#: code:addons/account_payment_partner/models/account_payment_mode.py:17
+#, python-format
+msgid ""
+"You cannot change the Company. There exists at least one Invoice with this "
+"Payment Mode, already assigned to another Company."
+msgstr ""
+"Vous ne pouvez pas modifier la Société. Il existe au moins une facture avec "
+"ce mode de paiement, déjà affectée à une autre société."
+
+#. module: account_payment_partner
+#: code:addons/account_payment_partner/models/account_payment_mode.py:28
+#, python-format
+msgid ""
+"You cannot change the Company. There exists at least one Journal Item with "
+"this Payment Mode, already assigned to another Company."
+msgstr ""
+"Vous ne pouvez pas modifier la Société. Il existe au moins un poste "
+"journalier avec ce mode de paiement, déjà affecté à une autre société."
diff --git a/account_payment_partner/i18n/hr.po b/account_payment_partner/i18n/hr.po
index 78d4bd9cc..112067f0c 100644
--- a/account_payment_partner/i18n/hr.po
+++ b/account_payment_partner/i18n/hr.po
@@ -3,14 +3,15 @@
# * account_payment_partner
#
# Translators:
+# OCA Transbot , 2017
msgid ""
msgstr ""
-"Project-Id-Version: bank-payment (10.0)\n"
+"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2017-06-03 00:10+0000\n"
-"PO-Revision-Date: 2016-10-19 23:47+0000\n"
-"Last-Translator: <>\n"
-"Language-Team: Croatian (http://www.transifex.com/oca/OCA-bank-payment-10-0/language/hr/)\n"
+"POT-Creation-Date: 2017-11-23 03:38+0000\n"
+"PO-Revision-Date: 2017-11-23 03:38+0000\n"
+"Last-Translator: OCA Transbot , 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"
@@ -39,6 +40,11 @@ msgstr ""
msgid "Bank Account Required"
msgstr "Bankovni račun je obavezan"
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_res_partner
+msgid "Contact"
+msgstr ""
+
#. module: account_payment_partner
#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_customer_payment_mode_id
#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_customer_payment_mode_id
@@ -56,8 +62,9 @@ msgid "Journal Item"
msgstr ""
#. module: account_payment_partner
-#: model:ir.model,name:account_payment_partner.model_res_partner
-msgid "Partner"
+#: code:addons/account_payment_partner/tests/test_account_payment_partner.py:35
+#, python-format
+msgid "No Chart of Account Template has been defined !"
msgstr ""
#. module: account_payment_partner
@@ -67,6 +74,11 @@ msgstr ""
msgid "Payment Mode"
msgstr ""
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_account_payment_mode
+msgid "Payment Modes"
+msgstr "Modeli plaćanja"
+
#. module: account_payment_partner
#: model:ir.ui.view,arch_db:account_payment_partner.view_move_line_form
msgid "Payments"
@@ -89,3 +101,26 @@ msgstr ""
#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_supplier_payment_mode_id
msgid "Supplier Payment Mode"
msgstr ""
+
+#. module: account_payment_partner
+#: code:addons/account_payment_partner/models/account_invoice.py:118
+#, python-format
+msgid ""
+"The company of the invoice %s does not match with that of the payment mode"
+msgstr ""
+
+#. module: account_payment_partner
+#: code:addons/account_payment_partner/models/account_payment_mode.py:17
+#, python-format
+msgid ""
+"You cannot change the Company. There exists at least one Invoice with this "
+"Payment Mode, already assigned to another Company."
+msgstr ""
+
+#. module: account_payment_partner
+#: code:addons/account_payment_partner/models/account_payment_mode.py:28
+#, python-format
+msgid ""
+"You cannot change the Company. There exists at least one Journal Item with "
+"this Payment Mode, already assigned to another Company."
+msgstr ""
diff --git a/account_payment_partner/i18n/nl.po b/account_payment_partner/i18n/nl.po
index 47ccf4f2b..211e0689e 100644
--- a/account_payment_partner/i18n/nl.po
+++ b/account_payment_partner/i18n/nl.po
@@ -3,16 +3,15 @@
# * account_payment_partner
#
# Translators:
-# Erwin van der Ploeg , 2016
-# OCA Transbot , 2016
+# OCA Transbot , 2017
msgid ""
msgstr ""
-"Project-Id-Version: bank-payment (10.0)\n"
+"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2017-05-01 14:55+0000\n"
-"PO-Revision-Date: 2016-10-19 23:47+0000\n"
-"Last-Translator: OCA Transbot \n"
-"Language-Team: Dutch (http://www.transifex.com/oca/OCA-bank-payment-10-0/language/nl/)\n"
+"POT-Creation-Date: 2017-11-23 03:38+0000\n"
+"PO-Revision-Date: 2017-11-23 03:38+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"
@@ -34,13 +33,20 @@ msgstr "Betaalmode:"
msgid ""
"Activate this option if this payment method requires you to know the bank "
"account number of your customer or supplier."
-msgstr "Activeer deze optie als de betaalwijze verwacht dat u het bankrekeningnummer van uw klant of leverancier kent."
+msgstr ""
+"Activeer deze optie als de betaalwijze verwacht dat u het bankrekeningnummer"
+" van uw klant of leverancier kent."
#. module: account_payment_partner
#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_bank_account_required
msgid "Bank Account Required"
msgstr "Bankrekening verplicht"
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_res_partner
+msgid "Contact"
+msgstr ""
+
#. module: account_payment_partner
#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_customer_payment_mode_id
#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_customer_payment_mode_id
@@ -58,9 +64,10 @@ msgid "Journal Item"
msgstr "Boekingsregel"
#. module: account_payment_partner
-#: model:ir.model,name:account_payment_partner.model_res_partner
-msgid "Partner"
-msgstr "Relatie"
+#: code:addons/account_payment_partner/tests/test_account_payment_partner.py:35
+#, python-format
+msgid "No Chart of Account Template has been defined !"
+msgstr ""
#. module: account_payment_partner
#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_payment_mode_id
@@ -69,6 +76,11 @@ msgstr "Relatie"
msgid "Payment Mode"
msgstr "Betaalwijze"
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_account_payment_mode
+msgid "Payment Modes"
+msgstr "Betaalwijze"
+
#. module: account_payment_partner
#: model:ir.ui.view,arch_db:account_payment_partner.view_move_line_form
msgid "Payments"
@@ -91,3 +103,26 @@ msgstr "Selecteer de standaard betaalwijze voor deze leverancier."
#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_supplier_payment_mode_id
msgid "Supplier Payment Mode"
msgstr "Betaalwijze leverancier"
+
+#. module: account_payment_partner
+#: code:addons/account_payment_partner/models/account_invoice.py:118
+#, python-format
+msgid ""
+"The company of the invoice %s does not match with that of the payment mode"
+msgstr ""
+
+#. module: account_payment_partner
+#: code:addons/account_payment_partner/models/account_payment_mode.py:17
+#, python-format
+msgid ""
+"You cannot change the Company. There exists at least one Invoice with this "
+"Payment Mode, already assigned to another Company."
+msgstr ""
+
+#. module: account_payment_partner
+#: code:addons/account_payment_partner/models/account_payment_mode.py:28
+#, python-format
+msgid ""
+"You cannot change the Company. There exists at least one Journal Item with "
+"this Payment Mode, already assigned to another Company."
+msgstr ""
diff --git a/account_payment_partner/i18n/pt_BR.po b/account_payment_partner/i18n/pt_BR.po
index 065892bb0..ba790b008 100644
--- a/account_payment_partner/i18n/pt_BR.po
+++ b/account_payment_partner/i18n/pt_BR.po
@@ -3,15 +3,15 @@
# * account_payment_partner
#
# Translators:
-# OCA Transbot , 2016
+# OCA Transbot , 2017
msgid ""
msgstr ""
-"Project-Id-Version: bank-payment (10.0)\n"
+"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2017-05-01 14:55+0000\n"
-"PO-Revision-Date: 2016-10-19 23:47+0000\n"
-"Last-Translator: OCA Transbot \n"
-"Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/OCA-bank-payment-10-0/language/pt_BR/)\n"
+"POT-Creation-Date: 2017-11-23 03:38+0000\n"
+"PO-Revision-Date: 2017-11-23 03:38+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"
@@ -40,6 +40,11 @@ msgstr ""
msgid "Bank Account Required"
msgstr ""
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_res_partner
+msgid "Contact"
+msgstr ""
+
#. module: account_payment_partner
#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_customer_payment_mode_id
#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_customer_payment_mode_id
@@ -57,9 +62,10 @@ msgid "Journal Item"
msgstr ""
#. module: account_payment_partner
-#: model:ir.model,name:account_payment_partner.model_res_partner
-msgid "Partner"
-msgstr "Parceiro"
+#: code:addons/account_payment_partner/tests/test_account_payment_partner.py:35
+#, python-format
+msgid "No Chart of Account Template has been defined !"
+msgstr ""
#. module: account_payment_partner
#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_payment_mode_id
@@ -68,6 +74,11 @@ msgstr "Parceiro"
msgid "Payment Mode"
msgstr "Modo de Pagamento"
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_account_payment_mode
+msgid "Payment Modes"
+msgstr ""
+
#. module: account_payment_partner
#: model:ir.ui.view,arch_db:account_payment_partner.view_move_line_form
msgid "Payments"
@@ -90,3 +101,26 @@ msgstr "Selecione o modo de pagamento padrão para este fornecedor."
#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_supplier_payment_mode_id
msgid "Supplier Payment Mode"
msgstr "Modo de Pagamento do Fornecedor"
+
+#. module: account_payment_partner
+#: code:addons/account_payment_partner/models/account_invoice.py:118
+#, python-format
+msgid ""
+"The company of the invoice %s does not match with that of the payment mode"
+msgstr ""
+
+#. module: account_payment_partner
+#: code:addons/account_payment_partner/models/account_payment_mode.py:17
+#, python-format
+msgid ""
+"You cannot change the Company. There exists at least one Invoice with this "
+"Payment Mode, already assigned to another Company."
+msgstr ""
+
+#. module: account_payment_partner
+#: code:addons/account_payment_partner/models/account_payment_mode.py:28
+#, python-format
+msgid ""
+"You cannot change the Company. There exists at least one Journal Item with "
+"this Payment Mode, already assigned to another Company."
+msgstr ""
diff --git a/account_payment_partner/i18n/sl.po b/account_payment_partner/i18n/sl.po
index 8ec6dcc80..9bd46dd3b 100644
--- a/account_payment_partner/i18n/sl.po
+++ b/account_payment_partner/i18n/sl.po
@@ -3,15 +3,15 @@
# * account_payment_partner
#
# Translators:
-# OCA Transbot , 2016
+# OCA Transbot , 2017
msgid ""
msgstr ""
-"Project-Id-Version: bank-payment (10.0)\n"
+"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2017-05-01 14:55+0000\n"
-"PO-Revision-Date: 2016-10-19 23:47+0000\n"
-"Last-Translator: OCA Transbot \n"
-"Language-Team: Slovenian (http://www.transifex.com/oca/OCA-bank-payment-10-0/language/sl/)\n"
+"POT-Creation-Date: 2017-11-23 03:38+0000\n"
+"PO-Revision-Date: 2017-11-23 03:38+0000\n"
+"Last-Translator: OCA Transbot , 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"
@@ -40,6 +40,11 @@ msgstr ""
msgid "Bank Account Required"
msgstr ""
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_res_partner
+msgid "Contact"
+msgstr ""
+
#. module: account_payment_partner
#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_customer_payment_mode_id
#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_customer_payment_mode_id
@@ -57,9 +62,10 @@ msgid "Journal Item"
msgstr ""
#. module: account_payment_partner
-#: model:ir.model,name:account_payment_partner.model_res_partner
-msgid "Partner"
-msgstr "Partner"
+#: code:addons/account_payment_partner/tests/test_account_payment_partner.py:35
+#, python-format
+msgid "No Chart of Account Template has been defined !"
+msgstr ""
#. module: account_payment_partner
#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_payment_mode_id
@@ -68,6 +74,11 @@ msgstr "Partner"
msgid "Payment Mode"
msgstr "Metoda plačila"
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_account_payment_mode
+msgid "Payment Modes"
+msgstr ""
+
#. module: account_payment_partner
#: model:ir.ui.view,arch_db:account_payment_partner.view_move_line_form
msgid "Payments"
@@ -90,3 +101,26 @@ msgstr "Izbira privzete metode plačila za tega dobavitelja."
#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_supplier_payment_mode_id
msgid "Supplier Payment Mode"
msgstr "Metoda plačila dobavitelja"
+
+#. module: account_payment_partner
+#: code:addons/account_payment_partner/models/account_invoice.py:118
+#, python-format
+msgid ""
+"The company of the invoice %s does not match with that of the payment mode"
+msgstr ""
+
+#. module: account_payment_partner
+#: code:addons/account_payment_partner/models/account_payment_mode.py:17
+#, python-format
+msgid ""
+"You cannot change the Company. There exists at least one Invoice with this "
+"Payment Mode, already assigned to another Company."
+msgstr ""
+
+#. module: account_payment_partner
+#: code:addons/account_payment_partner/models/account_payment_mode.py:28
+#, python-format
+msgid ""
+"You cannot change the Company. There exists at least one Journal Item with "
+"this Payment Mode, already assigned to another Company."
+msgstr ""
From f7c9f9973733444022d66521b2179cdae0ae8f00 Mon Sep 17 00:00:00 2001
From: oihane
Date: Wed, 17 Jan 2018 22:47:37 +0100
Subject: [PATCH 23/58] [FIX] account_payment_partner: impossible to define if
there was no company in partner (#438)
---
account_payment_partner/__manifest__.py | 2 +-
account_payment_partner/models/res_partner.py | 6 ++----
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/account_payment_partner/__manifest__.py b/account_payment_partner/__manifest__.py
index 2d29082d2..0d7b8fa79 100644
--- a/account_payment_partner/__manifest__.py
+++ b/account_payment_partner/__manifest__.py
@@ -5,7 +5,7 @@
{
'name': 'Account Payment Partner',
- 'version': '11.0.1.0.0',
+ 'version': '11.0.1.1.0',
'category': 'Banking addons',
'license': 'AGPL-3',
'summary': 'Adds payment mode on partners and invoices',
diff --git a/account_payment_partner/models/res_partner.py b/account_payment_partner/models/res_partner.py
index 246c8739c..0b6585aa0 100644
--- a/account_payment_partner/models/res_partner.py
+++ b/account_payment_partner/models/res_partner.py
@@ -13,14 +13,12 @@ class ResPartner(models.Model):
supplier_payment_mode_id = fields.Many2one(
'account.payment.mode', string='Supplier Payment Mode',
company_dependent=True,
- domain="[('payment_type', '=', 'outbound'), "
- "('company_id', '=', company_id)]",
+ domain="[('payment_type', '=', 'outbound')]",
help="Select the default payment mode for this supplier.")
customer_payment_mode_id = fields.Many2one(
'account.payment.mode', string='Customer Payment Mode',
company_dependent=True,
- domain="[('payment_type', '=', 'inbound'), "
- "('company_id', '=', company_id)]",
+ domain="[('payment_type', '=', 'inbound')]",
help="Select the default payment mode for this customer.")
@api.model
From a49015ea9297a81781643e87e608ea0d39155945 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fran=C3=A7ois=20Honor=C3=A9?=
Date: Mon, 12 Feb 2018 11:14:59 +0100
Subject: [PATCH 24/58] [FIX] Fix issue when the bank_id of partner_bank_id is
not set (field not mandatory) and create a traceback for the user
Use t-if
---
account_payment_partner/__manifest__.py | 2 +-
account_payment_partner/views/report_invoice.xml | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/account_payment_partner/__manifest__.py b/account_payment_partner/__manifest__.py
index 0d7b8fa79..3cd3f9d79 100644
--- a/account_payment_partner/__manifest__.py
+++ b/account_payment_partner/__manifest__.py
@@ -5,7 +5,7 @@
{
'name': 'Account Payment Partner',
- 'version': '11.0.1.1.0',
+ 'version': '11.0.1.2.0',
'category': 'Banking addons',
'license': 'AGPL-3',
'summary': 'Adds payment mode on partners and invoices',
diff --git a/account_payment_partner/views/report_invoice.xml b/account_payment_partner/views/report_invoice.xml
index 068dbf672..3a25d8c13 100644
--- a/account_payment_partner/views/report_invoice.xml
+++ b/account_payment_partner/views/report_invoice.xml
@@ -9,6 +9,9 @@
Bank Account:
+
+
+
From a8046cb3b5d14012b61783bf53029a8aeb5da5e4 Mon Sep 17 00:00:00 2001
From: Andrea
Date: Mon, 22 Jan 2018 13:29:16 +0100
Subject: [PATCH 25/58] [11.0][FIX] account_payment_partner: onchange if more
than one bank
---
account_payment_partner/__manifest__.py | 2 +-
account_payment_partner/models/account_invoice.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/account_payment_partner/__manifest__.py b/account_payment_partner/__manifest__.py
index 3cd3f9d79..403803b29 100644
--- a/account_payment_partner/__manifest__.py
+++ b/account_payment_partner/__manifest__.py
@@ -5,7 +5,7 @@
{
'name': 'Account Payment Partner',
- 'version': '11.0.1.2.0',
+ 'version': '11.0.1.2.1',
'category': 'Banking addons',
'license': 'AGPL-3',
'summary': 'Adds payment mode on partners and invoices',
diff --git a/account_payment_partner/models/account_invoice.py b/account_payment_partner/models/account_invoice.py
index d78eb5079..4d68f47bc 100644
--- a/account_payment_partner/models/account_invoice.py
+++ b/account_payment_partner/models/account_invoice.py
@@ -36,7 +36,7 @@ class AccountInvoice(models.Model):
self.partner_bank_id = \
self.commercial_partner_id.bank_ids.filtered(
lambda b: b.company_id == self.company_id or not
- b.company_id)
+ b.company_id)[:1]
else:
self.partner_bank_id = False
From 5cb20dd568b5fc56c1efd577e9f9979acaa529a0 Mon Sep 17 00:00:00 2001
From: "Adrien Peiffer (ACSONE)"
Date: Mon, 4 Dec 2017 14:15:26 +0100
Subject: [PATCH 26/58] [CHG] account_payment_partner: Prevent to delete bank
account linked on invoices.
---
account_payment_partner/models/account_invoice.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/account_payment_partner/models/account_invoice.py b/account_payment_partner/models/account_invoice.py
index 4d68f47bc..71c415e56 100644
--- a/account_payment_partner/models/account_invoice.py
+++ b/account_payment_partner/models/account_invoice.py
@@ -17,6 +17,7 @@ class AccountInvoice(models.Model):
bank_account_required = fields.Boolean(
related='payment_mode_id.payment_method_id.bank_account_required',
readonly=True)
+ partner_bank_id = fields.Many2one(ondelete='restrict')
@api.onchange('partner_id', 'company_id')
def _onchange_partner_id(self):
From 89c228cbb47bb19bf0b2462f6b6e14632b66279a Mon Sep 17 00:00:00 2001
From: OCA Transbot
Date: Sat, 26 May 2018 03:10:40 +0200
Subject: [PATCH 27/58] OCA Transbot updated translations from Transifex
---
.../i18n/account_payment_partner.pot | 115 ++++++++++++++++++
account_payment_partner/i18n/ca.po | 6 +-
account_payment_partner/i18n/da_DK.po | 9 +-
account_payment_partner/i18n/de.po | 6 +-
account_payment_partner/i18n/es.po | 10 +-
account_payment_partner/i18n/fr.po | 10 +-
account_payment_partner/i18n/hr.po | 9 +-
account_payment_partner/i18n/nb_NO.po | 50 +++++++-
account_payment_partner/i18n/nl.po | 10 +-
account_payment_partner/i18n/pt_BR.po | 9 +-
account_payment_partner/i18n/sl.po | 9 +-
11 files changed, 201 insertions(+), 42 deletions(-)
create mode 100644 account_payment_partner/i18n/account_payment_partner.pot
diff --git a/account_payment_partner/i18n/account_payment_partner.pot b/account_payment_partner/i18n/account_payment_partner.pot
new file mode 100644
index 000000000..12f3f19b2
--- /dev/null
+++ b/account_payment_partner/i18n/account_payment_partner.pot
@@ -0,0 +1,115 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * account_payment_partner
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Odoo Server 11.0\n"
+"Report-Msgid-Bugs-To: \n"
+"Last-Translator: <>\n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Plural-Forms: \n"
+
+#. module: account_payment_partner
+#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
+msgid "Bank Account:"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
+msgid "Payment Mode:"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,help:account_payment_partner.field_account_invoice_bank_account_required
+msgid "Activate this option if this payment method requires you to know the bank account number of your customer or supplier."
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_bank_account_required
+msgid "Bank Account Required"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_res_partner
+msgid "Contact"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_customer_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_customer_payment_mode_id
+msgid "Customer Payment Mode"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_account_invoice
+msgid "Invoice"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_account_move_line
+msgid "Journal Item"
+msgstr ""
+
+#. module: account_payment_partner
+#: code:addons/account_payment_partner/tests/test_account_payment_partner.py:35
+#, python-format
+msgid "No Chart of Account Template has been defined !"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_move_line_payment_mode_id
+#: model:ir.ui.view,arch_db:account_payment_partner.view_account_invoice_filter
+msgid "Payment Mode"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_account_payment_mode
+msgid "Payment Modes"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.ui.view,arch_db:account_payment_partner.view_move_line_form
+msgid "Payments"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,help:account_payment_partner.field_res_partner_customer_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_users_customer_payment_mode_id
+msgid "Select the default payment mode for this customer."
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,help:account_payment_partner.field_res_partner_supplier_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_users_supplier_payment_mode_id
+msgid "Select the default payment mode for this supplier."
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_supplier_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_supplier_payment_mode_id
+msgid "Supplier Payment Mode"
+msgstr ""
+
+#. module: account_payment_partner
+#: code:addons/account_payment_partner/models/account_invoice.py:119
+#, python-format
+msgid "The company of the invoice %s does not match with that of the payment mode"
+msgstr ""
+
+#. module: account_payment_partner
+#: code:addons/account_payment_partner/models/account_payment_mode.py:17
+#, python-format
+msgid "You cannot change the Company. There exists at least one Invoice with this Payment Mode, already assigned to another Company."
+msgstr ""
+
+#. module: account_payment_partner
+#: code:addons/account_payment_partner/models/account_payment_mode.py:28
+#, python-format
+msgid "You cannot change the Company. There exists at least one Journal Item with this Payment Mode, already assigned to another Company."
+msgstr ""
+
diff --git a/account_payment_partner/i18n/ca.po b/account_payment_partner/i18n/ca.po
index 039a564a7..49c190d6c 100644
--- a/account_payment_partner/i18n/ca.po
+++ b/account_payment_partner/i18n/ca.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_payment_partner
-#
+#
# Translators:
# OCA Transbot , 2018
msgid ""
@@ -12,10 +12,10 @@ msgstr ""
"PO-Revision-Date: 2018-02-02 03:43+0000\n"
"Last-Translator: OCA Transbot , 2018\n"
"Language-Team: Catalan (https://www.transifex.com/oca/teams/23907/ca/)\n"
+"Language: 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: account_payment_partner
@@ -103,7 +103,7 @@ msgid "Supplier Payment Mode"
msgstr ""
#. module: account_payment_partner
-#: code:addons/account_payment_partner/models/account_invoice.py:118
+#: code:addons/account_payment_partner/models/account_invoice.py:119
#, python-format
msgid ""
"The company of the invoice %s does not match with that of the payment mode"
diff --git a/account_payment_partner/i18n/da_DK.po b/account_payment_partner/i18n/da_DK.po
index 65ef580b6..4828a7c8c 100644
--- a/account_payment_partner/i18n/da_DK.po
+++ b/account_payment_partner/i18n/da_DK.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_payment_partner
-#
+#
# Translators:
# OCA Transbot , 2018
msgid ""
@@ -11,11 +11,12 @@ msgstr ""
"POT-Creation-Date: 2018-02-02 03:43+0000\n"
"PO-Revision-Date: 2018-02-02 03:43+0000\n"
"Last-Translator: OCA Transbot , 2018\n"
-"Language-Team: Danish (Denmark) (https://www.transifex.com/oca/teams/23907/da_DK/)\n"
+"Language-Team: Danish (Denmark) (https://www.transifex.com/oca/teams/23907/"
+"da_DK/)\n"
+"Language: da_DK\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
-"Language: da_DK\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: account_payment_partner
@@ -103,7 +104,7 @@ msgid "Supplier Payment Mode"
msgstr ""
#. module: account_payment_partner
-#: code:addons/account_payment_partner/models/account_invoice.py:118
+#: code:addons/account_payment_partner/models/account_invoice.py:119
#, python-format
msgid ""
"The company of the invoice %s does not match with that of the payment mode"
diff --git a/account_payment_partner/i18n/de.po b/account_payment_partner/i18n/de.po
index 1f69befa9..90e0f89bc 100644
--- a/account_payment_partner/i18n/de.po
+++ b/account_payment_partner/i18n/de.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_payment_partner
-#
+#
# Translators:
# OCA Transbot , 2017
msgid ""
@@ -12,10 +12,10 @@ msgstr ""
"PO-Revision-Date: 2017-11-23 03:38+0000\n"
"Last-Translator: OCA Transbot , 2017\n"
"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n"
+"Language: 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: account_payment_partner
@@ -105,7 +105,7 @@ msgid "Supplier Payment Mode"
msgstr "Zahlungsmethode des Lieferanten"
#. module: account_payment_partner
-#: code:addons/account_payment_partner/models/account_invoice.py:118
+#: code:addons/account_payment_partner/models/account_invoice.py:119
#, python-format
msgid ""
"The company of the invoice %s does not match with that of the payment mode"
diff --git a/account_payment_partner/i18n/es.po b/account_payment_partner/i18n/es.po
index bd7a14e49..ce9afa051 100644
--- a/account_payment_partner/i18n/es.po
+++ b/account_payment_partner/i18n/es.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_payment_partner
-#
+#
# Translators:
# OCA Transbot , 2017
msgid ""
@@ -12,10 +12,10 @@ msgstr ""
"PO-Revision-Date: 2017-11-23 03:38+0000\n"
"Last-Translator: OCA Transbot , 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: \n"
-"Language: es\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: account_payment_partner
@@ -34,8 +34,8 @@ msgid ""
"Activate this option if this payment method requires you to know the bank "
"account number of your customer or supplier."
msgstr ""
-"Activa esta opción si este método de pago debe requerirte informar el número"
-" de cuenta bancaria de tu cliente o proveedor"
+"Activa esta opción si este método de pago debe requerirte informar el número "
+"de cuenta bancaria de tu cliente o proveedor"
#. module: account_payment_partner
#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_bank_account_required
@@ -109,7 +109,7 @@ msgid "Supplier Payment Mode"
msgstr "Modo de pago de proveedor"
#. module: account_payment_partner
-#: code:addons/account_payment_partner/models/account_invoice.py:118
+#: code:addons/account_payment_partner/models/account_invoice.py:119
#, python-format
msgid ""
"The company of the invoice %s does not match with that of the payment mode"
diff --git a/account_payment_partner/i18n/fr.po b/account_payment_partner/i18n/fr.po
index d06657fd7..c4ab4aaa2 100644
--- a/account_payment_partner/i18n/fr.po
+++ b/account_payment_partner/i18n/fr.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_payment_partner
-#
+#
# Translators:
# OCA Transbot , 2017
# Quentin THEURET , 2018
@@ -10,14 +10,14 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2018-02-10 02:10+0000\n"
-"PO-Revision-Date: 2018-02-10 02:10+0000\n"
+"POT-Creation-Date: 2018-05-23 11:14+0000\n"
+"PO-Revision-Date: 2018-05-23 11:14+0000\n"
"Last-Translator: Nicolas JEUDY , 2018\n"
"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n"
+"Language: 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: account_payment_partner
@@ -107,7 +107,7 @@ msgid "Supplier Payment Mode"
msgstr "Mode de règlement fournisseur"
#. module: account_payment_partner
-#: code:addons/account_payment_partner/models/account_invoice.py:118
+#: code:addons/account_payment_partner/models/account_invoice.py:119
#, python-format
msgid ""
"The company of the invoice %s does not match with that of the payment mode"
diff --git a/account_payment_partner/i18n/hr.po b/account_payment_partner/i18n/hr.po
index 112067f0c..189a4b6da 100644
--- a/account_payment_partner/i18n/hr.po
+++ b/account_payment_partner/i18n/hr.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_payment_partner
-#
+#
# Translators:
# OCA Transbot , 2017
msgid ""
@@ -12,11 +12,12 @@ msgstr ""
"PO-Revision-Date: 2017-11-23 03:38+0000\n"
"Last-Translator: OCA Transbot , 2017\n"
"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n"
+"Language: 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"
+"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_payment_partner
#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
@@ -103,7 +104,7 @@ msgid "Supplier Payment Mode"
msgstr ""
#. module: account_payment_partner
-#: code:addons/account_payment_partner/models/account_invoice.py:118
+#: code:addons/account_payment_partner/models/account_invoice.py:119
#, python-format
msgid ""
"The company of the invoice %s does not match with that of the payment mode"
diff --git a/account_payment_partner/i18n/nb_NO.po b/account_payment_partner/i18n/nb_NO.po
index a140ee50a..33d7e9e73 100644
--- a/account_payment_partner/i18n/nb_NO.po
+++ b/account_payment_partner/i18n/nb_NO.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_payment_partner
-#
+#
# Translators:
# Imre Kristoffer Eilertsen , 2016
msgid ""
@@ -11,11 +11,12 @@ msgstr ""
"POT-Creation-Date: 2016-07-30 07:37+0000\n"
"PO-Revision-Date: 2016-07-30 07:37+0000\n"
"Last-Translator: Imre Kristoffer Eilertsen , 2016\n"
-"Language-Team: Norwegian Bokmål (Norway) (https://www.transifex.com/oca/teams/23907/nb_NO/)\n"
+"Language-Team: Norwegian Bokmål (Norway) (https://www.transifex.com/oca/"
+"teams/23907/nb_NO/)\n"
+"Language: nb_NO\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
-"Language: nb_NO\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: account_payment_partner
@@ -40,8 +41,14 @@ msgstr ""
msgid "Bank Account Required"
msgstr "Bankkonto påkrevd"
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_res_partner
+msgid "Contact"
+msgstr ""
+
#. module: account_payment_partner
#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_customer_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_customer_payment_mode_id
msgid "Customer Payment Mode"
msgstr ""
@@ -56,8 +63,9 @@ msgid "Journal Item"
msgstr "Journalgjenstand"
#. module: account_payment_partner
-#: model:ir.model,name:account_payment_partner.model_res_partner
-msgid "Partner"
+#: code:addons/account_payment_partner/tests/test_account_payment_partner.py:35
+#, python-format
+msgid "No Chart of Account Template has been defined !"
msgstr ""
#. module: account_payment_partner
@@ -67,6 +75,12 @@ msgstr ""
msgid "Payment Mode"
msgstr ""
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_account_payment_mode
+#, fuzzy
+msgid "Payment Modes"
+msgstr "Betalinger"
+
#. module: account_payment_partner
#: model:ir.ui.view,arch_db:account_payment_partner.view_move_line_form
msgid "Payments"
@@ -74,15 +88,41 @@ msgstr "Betalinger"
#. module: account_payment_partner
#: model:ir.model.fields,help:account_payment_partner.field_res_partner_customer_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_users_customer_payment_mode_id
msgid "Select the default payment mode for this customer."
msgstr ""
#. module: account_payment_partner
#: model:ir.model.fields,help:account_payment_partner.field_res_partner_supplier_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_users_supplier_payment_mode_id
msgid "Select the default payment mode for this supplier."
msgstr ""
#. module: account_payment_partner
#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_supplier_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_supplier_payment_mode_id
msgid "Supplier Payment Mode"
msgstr ""
+
+#. module: account_payment_partner
+#: code:addons/account_payment_partner/models/account_invoice.py:119
+#, python-format
+msgid ""
+"The company of the invoice %s does not match with that of the payment mode"
+msgstr ""
+
+#. module: account_payment_partner
+#: code:addons/account_payment_partner/models/account_payment_mode.py:17
+#, python-format
+msgid ""
+"You cannot change the Company. There exists at least one Invoice with this "
+"Payment Mode, already assigned to another Company."
+msgstr ""
+
+#. module: account_payment_partner
+#: code:addons/account_payment_partner/models/account_payment_mode.py:28
+#, python-format
+msgid ""
+"You cannot change the Company. There exists at least one Journal Item with "
+"this Payment Mode, already assigned to another Company."
+msgstr ""
diff --git a/account_payment_partner/i18n/nl.po b/account_payment_partner/i18n/nl.po
index 211e0689e..de30033a1 100644
--- a/account_payment_partner/i18n/nl.po
+++ b/account_payment_partner/i18n/nl.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_payment_partner
-#
+#
# Translators:
# OCA Transbot , 2017
msgid ""
@@ -12,10 +12,10 @@ msgstr ""
"PO-Revision-Date: 2017-11-23 03:38+0000\n"
"Last-Translator: OCA Transbot , 2017\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"
-"Language: nl\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: account_payment_partner
@@ -34,8 +34,8 @@ msgid ""
"Activate this option if this payment method requires you to know the bank "
"account number of your customer or supplier."
msgstr ""
-"Activeer deze optie als de betaalwijze verwacht dat u het bankrekeningnummer"
-" van uw klant of leverancier kent."
+"Activeer deze optie als de betaalwijze verwacht dat u het bankrekeningnummer "
+"van uw klant of leverancier kent."
#. module: account_payment_partner
#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_bank_account_required
@@ -105,7 +105,7 @@ msgid "Supplier Payment Mode"
msgstr "Betaalwijze leverancier"
#. module: account_payment_partner
-#: code:addons/account_payment_partner/models/account_invoice.py:118
+#: code:addons/account_payment_partner/models/account_invoice.py:119
#, python-format
msgid ""
"The company of the invoice %s does not match with that of the payment mode"
diff --git a/account_payment_partner/i18n/pt_BR.po b/account_payment_partner/i18n/pt_BR.po
index ba790b008..d2f047a74 100644
--- a/account_payment_partner/i18n/pt_BR.po
+++ b/account_payment_partner/i18n/pt_BR.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_payment_partner
-#
+#
# Translators:
# OCA Transbot , 2017
msgid ""
@@ -11,11 +11,12 @@ msgstr ""
"POT-Creation-Date: 2017-11-23 03:38+0000\n"
"PO-Revision-Date: 2017-11-23 03:38+0000\n"
"Last-Translator: OCA Transbot , 2017\n"
-"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/teams/23907/pt_BR/)\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"
-"Language: pt_BR\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: account_payment_partner
@@ -103,7 +104,7 @@ msgid "Supplier Payment Mode"
msgstr "Modo de Pagamento do Fornecedor"
#. module: account_payment_partner
-#: code:addons/account_payment_partner/models/account_invoice.py:118
+#: code:addons/account_payment_partner/models/account_invoice.py:119
#, python-format
msgid ""
"The company of the invoice %s does not match with that of the payment mode"
diff --git a/account_payment_partner/i18n/sl.po b/account_payment_partner/i18n/sl.po
index 9bd46dd3b..d2ea03235 100644
--- a/account_payment_partner/i18n/sl.po
+++ b/account_payment_partner/i18n/sl.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_payment_partner
-#
+#
# Translators:
# OCA Transbot , 2017
msgid ""
@@ -12,11 +12,12 @@ msgstr ""
"PO-Revision-Date: 2017-11-23 03:38+0000\n"
"Last-Translator: OCA Transbot , 2017\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"
-"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"
+"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n"
+"%100==4 ? 2 : 3);\n"
#. module: account_payment_partner
#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
@@ -103,7 +104,7 @@ msgid "Supplier Payment Mode"
msgstr "Metoda plačila dobavitelja"
#. module: account_payment_partner
-#: code:addons/account_payment_partner/models/account_invoice.py:118
+#: code:addons/account_payment_partner/models/account_invoice.py:119
#, python-format
msgid ""
"The company of the invoice %s does not match with that of the payment mode"
From 939e07f84e36c9a4b2244edb0766ba14201576c9 Mon Sep 17 00:00:00 2001
From: Enric Tobella
Date: Fri, 13 Jul 2018 09:21:00 +0000
Subject: [PATCH 28/58] =?UTF-8?q?Translated=20using=20Weblate=20(Espa?=
=?UTF-8?q?=C3=B1ol=20(Espa=C3=B1a))?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Currently translated at 100,0% (18 of 18 strings)
Translation: bank-payment-11.0/bank-payment-11.0-account_payment_partner
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-11-0/bank-payment-11-0-account_payment_partner/es/
---
account_payment_partner/i18n/es.po | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)
diff --git a/account_payment_partner/i18n/es.po b/account_payment_partner/i18n/es.po
index ce9afa051..9a399315d 100644
--- a/account_payment_partner/i18n/es.po
+++ b/account_payment_partner/i18n/es.po
@@ -9,14 +9,15 @@ msgstr ""
"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-11-23 03:38+0000\n"
-"PO-Revision-Date: 2017-11-23 03:38+0000\n"
-"Last-Translator: OCA Transbot , 2017\n"
+"PO-Revision-Date: 2018-07-13 09:23+0000\n"
+"Last-Translator: Enric Tobella \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: \n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+"Plural-Forms: nplurals=2; plural=n != 1;\n"
+"X-Generator: Weblate 3.0.1\n"
#. module: account_payment_partner
#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
@@ -45,7 +46,7 @@ msgstr "Cuenta bancaria requerida"
#. module: account_payment_partner
#: model:ir.model,name:account_payment_partner.model_res_partner
msgid "Contact"
-msgstr ""
+msgstr "Contacto"
#. module: account_payment_partner
#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_customer_payment_mode_id
@@ -67,7 +68,7 @@ msgstr "Apunte contable"
#: code:addons/account_payment_partner/tests/test_account_payment_partner.py:35
#, python-format
msgid "No Chart of Account Template has been defined !"
-msgstr ""
+msgstr "No se ha definido un Plan Contable!"
#. module: account_payment_partner
#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_payment_mode_id
@@ -113,7 +114,7 @@ msgstr "Modo de pago de proveedor"
#, python-format
msgid ""
"The company of the invoice %s does not match with that of the payment mode"
-msgstr ""
+msgstr "La compañía de la factura %s no corresponde con la del modo de pago"
#. module: account_payment_partner
#: code:addons/account_payment_partner/models/account_payment_mode.py:17
@@ -122,6 +123,8 @@ msgid ""
"You cannot change the Company. There exists at least one Invoice with this "
"Payment Mode, already assigned to another Company."
msgstr ""
+"No puede cambiar la Compañía. Ya existe como mínimo una Factura para este "
+"Modo de Pago asignado a otra Compañía."
#. module: account_payment_partner
#: code:addons/account_payment_partner/models/account_payment_mode.py:28
@@ -130,3 +133,5 @@ msgid ""
"You cannot change the Company. There exists at least one Journal Item with "
"this Payment Mode, already assigned to another Company."
msgstr ""
+"No puede cambiar la Compañía. Existe como mínimo una elemento del Diario con "
+"este Modo de Pago que ya está asignado a otra Compañía."
From 06dad984f83383164e8f95bc6190e3b05ab33578 Mon Sep 17 00:00:00 2001
From: Carlos Dauden
Date: Thu, 15 Mar 2018 14:02:30 +0100
Subject: [PATCH 29/58] [FIX+IMP] account_payment_partner: Fix invoice bank
account assignation + show it on invoice report
* IMP: Add options to show partner bank account on invoice report
* FIX: Don't auto-assign partner bank account due to problems when you have a direct debit payment
method with bank_account_link = 'fixed'. Bank account is shown through new mechanism.
---
account_payment_partner/README.rst | 122 +++--
account_payment_partner/__manifest__.py | 11 +-
account_payment_partner/i18n/es.po | 76 ++-
.../migrations/10.0.1.2.0/post-migrate.py | 12 +
.../models/account_invoice.py | 27 +-
.../models/account_payment_mode.py | 20 +-
.../readme/CONTRIBUTORS.rst | 11 +
.../readme/DESCRIPTION.rst | 22 +
account_payment_partner/readme/HISTORY.rst | 15 +
account_payment_partner/readme/USAGE.rst | 12 +
.../static/description/index.html | 488 ++++++++++++++++++
.../views/account_payment_mode.xml | 24 +
.../views/report_invoice.xml | 24 +-
13 files changed, 799 insertions(+), 65 deletions(-)
create mode 100644 account_payment_partner/migrations/10.0.1.2.0/post-migrate.py
create mode 100644 account_payment_partner/readme/CONTRIBUTORS.rst
create mode 100644 account_payment_partner/readme/DESCRIPTION.rst
create mode 100644 account_payment_partner/readme/HISTORY.rst
create mode 100644 account_payment_partner/readme/USAGE.rst
create mode 100644 account_payment_partner/static/description/index.html
create mode 100644 account_payment_partner/views/account_payment_mode.xml
diff --git a/account_payment_partner/README.rst b/account_payment_partner/README.rst
index 15ee4b252..33edfef25 100644
--- a/account_payment_partner/README.rst
+++ b/account_payment_partner/README.rst
@@ -1,65 +1,115 @@
-.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
- :alt: License: AGPL-3
-
=======================
Account Payment Partner
=======================
+.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+ !! 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/10.0/account_payment_partner
+ :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-10-0/bank-payment-10-0-account_payment_partner
+ :alt: Translate me on Weblate
+.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
+ :target: https://runbot.odoo-community.org/runbot/97/10.0
+ :alt: Try me on Runbot
+
+|badge1| |badge2| |badge3| |badge4| |badge5|
+
+[ This file must be max 2-3 paragraphs, and is required. ]
+
This module adds severals fields :
* the *Supplier Payment Mode* and *Customer Payment Mode* on Partners,
* the *Payment Mode* on Invoices.
+* the *Show bank account* on Payment Mode.
+
+* the *# of digits for customer bank account* on Payment Mode.
+
+* the *Bank account from journals* on Payment Mode.
+
On a Payment Order, in the wizard *Select Invoices to Pay*, the invoices will
be filtered per Payment Mode.
-Installation
-============
+Allows to print in the invoice to which account number the payment
+(via SEPA direct debit) is going to be charged so the customer knows that
+information, but there are some customers that don't want that everyone
+looking at the invoice sees the full account number (and even GDPR can say a
+word about that), so that's the reason behind the several options.
-This module depends on :
+**Table of contents**
-* account_payment_mode
-
-This module is part of the OCA/bank-payment suite.
-
-Configuration
-=============
-
-There is nothing to configure.
+.. contents::
+ :local:
Usage
=====
+[ This file must be present and contains the usage instructions
+ for end-users. As all other rst files included in the README,
+ it MUST NOT contain reStructuredText sections
+ only body text (paragraphs, lists, tables, etc). Should you need
+ a more elaborate structure to explain the addon, please create a
+ Sphinx documentation (which may include this file as a "quick start"
+ section). ]
+
You are able to add a payment mode directly on a partner.
This payment mode is automatically associated to the invoice related to the partner. This default value could be change in a draft invoice.
When you create an payment order, only invoices related to chosen payment mode are displayed.
Invoices without any payment mode are displayed to.
-.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
- :alt: Try me on Runbot
- :target: https://runbot.odoo-community.org/runbot/173/11.0
+Changelog
+=========
-Known issues / Roadmap
-======================
+[ The change log. The goal of this file is to help readers
+ understand changes between version. The primary audience is
+ end users and integrators. Purely technical changes such as
+ code refactoring must not be mentioned here.
- * No known issues.
+ This file may contain ONE level of section titles, underlined
+ with the ~ (tilde) character. Other section markers are
+ forbidden and will likely break the structure of the README.rst
+ or other documents where this fragment is included. ]
+
+10.0.1.2.0 (2018-05-24)
+~~~~~~~~~~~~~~~~~~~~~~~
+
+* [IMP] Add options to show partner bank account in invoice report
+ (`#458 `_)
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.
+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
=======
-Contributors
-------------
+Authors
+~~~~~~~
+
+* Akretion
+* Tecnativa
+
+Contributors
+~~~~~~~~~~~~
-* Pedro M. Baeza
* Alexis de Lattre
* Raphaël Valyi
* Stefan Rijnhart (Therp)
@@ -67,16 +117,24 @@ Contributors
* Stéphane Bidoul
* Danimar Ribeiro
* Angel Moya
+* `Tecnativa `_:
-Maintainer
-----------
+ * Pedro M. Baeza
+ * Carlos Dauden
+
+Maintainers
+~~~~~~~~~~~
+
+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.
-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/bank-payment `_ project on GitHub.
-To contribute to this module, please visit https://odoo-community.org.
+You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/account_payment_partner/__manifest__.py b/account_payment_partner/__manifest__.py
index 403803b29..44d90fa79 100644
--- a/account_payment_partner/__manifest__.py
+++ b/account_payment_partner/__manifest__.py
@@ -1,11 +1,11 @@
-# -*- coding: utf-8 -*-
-# © 2014 Akretion - Alexis de Lattre
-# © 2014 Tecnativa - Pedro M. Baeza
-# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
+# Copyright 2014 Akretion - Alexis de Lattre
+# Copyright 2014 Tecnativa - Pedro M. Baeza
+# Copyright 2018 Tecnativa - Carlos Dauden
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
'name': 'Account Payment Partner',
- 'version': '11.0.1.2.1',
+ 'version': '11.0.1.3.0',
'category': 'Banking addons',
'license': 'AGPL-3',
'summary': 'Adds payment mode on partners and invoices',
@@ -18,6 +18,7 @@
'views/res_partner_view.xml',
'views/account_invoice_view.xml',
'views/account_move_line.xml',
+ 'views/account_payment_mode.xml',
'views/report_invoice.xml',
],
'demo': ['demo/partner_demo.xml'],
diff --git a/account_payment_partner/i18n/es.po b/account_payment_partner/i18n/es.po
index 9a399315d..f30143010 100644
--- a/account_payment_partner/i18n/es.po
+++ b/account_payment_partner/i18n/es.po
@@ -19,6 +19,11 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 3.0.1\n"
+#. module: account_payment_partner
+#: model:ir.ui.view,arch_db:account_payment_partner.account_payment_mode_form
+msgid "# of chars"
+msgstr "Nº de caracteres"
+
#. module: account_payment_partner
#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
msgid "Bank Account:"
@@ -31,12 +36,8 @@ msgstr "Modo de pago:"
#. module: account_payment_partner
#: model:ir.model.fields,help:account_payment_partner.field_account_invoice_bank_account_required
-msgid ""
-"Activate this option if this payment method requires you to know the bank "
-"account number of your customer or supplier."
-msgstr ""
-"Activa esta opción si este método de pago debe requerirte informar el número "
-"de cuenta bancaria de tu cliente o proveedor"
+msgid "Activate this option if this payment method requires you to know the bank account number of your customer or supplier."
+msgstr "Activa esta opción si este método de pago debe requerirte informar el número de cuenta bancaria de tu cliente o proveedor"
#. module: account_payment_partner
#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_bank_account_required
@@ -48,12 +49,26 @@ msgstr "Cuenta bancaria requerida"
msgid "Contact"
msgstr "Contacto"
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_payment_mode_show_bank_account_from_journal
+msgid "Bank account from journals"
+msgstr "Cuenta bancaria de los diarios"
+
#. module: account_payment_partner
#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_customer_payment_mode_id
#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_customer_payment_mode_id
msgid "Customer Payment Mode"
msgstr "Modo de pago de cliente"
+#. module: account_payment_partner
+#: selection:account.payment.mode,show_bank_account:0
+msgid "First n chars"
+msgstr "Primeros n caracteres"
+
+#. module: account_payment_partner
+#: selection:account.payment.mode,show_bank_account:0
+msgid "Full"
+msgstr "Completo"
+
#. module: account_payment_partner
#: model:ir.model,name:account_payment_partner.model_account_invoice
msgid "Invoice"
@@ -70,6 +85,31 @@ msgstr "Apunte contable"
msgid "No Chart of Account Template has been defined !"
msgstr "No se ha definido un Plan Contable!"
+#. module: account_payment_partner
+#: selection:account.payment.mode,show_bank_account:0
+msgid "Last n chars"
+msgstr "Últimos n caracteres"
+
+#. module: account_payment_partner
+#: selection:account.payment.mode,show_bank_account:0
+msgid "No"
+msgstr "No"
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_payment_mode_show_bank_account_chars
+msgid "# of digits for customer bank account"
+msgstr "Nº de dígitos de cuenta bancaria del cliente"
+
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_res_partner
+msgid "Partner"
+msgstr "Empresa"
+
+#. module: account_payment_partner
+#: model:ir.model,name:account_payment_partner.model_account_payment_method
+msgid "Payment Methods"
+msgstr "Métodos de pago"
+
#. module: account_payment_partner
#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_payment_mode_id
#: model:ir.model.fields,field_description:account_payment_partner.field_account_move_line_payment_mode_id
@@ -89,19 +129,29 @@ msgstr "Pagos"
#. module: account_payment_partner
#: model:ir.model.fields,help:account_payment_partner.field_res_partner_customer_payment_mode_id
-#: model:ir.model.fields,help:account_payment_partner.field_res_users_customer_payment_mode_id
msgid "Select the default payment mode for this customer."
-msgstr ""
-"Seleccione el modo de pago por defecto cuando esta empresa actúa como "
-"cliente."
+msgstr "Seleccione el modo de pago por defecto cuando esta empresa actúa como cliente."
#. module: account_payment_partner
#: model:ir.model.fields,help:account_payment_partner.field_res_partner_supplier_payment_mode_id
#: model:ir.model.fields,help:account_payment_partner.field_res_users_supplier_payment_mode_id
msgid "Select the default payment mode for this supplier."
-msgstr ""
-"Seleccione el modo de pago por defecto cuando esta empresa actúa como "
-"proveedor."
+msgstr "Seleccione el modo de pago por defecto cuando esta empresa actúa como proveedor."
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_payment_mode_show_bank_account
+msgid "Show bank account"
+msgstr "Mostrar cuenta bancaria"
+
+#. module: account_payment_partner
+#: model:ir.ui.view,arch_db:account_payment_partner.account_payment_mode_form
+msgid "Show bank account in invoice report"
+msgstr "Mostrar cuenta bancaria en informe factura"
+
+#. module: account_payment_partner
+#: model:ir.model.fields,help:account_payment_partner.field_account_payment_mode_show_bank_account
+msgid "Show in invoices partial or full bank account number"
+msgstr "Mostrar en facturas nº de cuenta bancaria parcial o completo"
#. module: account_payment_partner
#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_supplier_payment_mode_id
diff --git a/account_payment_partner/migrations/10.0.1.2.0/post-migrate.py b/account_payment_partner/migrations/10.0.1.2.0/post-migrate.py
new file mode 100644
index 000000000..e63be7140
--- /dev/null
+++ b/account_payment_partner/migrations/10.0.1.2.0/post-migrate.py
@@ -0,0 +1,12 @@
+# -*- coding: utf-8 -*-
+# Copyright 2018 Carlos Dauden - Tecnativa
+# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
+
+
+def migrate(cr, version):
+ """Update database from previous versions, after updating module."""
+ cr.execute(
+ "UPDATE account_payment_mode "
+ "SET show_bank_account_from_journal = true "
+ "WHERE bank_account_link = 'fixed'"
+ )
diff --git a/account_payment_partner/models/account_invoice.py b/account_payment_partner/models/account_invoice.py
index 71c415e56..86942cbcf 100644
--- a/account_payment_partner/models/account_invoice.py
+++ b/account_payment_partner/models/account_invoice.py
@@ -42,13 +42,10 @@ class AccountInvoice(models.Model):
self.partner_bank_id = False
elif self.type == 'out_invoice':
- pay_mode = self.with_context(
- force_company=self.company_id.id
- ).partner_id.customer_payment_mode_id
- self.payment_mode_id = pay_mode
- if pay_mode and pay_mode.bank_account_link == 'fixed':
- self.partner_bank_id = pay_mode.fixed_journal_id. \
- bank_account_id
+ # No bank account assignation is done here as this is only
+ # needed for printing purposes and it can conflict with
+ # SEPA direct debit payments. Current report prints it.
+ self.payment_mode_id = self.partner_id.customer_payment_mode_id
else:
self.payment_mode_id = False
if self.type == 'in_invoice':
@@ -118,3 +115,19 @@ class AccountInvoice(models.Model):
raise ValidationError(
_("The company of the invoice %s does not match "
"with that of the payment mode") % rec.name)
+
+ def partner_banks_to_show(self):
+ self.ensure_one()
+ if self.partner_bank_id:
+ return self.partner_bank_id
+ if self.payment_mode_id.show_bank_account_from_journal:
+ if self.payment_mode_id.bank_account_link:
+ return self.payment_mode_id.fixed_journal_id.bank_account_id
+ else:
+ return self.payment_mode_id.variable_journal_ids.mapped(
+ 'bank_account_id')
+ if self.payment_mode_id.payment_method_id.code == 'sepa_direct_debit':
+ return (self.mandate_id.partner_bank_id or
+ self.partner_id.valid_mandate_id.partner_bank_id)
+ # Return this as empty recordset
+ return self.partner_bank_id
diff --git a/account_payment_partner/models/account_payment_mode.py b/account_payment_partner/models/account_payment_mode.py
index 2b0f618ab..861b749ff 100644
--- a/account_payment_partner/models/account_payment_mode.py
+++ b/account_payment_partner/models/account_payment_mode.py
@@ -1,13 +1,31 @@
# Copyright 2017 Eficent Business and IT Consulting Services S.L.
+# Copyright 2018 Carlos Dauden - Tecnativa
# License AGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
-from odoo import models, api, _
+from odoo import api, fields, models, _
from odoo.exceptions import ValidationError
class AccountPaymentMode(models.Model):
_inherit = "account.payment.mode"
+ show_bank_account = fields.Selection(
+ selection=[
+ ('full', 'Full'),
+ ('first', 'First n chars'),
+ ('last', 'Last n chars'),
+ ('no', 'No'),
+ ],
+ string='Show bank account',
+ default='full',
+ help="Show in invoices partial or full bank account number")
+ show_bank_account_from_journal = fields.Boolean(
+ string='Bank account from journals'
+ )
+ show_bank_account_chars = fields.Integer(
+ string="# of digits for customer bank account",
+ )
+
@api.constrains('company_id')
def account_invoice_company_constrains(self):
for mode in self:
diff --git a/account_payment_partner/readme/CONTRIBUTORS.rst b/account_payment_partner/readme/CONTRIBUTORS.rst
new file mode 100644
index 000000000..95f514aae
--- /dev/null
+++ b/account_payment_partner/readme/CONTRIBUTORS.rst
@@ -0,0 +1,11 @@
+* Alexis de Lattre
+* Raphaël Valyi
+* Stefan Rijnhart (Therp)
+* Alexandre Fayolle
+* Stéphane Bidoul
+* Danimar Ribeiro
+* Angel Moya
+* `Tecnativa `_:
+
+ * Pedro M. Baeza
+ * Carlos Dauden
diff --git a/account_payment_partner/readme/DESCRIPTION.rst b/account_payment_partner/readme/DESCRIPTION.rst
new file mode 100644
index 000000000..27c9e82be
--- /dev/null
+++ b/account_payment_partner/readme/DESCRIPTION.rst
@@ -0,0 +1,22 @@
+[ This file must be max 2-3 paragraphs, and is required. ]
+
+This module adds severals fields :
+
+* the *Supplier Payment Mode* and *Customer Payment Mode* on Partners,
+
+* the *Payment Mode* on Invoices.
+
+* the *Show bank account* on Payment Mode.
+
+* the *# of digits for customer bank account* on Payment Mode.
+
+* the *Bank account from journals* on Payment Mode.
+
+On a Payment Order, in the wizard *Select Invoices to Pay*, the invoices will
+be filtered per Payment Mode.
+
+Allows to print in the invoice to which account number the payment
+(via SEPA direct debit) is going to be charged so the customer knows that
+information, but there are some customers that don't want that everyone
+looking at the invoice sees the full account number (and even GDPR can say a
+word about that), so that's the reason behind the several options.
diff --git a/account_payment_partner/readme/HISTORY.rst b/account_payment_partner/readme/HISTORY.rst
new file mode 100644
index 000000000..a6168b334
--- /dev/null
+++ b/account_payment_partner/readme/HISTORY.rst
@@ -0,0 +1,15 @@
+[ The change log. The goal of this file is to help readers
+ understand changes between version. The primary audience is
+ end users and integrators. Purely technical changes such as
+ code refactoring must not be mentioned here.
+
+ This file may contain ONE level of section titles, underlined
+ with the ~ (tilde) character. Other section markers are
+ forbidden and will likely break the structure of the README.rst
+ or other documents where this fragment is included. ]
+
+10.0.1.2.0 (2018-05-24)
+~~~~~~~~~~~~~~~~~~~~~~~
+
+* [IMP] Add options to show partner bank account in invoice report
+ (`#458 `_)
diff --git a/account_payment_partner/readme/USAGE.rst b/account_payment_partner/readme/USAGE.rst
new file mode 100644
index 000000000..c2bbf0fbc
--- /dev/null
+++ b/account_payment_partner/readme/USAGE.rst
@@ -0,0 +1,12 @@
+[ This file must be present and contains the usage instructions
+ for end-users. As all other rst files included in the README,
+ it MUST NOT contain reStructuredText sections
+ only body text (paragraphs, lists, tables, etc). Should you need
+ a more elaborate structure to explain the addon, please create a
+ Sphinx documentation (which may include this file as a "quick start"
+ section). ]
+
+You are able to add a payment mode directly on a partner.
+This payment mode is automatically associated to the invoice related to the partner. This default value could be change in a draft invoice.
+When you create an payment order, only invoices related to chosen payment mode are displayed.
+Invoices without any payment mode are displayed to.
diff --git a/account_payment_partner/static/description/index.html b/account_payment_partner/static/description/index.html
new file mode 100644
index 000000000..641f3296e
--- /dev/null
+++ b/account_payment_partner/static/description/index.html
@@ -0,0 +1,488 @@
+
+
+
+
+
+
+Account Payment Partner
+
+
+
+
+
Account Payment Partner
+
+
+

+
[ This file must be max 2-3 paragraphs, and is required. ]
+
This module adds severals fields :
+
+- the Supplier Payment Mode and Customer Payment Mode on Partners,
+- the Payment Mode on Invoices.
+- the Show bank account on Payment Mode.
+- the # of digits for customer bank account on Payment Mode.
+- the Bank account from journals on Payment Mode.
+
+
On a Payment Order, in the wizard Select Invoices to Pay, the invoices will
+be filtered per Payment Mode.
+
Allows to print in the invoice to which account number the payment
+(via SEPA direct debit) is going to be charged so the customer knows that
+information, but there are some customers that don’t want that everyone
+looking at the invoice sees the full account number (and even GDPR can say a
+word about that), so that’s the reason behind the several options.
+
Table of contents
+
+
+
+
+- [ This file must be present and contains the usage instructions
+- for end-users. As all other rst files included in the README,
+it MUST NOT contain reStructuredText sections
+only body text (paragraphs, lists, tables, etc). Should you need
+a more elaborate structure to explain the addon, please create a
+Sphinx documentation (which may include this file as a “quick start”
+section). ]
+
+
You are able to add a payment mode directly on a partner.
+This payment mode is automatically associated to the invoice related to the partner. This default value could be change in a draft invoice.
+When you create an payment order, only invoices related to chosen payment mode are displayed.
+Invoices without any payment mode are displayed to.
+
+
+
+
+- [ The change log. The goal of this file is to help readers
+understand changes between version. The primary audience is
+end users and integrators. Purely technical changes such as
+code refactoring must not be mentioned here.
+This file may contain ONE level of section titles, underlined
+with the ~ (tilde) character. Other section markers are
+forbidden and will likely break the structure of the README.rst
+or other documents where this fragment is included. ]
+
+
+
+
+
+- [IMP] Add options to show partner bank account in invoice report
+(#458)
+
+
+
+
+
+
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.
+
+
+
+
+
+
+
+
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.
+
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_payment_partner/views/account_payment_mode.xml b/account_payment_partner/views/account_payment_mode.xml
new file mode 100644
index 000000000..da62bf405
--- /dev/null
+++ b/account_payment_partner/views/account_payment_mode.xml
@@ -0,0 +1,24 @@
+
+
+
+
+
+ account.payment.mode
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/account_payment_partner/views/report_invoice.xml b/account_payment_partner/views/report_invoice.xml
index 3a25d8c13..1838444d8 100644
--- a/account_payment_partner/views/report_invoice.xml
+++ b/account_payment_partner/views/report_invoice.xml
@@ -7,13 +7,23 @@
Payment Mode:
-
- Bank Account:
-
-
-
-
-
+
+
+ Bank Account:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
From 1eac10f41909d002122fcc80116f9de0d86c49f6 Mon Sep 17 00:00:00 2001
From: cubells
Date: Mon, 3 Dec 2018 12:45:56 +0100
Subject: [PATCH 30/58] [IMP] account_payment_partner: Add several tests
---
account_payment_partner/__init__.py | 4 +-
.../models/account_invoice.py | 12 +-
.../models/account_move_line.py | 7 +-
account_payment_partner/models/res_partner.py | 9 +-
.../readme/CONTRIBUTORS.rst | 4 +-
.../readme/DESCRIPTION.rst | 4 +-
account_payment_partner/readme/HISTORY.rst | 10 --
account_payment_partner/readme/USAGE.rst | 19 ++-
account_payment_partner/tests/__init__.py | 1 -
.../tests/test_account_payment_partner.py | 112 ++++++++++++++++++
.../views/account_invoice_view.xml | 4 +-
.../views/account_move_line.xml | 3 +-
.../views/report_invoice.xml | 2 +-
.../views/res_partner_view.xml | 3 +-
14 files changed, 142 insertions(+), 52 deletions(-)
diff --git a/account_payment_partner/__init__.py b/account_payment_partner/__init__.py
index 50def6204..83e553ac4 100644
--- a/account_payment_partner/__init__.py
+++ b/account_payment_partner/__init__.py
@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-# © 2014 Akretion - Alexis de Lattre
-# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import models
diff --git a/account_payment_partner/models/account_invoice.py b/account_payment_partner/models/account_invoice.py
index 86942cbcf..0fc72bb14 100644
--- a/account_payment_partner/models/account_invoice.py
+++ b/account_payment_partner/models/account_invoice.py
@@ -1,7 +1,6 @@
-# -*- coding: utf-8 -*-
-# © 2014-2016 Akretion - Alexis de Lattre
-# © 2014 Serv. Tecnol. Avanzados - Pedro M. Baeza
-# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
+# Copyright 2014-16 Akretion - Alexis de Lattre
+# Copyright 2014 Serv. Tecnol. Avanzados - Pedro M. Baeza
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import api, fields, models, _
from odoo.exceptions import ValidationError
@@ -121,12 +120,13 @@ class AccountInvoice(models.Model):
if self.partner_bank_id:
return self.partner_bank_id
if self.payment_mode_id.show_bank_account_from_journal:
- if self.payment_mode_id.bank_account_link:
+ if self.payment_mode_id.bank_account_link == 'fixed':
return self.payment_mode_id.fixed_journal_id.bank_account_id
else:
return self.payment_mode_id.variable_journal_ids.mapped(
'bank_account_id')
- if self.payment_mode_id.payment_method_id.code == 'sepa_direct_debit':
+ if self.payment_mode_id.payment_method_id.code == \
+ 'sepa_direct_debit': # pragma: no cover
return (self.mandate_id.partner_bank_id or
self.partner_id.valid_mandate_id.partner_bank_id)
# Return this as empty recordset
diff --git a/account_payment_partner/models/account_move_line.py b/account_payment_partner/models/account_move_line.py
index 9bdcec4e6..4bfe0ff70 100644
--- a/account_payment_partner/models/account_move_line.py
+++ b/account_payment_partner/models/account_move_line.py
@@ -1,8 +1,7 @@
-# -*- coding: utf-8 -*-
-# © 2016 Akretion (https://www.akretion.com/)
-# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
+# Copyright 2016 Akretion (http://www.akretion.com/)
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-from odoo import models, fields
+from odoo import fields, models
class AccountMoveLine(models.Model):
diff --git a/account_payment_partner/models/res_partner.py b/account_payment_partner/models/res_partner.py
index 0b6585aa0..aa60a42f8 100644
--- a/account_payment_partner/models/res_partner.py
+++ b/account_payment_partner/models/res_partner.py
@@ -1,9 +1,8 @@
-# -*- coding: utf-8 -*-
-# © 2014 Akretion - Alexis de Lattre
-# © 2014 Serv. Tecnol. Avanzados - Pedro M. Baeza
-# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
+# Copyright 2014 Akretion - Alexis de Lattre
+# Copyright 2014 Tecnativa - Pedro M. Baeza
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-from odoo import models, fields, api
+from odoo import api, fields, models
class ResPartner(models.Model):
diff --git a/account_payment_partner/readme/CONTRIBUTORS.rst b/account_payment_partner/readme/CONTRIBUTORS.rst
index 95f514aae..df652cc34 100644
--- a/account_payment_partner/readme/CONTRIBUTORS.rst
+++ b/account_payment_partner/readme/CONTRIBUTORS.rst
@@ -7,5 +7,5 @@
* Angel Moya
* `Tecnativa `_:
- * Pedro M. Baeza
- * Carlos Dauden
+ * Pedro M. Baeza
+ * Carlos Dauden
diff --git a/account_payment_partner/readme/DESCRIPTION.rst b/account_payment_partner/readme/DESCRIPTION.rst
index 27c9e82be..8ad4f4f64 100644
--- a/account_payment_partner/readme/DESCRIPTION.rst
+++ b/account_payment_partner/readme/DESCRIPTION.rst
@@ -1,6 +1,4 @@
-[ This file must be max 2-3 paragraphs, and is required. ]
-
-This module adds severals fields :
+This module adds severals fields:
* the *Supplier Payment Mode* and *Customer Payment Mode* on Partners,
diff --git a/account_payment_partner/readme/HISTORY.rst b/account_payment_partner/readme/HISTORY.rst
index a6168b334..8424df5d0 100644
--- a/account_payment_partner/readme/HISTORY.rst
+++ b/account_payment_partner/readme/HISTORY.rst
@@ -1,13 +1,3 @@
-[ The change log. The goal of this file is to help readers
- understand changes between version. The primary audience is
- end users and integrators. Purely technical changes such as
- code refactoring must not be mentioned here.
-
- This file may contain ONE level of section titles, underlined
- with the ~ (tilde) character. Other section markers are
- forbidden and will likely break the structure of the README.rst
- or other documents where this fragment is included. ]
-
10.0.1.2.0 (2018-05-24)
~~~~~~~~~~~~~~~~~~~~~~~
diff --git a/account_payment_partner/readme/USAGE.rst b/account_payment_partner/readme/USAGE.rst
index c2bbf0fbc..09ef27577 100644
--- a/account_payment_partner/readme/USAGE.rst
+++ b/account_payment_partner/readme/USAGE.rst
@@ -1,12 +1,9 @@
-[ This file must be present and contains the usage instructions
- for end-users. As all other rst files included in the README,
- it MUST NOT contain reStructuredText sections
- only body text (paragraphs, lists, tables, etc). Should you need
- a more elaborate structure to explain the addon, please create a
- Sphinx documentation (which may include this file as a "quick start"
- section). ]
-
You are able to add a payment mode directly on a partner.
-This payment mode is automatically associated to the invoice related to the partner. This default value could be change in a draft invoice.
-When you create an payment order, only invoices related to chosen payment mode are displayed.
-Invoices without any payment mode are displayed to.
+
+This payment mode is automatically associated to the invoice related to the
+partner. This default value could be changed in a draft invoice.
+
+When you create a payment order, only invoices related to chosen payment mode
+are displayed.
+
+Invoices without any payment mode are displayed too.
diff --git a/account_payment_partner/tests/__init__.py b/account_payment_partner/tests/__init__.py
index 0d757b027..3449d9e90 100644
--- a/account_payment_partner/tests/__init__.py
+++ b/account_payment_partner/tests/__init__.py
@@ -1,2 +1 @@
-
from . import test_account_payment_partner
diff --git a/account_payment_partner/tests/test_account_payment_partner.py b/account_payment_partner/tests/test_account_payment_partner.py
index b02016463..14ad3cb59 100644
--- a/account_payment_partner/tests/test_account_payment_partner.py
+++ b/account_payment_partner/tests/test_account_payment_partner.py
@@ -132,6 +132,49 @@ class TestAccountPaymentPartner(common.SavepointCase):
[('user_type_id', '=', cls.acct_type_expenses.id),
('company_id', '=', cls.company.id)],
limit=1)
+ cls.journal_bank = cls.env['res.partner.bank'].create({
+ 'acc_number': 'GB95LOYD87430237296288',
+ 'partner_id': cls.env.user.company_id.id,
+ })
+ cls.journal = cls.env['account.journal'].create({
+ 'name': 'BANK TEST',
+ 'code': 'TEST',
+ 'type': 'bank',
+ 'bank_account_id': cls.journal_bank.id,
+ })
+ mode_in = cls.env['account.payment.mode'].create({
+ 'name': 'Payment Mode Inbound',
+ 'payment_method_id':
+ cls.env.ref('account.account_payment_method_manual_in').id,
+ 'bank_account_link': 'fixed',
+ 'fixed_journal_id': cls.journal.id,
+ })
+ method_out = cls.env.ref('account.account_payment_method_manual_out')
+ method_out.bank_account_required = True
+ cls.mode_out = cls.env['account.payment.mode'].create({
+ 'name': 'Payment Mode Outbound',
+ 'payment_method_id': method_out.id,
+ 'bank_account_link': 'fixed',
+ 'fixed_journal_id': cls.journal.id,
+ })
+ cls.partner = cls.env['res.partner'].create({
+ 'name': 'Test Partner',
+ 'customer': True,
+ 'customer_payment_mode_id': mode_in.id,
+ })
+ cls.supplier = cls.env['res.partner'].create({
+ 'name': 'Test Supplier',
+ 'supplier': True,
+ 'supplier_payment_mode_id': cls.mode_out.id,
+ })
+ cls.supplier_bank = cls.env['res.partner.bank'].create({
+ 'acc_number': 'GB18BARC20040131665123',
+ 'partner_id': cls.supplier.id,
+ })
+ cls.supplier_invoice = cls.env['account.invoice'].create({
+ 'partner_id': cls.supplier.id,
+ 'type': 'in_invoice',
+ })
def _create_invoice(self):
@@ -313,3 +356,72 @@ class TestAccountPaymentPartner(common.SavepointCase):
self.customer.customer_payment_mode_id,
self.customer_payment_mode
)
+
+ def test_partner_onchange(self):
+ customer_invoice = self.env['account.invoice'].create({
+ 'partner_id': self.partner.id,
+ 'type': 'out_invoice',
+ })
+ customer_invoice._onchange_partner_id()
+ self.assertEqual(customer_invoice.payment_mode_id,
+ self.partner.customer_payment_mode_id)
+
+ self.supplier_invoice._onchange_partner_id()
+ self.assertEqual(self.supplier_invoice.partner_bank_id,
+ self.supplier_bank)
+ vals = {'partner_id': False, 'type': 'out_invoice'}
+ invoice = self.env['account.invoice'].new(vals)
+ invoice._onchange_partner_id()
+ self.assertFalse(invoice.payment_mode_id)
+ vals = {'partner_id': False, 'type': 'in_invoice'}
+ invoice = self.env['account.invoice'].new(vals)
+ invoice._onchange_partner_id()
+ self.assertFalse(invoice.partner_bank_id)
+
+ def test_payment_mode_id_change(self):
+ self.supplier_invoice.payment_mode_id = self.mode_out.id
+ self.supplier_invoice.payment_mode_id_change()
+ self.assertEqual(self.supplier_invoice.partner_bank_id,
+ self.supplier_bank)
+ self.mode_out.payment_method_id.bank_account_required = False
+ self.supplier_invoice.payment_mode_id = self.mode_out.id
+ self.supplier_invoice.payment_mode_id_change()
+ self.assertFalse(self.supplier_invoice.partner_bank_id)
+ self.supplier_invoice.payment_mode_id = False
+ self.supplier_invoice.payment_mode_id_change()
+ self.assertFalse(self.supplier_invoice.partner_bank_id)
+
+ def test_print_report(self):
+ self.env['account.invoice.line'].create({
+ 'invoice_id': self.supplier_invoice.id,
+ 'name': 'Product Text',
+ 'price_unit': 10.0,
+ 'account_id': self.env.ref('l10n_generic_coa.1_conf_o_income').id,
+ })
+ self.supplier_invoice.action_invoice_open()
+ self.assertEqual(
+ self.supplier_invoice.move_id.line_ids[0].payment_mode_id,
+ self.supplier_invoice.payment_mode_id)
+ (res, _) = report.render_report(
+ self.env.cr, self.env.uid,
+ [self.supplier_invoice.id], 'account.report_invoice', {})
+ self.assertRegexpMatches(res, self.supplier_bank.acc_number)
+ self.supplier_invoice.partner_bank_id = False
+ self.supplier_invoice.payment_mode_id\
+ .show_bank_account_from_journal = True
+ (res, _) = report.render_report(
+ self.env.cr, self.env.uid,
+ [self.supplier_invoice.id], 'account.report_invoice', {})
+ self.assertRegexpMatches(res, self.journal_bank.acc_number)
+ payment_mode = self.supplier_invoice.payment_mode_id
+ self.supplier_invoice.payment_mode_id = False
+ payment_mode.bank_account_link = 'variable'
+ payment_mode.variable_journal_ids = [
+ (6, 0, [self.journal.id])]
+ self.supplier_invoice.payment_mode_id = payment_mode.id
+ self.supplier_invoice.payment_mode_id_change()
+ (res, _) = report.render_report(
+ self.env.cr, self.env.uid,
+ [self.supplier_invoice.id], 'account.report_invoice', {})
+ self.assertRegexpMatches(
+ res, self.journal_bank.acc_number)
diff --git a/account_payment_partner/views/account_invoice_view.xml b/account_payment_partner/views/account_invoice_view.xml
index 859e4572c..f76fac182 100644
--- a/account_payment_partner/views/account_invoice_view.xml
+++ b/account_payment_partner/views/account_invoice_view.xml
@@ -1,7 +1,7 @@
diff --git a/account_payment_partner/views/account_move_line.xml b/account_payment_partner/views/account_move_line.xml
index 1abe8b5e1..601018111 100644
--- a/account_payment_partner/views/account_move_line.xml
+++ b/account_payment_partner/views/account_move_line.xml
@@ -1,8 +1,7 @@
diff --git a/account_payment_partner/views/report_invoice.xml b/account_payment_partner/views/report_invoice.xml
index 1838444d8..b22767685 100644
--- a/account_payment_partner/views/report_invoice.xml
+++ b/account_payment_partner/views/report_invoice.xml
@@ -20,7 +20,7 @@
-
+
diff --git a/account_payment_partner/views/res_partner_view.xml b/account_payment_partner/views/res_partner_view.xml
index ad7ceeafe..1c7662232 100644
--- a/account_payment_partner/views/res_partner_view.xml
+++ b/account_payment_partner/views/res_partner_view.xml
@@ -1,7 +1,6 @@
From e18d94343d26542dc8f9a0dc054d3fa7c9d8e2b1 Mon Sep 17 00:00:00 2001
From: "Pedro M. Baeza"
Date: Tue, 4 Dec 2018 23:56:16 +0100
Subject: [PATCH 31/58] [MIG] account_payment_partner: Adapt tests + code to
latest version
---
.../post-migrate.py | 0
.../models/account_invoice.py | 4 +-
.../tests/test_account_payment_partner.py | 135 ++++++------------
3 files changed, 48 insertions(+), 91 deletions(-)
rename account_payment_partner/migrations/{10.0.1.2.0 => 11.0.1.3.0}/post-migrate.py (100%)
diff --git a/account_payment_partner/migrations/10.0.1.2.0/post-migrate.py b/account_payment_partner/migrations/11.0.1.3.0/post-migrate.py
similarity index 100%
rename from account_payment_partner/migrations/10.0.1.2.0/post-migrate.py
rename to account_payment_partner/migrations/11.0.1.3.0/post-migrate.py
diff --git a/account_payment_partner/models/account_invoice.py b/account_payment_partner/models/account_invoice.py
index 0fc72bb14..791ea10ff 100644
--- a/account_payment_partner/models/account_invoice.py
+++ b/account_payment_partner/models/account_invoice.py
@@ -44,7 +44,9 @@ class AccountInvoice(models.Model):
# No bank account assignation is done here as this is only
# needed for printing purposes and it can conflict with
# SEPA direct debit payments. Current report prints it.
- self.payment_mode_id = self.partner_id.customer_payment_mode_id
+ self.payment_mode_id = self.with_context(
+ force_company=self.company_id.id,
+ ).partner_id.customer_payment_mode_id
else:
self.payment_mode_id = False
if self.type == 'in_invoice':
diff --git a/account_payment_partner/tests/test_account_payment_partner.py b/account_payment_partner/tests/test_account_payment_partner.py
index 14ad3cb59..3bdb459a1 100644
--- a/account_payment_partner/tests/test_account_payment_partner.py
+++ b/account_payment_partner/tests/test_account_payment_partner.py
@@ -47,6 +47,7 @@ class TestAccountPaymentPartner(common.SavepointCase):
# refs
cls.manual_out = cls.env.ref(
'account.account_payment_method_manual_out')
+ cls.manual_out.bank_account_required = True
cls.manual_in = cls.env.ref(
'account.account_payment_method_manual_in')
@@ -77,6 +78,7 @@ class TestAccountPaymentPartner(common.SavepointCase):
'name': 'Suppliers Bank 1',
'bank_account_link': 'variable',
'payment_method_id': cls.manual_out.id,
+ 'show_bank_account_from_journal': True,
'company_id': cls.company.id,
'fixed_journal_id': cls.journal_c1.id,
'variable_journal_ids': [(6, 0, [cls.journal_c1.id])]
@@ -110,16 +112,17 @@ class TestAccountPaymentPartner(common.SavepointCase):
force_company=cls.company.id).create({
'name': 'Test supplier',
'supplier_payment_mode_id': cls.supplier_payment_mode,
- 'bank_ids': [
- (0, 0, {
- 'acc_number': '5345345',
- 'company_id': cls.company.id,
- }),
- (0, 0, {
- 'acc_number': '3452342',
- 'company_id': cls.company_2.id,
- })]
})
+ cls.supplier_bank = cls.env['res.partner.bank'].create({
+ 'acc_number': '5345345',
+ 'partner_id': cls.supplier.id,
+ 'company_id': cls.company.id,
+ })
+ cls.supplier_bank_2 = cls.env['res.partner.bank'].create({
+ 'acc_number': '3452342',
+ 'partner_id': cls.supplier.id,
+ 'company_id': cls.company_2.id,
+ })
cls.supplier.with_context(
force_company=cls.company_2.id).supplier_payment_mode_id = \
cls.supplier_payment_mode_c2
@@ -142,38 +145,10 @@ class TestAccountPaymentPartner(common.SavepointCase):
'type': 'bank',
'bank_account_id': cls.journal_bank.id,
})
- mode_in = cls.env['account.payment.mode'].create({
- 'name': 'Payment Mode Inbound',
- 'payment_method_id':
- cls.env.ref('account.account_payment_method_manual_in').id,
- 'bank_account_link': 'fixed',
- 'fixed_journal_id': cls.journal.id,
- })
- method_out = cls.env.ref('account.account_payment_method_manual_out')
- method_out.bank_account_required = True
- cls.mode_out = cls.env['account.payment.mode'].create({
- 'name': 'Payment Mode Outbound',
- 'payment_method_id': method_out.id,
- 'bank_account_link': 'fixed',
- 'fixed_journal_id': cls.journal.id,
- })
- cls.partner = cls.env['res.partner'].create({
- 'name': 'Test Partner',
- 'customer': True,
- 'customer_payment_mode_id': mode_in.id,
- })
- cls.supplier = cls.env['res.partner'].create({
- 'name': 'Test Supplier',
- 'supplier': True,
- 'supplier_payment_mode_id': cls.mode_out.id,
- })
- cls.supplier_bank = cls.env['res.partner.bank'].create({
- 'acc_number': 'GB18BARC20040131665123',
- 'partner_id': cls.supplier.id,
- })
cls.supplier_invoice = cls.env['account.invoice'].create({
'partner_id': cls.supplier.id,
'type': 'in_invoice',
+ 'journal_id': cls.journal_c1.id,
})
def _create_invoice(self):
@@ -223,9 +198,6 @@ class TestAccountPaymentPartner(common.SavepointCase):
invoice._onchange_partner_id()
self.assertEquals(invoice.payment_mode_id, self.customer_payment_mode)
- self.assertEquals(
- invoice.partner_bank_id,
- self.customer_payment_mode.fixed_journal_id.bank_account_id)
invoice.company_id = self.company_2
invoice._onchange_partner_id()
@@ -247,19 +219,13 @@ class TestAccountPaymentPartner(common.SavepointCase):
invoice._onchange_partner_id()
self.assertEquals(invoice.payment_mode_id, self.supplier_payment_mode)
- bank = self.partner_bank_model.search(
- [('acc_number', '=', '5345345')], limit=1)
- self.assertEquals(
- invoice.partner_bank_id,
- bank)
+ self.assertEquals(invoice.partner_bank_id, self.supplier_bank)
invoice.company_id = self.company_2
invoice._onchange_partner_id()
self.assertEquals(invoice.payment_mode_id,
self.supplier_payment_mode_c2)
- bank = self.partner_bank_model.search(
- [('acc_number', '=', '3452342')], limit=1)
- self.assertEquals(invoice.partner_bank_id, bank)
+ self.assertEquals(invoice.partner_bank_id, self.supplier_bank_2)
invoice.payment_mode_id = self.supplier_payment_mode
invoice._onchange_payment_mode_id()
@@ -359,12 +325,12 @@ class TestAccountPaymentPartner(common.SavepointCase):
def test_partner_onchange(self):
customer_invoice = self.env['account.invoice'].create({
- 'partner_id': self.partner.id,
+ 'partner_id': self.customer.id,
'type': 'out_invoice',
})
customer_invoice._onchange_partner_id()
self.assertEqual(customer_invoice.payment_mode_id,
- self.partner.customer_payment_mode_id)
+ self.customer_payment_mode)
self.supplier_invoice._onchange_partner_id()
self.assertEqual(self.supplier_invoice.partner_bank_id,
@@ -378,50 +344,39 @@ class TestAccountPaymentPartner(common.SavepointCase):
invoice._onchange_partner_id()
self.assertFalse(invoice.partner_bank_id)
- def test_payment_mode_id_change(self):
- self.supplier_invoice.payment_mode_id = self.mode_out.id
- self.supplier_invoice.payment_mode_id_change()
+ def test_onchange_payment_mode_id(self):
+ mode = self.supplier_payment_mode
+ mode.payment_method_id.bank_account_required = True
+ self.supplier_invoice.partner_bank_id = self.supplier_bank.id
+ self.supplier_invoice.payment_mode_id = mode.id
+ self.supplier_invoice._onchange_payment_mode_id()
self.assertEqual(self.supplier_invoice.partner_bank_id,
self.supplier_bank)
- self.mode_out.payment_method_id.bank_account_required = False
- self.supplier_invoice.payment_mode_id = self.mode_out.id
- self.supplier_invoice.payment_mode_id_change()
+ mode.payment_method_id.bank_account_required = False
+ self.supplier_invoice._onchange_payment_mode_id()
self.assertFalse(self.supplier_invoice.partner_bank_id)
self.supplier_invoice.payment_mode_id = False
- self.supplier_invoice.payment_mode_id_change()
+ self.supplier_invoice._onchange_payment_mode_id()
self.assertFalse(self.supplier_invoice.partner_bank_id)
def test_print_report(self):
- self.env['account.invoice.line'].create({
- 'invoice_id': self.supplier_invoice.id,
- 'name': 'Product Text',
- 'price_unit': 10.0,
- 'account_id': self.env.ref('l10n_generic_coa.1_conf_o_income').id,
- })
- self.supplier_invoice.action_invoice_open()
- self.assertEqual(
- self.supplier_invoice.move_id.line_ids[0].payment_mode_id,
- self.supplier_invoice.payment_mode_id)
- (res, _) = report.render_report(
- self.env.cr, self.env.uid,
- [self.supplier_invoice.id], 'account.report_invoice', {})
- self.assertRegexpMatches(res, self.supplier_bank.acc_number)
- self.supplier_invoice.partner_bank_id = False
- self.supplier_invoice.payment_mode_id\
- .show_bank_account_from_journal = True
- (res, _) = report.render_report(
- self.env.cr, self.env.uid,
- [self.supplier_invoice.id], 'account.report_invoice', {})
- self.assertRegexpMatches(res, self.journal_bank.acc_number)
- payment_mode = self.supplier_invoice.payment_mode_id
- self.supplier_invoice.payment_mode_id = False
- payment_mode.bank_account_link = 'variable'
- payment_mode.variable_journal_ids = [
- (6, 0, [self.journal.id])]
+ self.supplier_invoice.partner_bank_id = self.supplier_bank.id
+ report = self.env.ref('account.account_invoices')
+ res = str(report.render_qweb_html(
+ self.supplier_invoice.ids, report.report_name,
+ )[0])
+ self.assertIn(self.supplier_bank.acc_number, res)
+ payment_mode = self.supplier_payment_mode
+ payment_mode.show_bank_account_from_journal = True
self.supplier_invoice.payment_mode_id = payment_mode.id
- self.supplier_invoice.payment_mode_id_change()
- (res, _) = report.render_report(
- self.env.cr, self.env.uid,
- [self.supplier_invoice.id], 'account.report_invoice', {})
- self.assertRegexpMatches(
- res, self.journal_bank.acc_number)
+ self.supplier_invoice.partner_bank_id = False
+ res = str(report.render_qweb_html(
+ self.supplier_invoice.ids, report.report_name,
+ )[0])
+ self.assertIn(self.journal_c1.bank_acc_number, res)
+ payment_mode.bank_account_link = 'variable'
+ payment_mode.variable_journal_ids = [(6, 0, self.journal.ids)]
+ res = str(report.render_qweb_html(
+ self.supplier_invoice.ids, report.report_name,
+ )[0])
+ self.assertIn(self.journal_bank.acc_number, res)
From 81fe8d21a5524d2ebcb8e14f98632f7576f0798a Mon Sep 17 00:00:00 2001
From: Mourad
Date: Tue, 2 Oct 2018 17:29:25 +0200
Subject: [PATCH 32/58] [MIG] account_payment_partner: migrate to 12.0
---
account_payment_partner/README.rst | 52 +++++-------
account_payment_partner/__manifest__.py | 2 +-
account_payment_partner/readme/CONFIGURE.rst | 1 +
.../static/description/index.html | 80 ++++++++-----------
.../views/account_move_line.xml | 4 +-
5 files changed, 58 insertions(+), 81 deletions(-)
create mode 100644 account_payment_partner/readme/CONFIGURE.rst
diff --git a/account_payment_partner/README.rst b/account_payment_partner/README.rst
index 33edfef25..d83a4c51b 100644
--- a/account_payment_partner/README.rst
+++ b/account_payment_partner/README.rst
@@ -14,20 +14,18 @@ Account Payment Partner
: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/10.0/account_payment_partner
+ :target: https://github.com/OCA/bank-payment/tree/12.0/account_payment_partner
: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-10-0/bank-payment-10-0-account_payment_partner
+ :target: https://translation.odoo-community.org/projects/bank-payment-12-0/bank-payment-12-0-account_payment_partner
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
- :target: https://runbot.odoo-community.org/runbot/97/10.0
+ :target: https://runbot.odoo-community.org/runbot/97/12.0
:alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5|
-[ This file must be max 2-3 paragraphs, and is required. ]
-
-This module adds severals fields :
+This module adds severals fields:
* the *Supplier Payment Mode* and *Customer Payment Mode* on Partners,
@@ -53,35 +51,27 @@ word about that), so that's the reason behind the several options.
.. contents::
:local:
+Configuration
+=============
+
+There is nothing to configure.
+
Usage
=====
-[ This file must be present and contains the usage instructions
- for end-users. As all other rst files included in the README,
- it MUST NOT contain reStructuredText sections
- only body text (paragraphs, lists, tables, etc). Should you need
- a more elaborate structure to explain the addon, please create a
- Sphinx documentation (which may include this file as a "quick start"
- section). ]
-
You are able to add a payment mode directly on a partner.
-This payment mode is automatically associated to the invoice related to the partner. This default value could be change in a draft invoice.
-When you create an payment order, only invoices related to chosen payment mode are displayed.
-Invoices without any payment mode are displayed to.
+
+This payment mode is automatically associated to the invoice related to the
+partner. This default value could be changed in a draft invoice.
+
+When you create a payment order, only invoices related to chosen payment mode
+are displayed.
+
+Invoices without any payment mode are displayed too.
Changelog
=========
-[ The change log. The goal of this file is to help readers
- understand changes between version. The primary audience is
- end users and integrators. Purely technical changes such as
- code refactoring must not be mentioned here.
-
- This file may contain ONE level of section titles, underlined
- with the ~ (tilde) character. Other section markers are
- forbidden and will likely break the structure of the README.rst
- or other documents where this fragment is included. ]
-
10.0.1.2.0 (2018-05-24)
~~~~~~~~~~~~~~~~~~~~~~~
@@ -94,7 +84,7 @@ 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 `_.
+`feedback `_.
Do not contact contributors directly about support or help with technical issues.
@@ -119,8 +109,8 @@ Contributors
* Angel Moya
* `Tecnativa `_:
- * Pedro M. Baeza
- * Carlos Dauden
+ * Pedro M. Baeza
+ * Carlos Dauden
Maintainers
~~~~~~~~~~~
@@ -135,6 +125,6 @@ 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/bank-payment `_ project on GitHub.
+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_payment_partner/__manifest__.py b/account_payment_partner/__manifest__.py
index 44d90fa79..5644036d8 100644
--- a/account_payment_partner/__manifest__.py
+++ b/account_payment_partner/__manifest__.py
@@ -5,7 +5,7 @@
{
'name': 'Account Payment Partner',
- 'version': '11.0.1.3.0',
+ 'version': '12.0.1.0.0',
'category': 'Banking addons',
'license': 'AGPL-3',
'summary': 'Adds payment mode on partners and invoices',
diff --git a/account_payment_partner/readme/CONFIGURE.rst b/account_payment_partner/readme/CONFIGURE.rst
new file mode 100644
index 000000000..d088e17bc
--- /dev/null
+++ b/account_payment_partner/readme/CONFIGURE.rst
@@ -0,0 +1 @@
+There is nothing to configure.
\ No newline at end of file
diff --git a/account_payment_partner/static/description/index.html b/account_payment_partner/static/description/index.html
index 641f3296e..b36e11b42 100644
--- a/account_payment_partner/static/description/index.html
+++ b/account_payment_partner/static/description/index.html
@@ -367,9 +367,8 @@ ul.auto-toc {
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
-

-[ This file must be max 2-3 paragraphs, and is required. ]
-This module adds severals fields :
+

+This module adds severals fields:
- the Supplier Payment Mode and Customer Payment Mode on Partners,
- the Payment Mode on Invoices.
@@ -387,51 +386,38 @@ word about that), so that’s the reason behind the several options.
Table of contents
+
+
+
There is nothing to configure.
+
-
-
-- [ This file must be present and contains the usage instructions
-- for end-users. As all other rst files included in the README,
-it MUST NOT contain reStructuredText sections
-only body text (paragraphs, lists, tables, etc). Should you need
-a more elaborate structure to explain the addon, please create a
-Sphinx documentation (which may include this file as a “quick start”
-section). ]
-
-
You are able to add a payment mode directly on a partner.
-This payment mode is automatically associated to the invoice related to the partner. This default value could be change in a draft invoice.
-When you create an payment order, only invoices related to chosen payment mode are displayed.
-Invoices without any payment mode are displayed to.
+
+
You are able to add a payment mode directly on a partner.
+
This payment mode is automatically associated to the invoice related to the
+partner. This default value could be changed in a draft invoice.
+
When you create a payment order, only invoices related to chosen payment mode
+are displayed.
+
Invoices without any payment mode are displayed too.
-
-
-- [ The change log. The goal of this file is to help readers
-understand changes between version. The primary audience is
-end users and integrators. Purely technical changes such as
-code refactoring must not be mentioned here.
-This file may contain ONE level of section titles, underlined
-with the ~ (tilde) character. Other section markers are
-forbidden and will likely break the structure of the README.rst
-or other documents where this fragment is included. ]
-
-
+
-
+
- [IMP] Add options to show partner bank account in invoice report
(#458)
@@ -439,24 +425,24 @@ or other documents where this fragment is included. ]
-
+
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.
+
feedback.
Do not contact contributors directly about support or help with technical issues.
-
+
-
+
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.
-
This module is part of the OCA/bank-payment project on GitHub.
+
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_payment_partner/views/account_move_line.xml b/account_payment_partner/views/account_move_line.xml
index 601018111..fe2a916f2 100644
--- a/account_payment_partner/views/account_move_line.xml
+++ b/account_payment_partner/views/account_move_line.xml
@@ -13,11 +13,11 @@
account.move.line
-
+
-
+
From 00084a1a575f0789e4dfc3fe68f9f35a8fd0bdf4 Mon Sep 17 00:00:00 2001
From: "Pedro M. Baeza"
Date: Thu, 13 Dec 2018 14:03:03 +0100
Subject: [PATCH 33/58] [MIG] account_payment_partner: Fix tests for new
version
---
.../migrations/11.0.1.3.0/post-migrate.py | 12 ---------
.../tests/test_account_payment_partner.py | 27 ++++++-------------
2 files changed, 8 insertions(+), 31 deletions(-)
delete mode 100644 account_payment_partner/migrations/11.0.1.3.0/post-migrate.py
diff --git a/account_payment_partner/migrations/11.0.1.3.0/post-migrate.py b/account_payment_partner/migrations/11.0.1.3.0/post-migrate.py
deleted file mode 100644
index e63be7140..000000000
--- a/account_payment_partner/migrations/11.0.1.3.0/post-migrate.py
+++ /dev/null
@@ -1,12 +0,0 @@
-# -*- coding: utf-8 -*-
-# Copyright 2018 Carlos Dauden - Tecnativa
-# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
-
-
-def migrate(cr, version):
- """Update database from previous versions, after updating module."""
- cr.execute(
- "UPDATE account_payment_mode "
- "SET show_bank_account_from_journal = true "
- "WHERE bank_account_link = 'fixed'"
- )
diff --git a/account_payment_partner/tests/test_account_payment_partner.py b/account_payment_partner/tests/test_account_payment_partner.py
index 3bdb459a1..abd2349de 100644
--- a/account_payment_partner/tests/test_account_payment_partner.py
+++ b/account_payment_partner/tests/test_account_payment_partner.py
@@ -33,16 +33,10 @@ class TestAccountPaymentPartner(common.SavepointCase):
else:
raise ValidationError(
_("No Chart of Account Template has been defined !"))
- cls.wizard = cls.env['wizard.multi.charts.accounts'].create({
- 'company_id': cls.company_2.id,
- 'chart_template_id': cls.chart.id,
- 'sale_tax_id': False,
- 'purchase_tax_id': False,
- 'code_digits': 6,
- 'currency_id': cls.env.ref('base.EUR').id,
- 'transfer_account_id': cls.chart.transfer_account_id.id,
- })
- cls.wizard.execute()
+ old_company = cls.env.user.company_id
+ cls.env.user.company_id = cls.company_2.id
+ cls.chart.try_loading_for_current_company()
+ cls.env.user.company_id = old_company.id
# refs
cls.manual_out = cls.env.ref(
@@ -295,6 +289,7 @@ class TestAccountPaymentPartner(common.SavepointCase):
def test_invoice_refund(self):
invoice = self._create_invoice()
+ invoice.partner_bank_id = False
invoice.action_invoice_open()
# Lets create a refund invoice for invoice_1.
# I refund the invoice Using Refund Button.
@@ -362,21 +357,15 @@ class TestAccountPaymentPartner(common.SavepointCase):
def test_print_report(self):
self.supplier_invoice.partner_bank_id = self.supplier_bank.id
report = self.env.ref('account.account_invoices')
- res = str(report.render_qweb_html(
- self.supplier_invoice.ids, report.report_name,
- )[0])
+ res = str(report.render_qweb_html(self.supplier_invoice.ids)[0])
self.assertIn(self.supplier_bank.acc_number, res)
payment_mode = self.supplier_payment_mode
payment_mode.show_bank_account_from_journal = True
self.supplier_invoice.payment_mode_id = payment_mode.id
self.supplier_invoice.partner_bank_id = False
- res = str(report.render_qweb_html(
- self.supplier_invoice.ids, report.report_name,
- )[0])
+ res = str(report.render_qweb_html(self.supplier_invoice.ids)[0])
self.assertIn(self.journal_c1.bank_acc_number, res)
payment_mode.bank_account_link = 'variable'
payment_mode.variable_journal_ids = [(6, 0, self.journal.ids)]
- res = str(report.render_qweb_html(
- self.supplier_invoice.ids, report.report_name,
- )[0])
+ res = str(report.render_qweb_html(self.supplier_invoice.ids)[0])
self.assertIn(self.journal_bank.acc_number, res)
From f51954c54703a5370e7a0a2dc88ecca774acbe19 Mon Sep 17 00:00:00 2001
From: oca-travis
Date: Thu, 13 Dec 2018 13:31:25 +0000
Subject: [PATCH 34/58] [UPD] Update account_payment_partner.pot
---
.../i18n/account_payment_partner.pot | 96 +++++++++++++++----
1 file changed, 76 insertions(+), 20 deletions(-)
diff --git a/account_payment_partner/i18n/account_payment_partner.pot b/account_payment_partner/i18n/account_payment_partner.pot
index 12f3f19b2..852e7f331 100644
--- a/account_payment_partner/i18n/account_payment_partner.pot
+++ b/account_payment_partner/i18n/account_payment_partner.pot
@@ -4,7 +4,7 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 11.0\n"
+"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: <>\n"
"Language-Team: \n"
@@ -14,36 +14,70 @@ msgstr ""
"Plural-Forms: \n"
#. module: account_payment_partner
-#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.account_payment_mode_form
+msgid "# of chars"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_payment_mode__show_bank_account_chars
+msgid "# of digits for customer bank account"
+msgstr ""
+
+#. module: account_payment_partner
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
msgid "Bank Account:"
msgstr ""
#. module: account_payment_partner
-#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
msgid "Payment Mode:"
msgstr ""
#. module: account_payment_partner
-#: model:ir.model.fields,help:account_payment_partner.field_account_invoice_bank_account_required
+#: model:ir.model.fields,help:account_payment_partner.field_account_invoice__bank_account_required
msgid "Activate this option if this payment method requires you to know the bank account number of your customer or supplier."
msgstr ""
#. module: account_payment_partner
-#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_bank_account_required
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice__partner_bank_id
+msgid "Bank Account"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,help:account_payment_partner.field_account_invoice__partner_bank_id
+msgid "Bank Account Number to which the invoice will be paid. A Company bank account if this is a Customer Invoice or Vendor Credit Note, otherwise a Partner bank account number."
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice__bank_account_required
msgid "Bank Account Required"
msgstr ""
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_payment_mode__show_bank_account_from_journal
+msgid "Bank account from journals"
+msgstr ""
+
#. module: account_payment_partner
#: model:ir.model,name:account_payment_partner.model_res_partner
msgid "Contact"
msgstr ""
#. module: account_payment_partner
-#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_customer_payment_mode_id
-#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_customer_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner__customer_payment_mode_id
msgid "Customer Payment Mode"
msgstr ""
+#. module: account_payment_partner
+#: selection:account.payment.mode,show_bank_account:0
+msgid "First n chars"
+msgstr ""
+
+#. module: account_payment_partner
+#: selection:account.payment.mode,show_bank_account:0
+msgid "Full"
+msgstr ""
+
#. module: account_payment_partner
#: model:ir.model,name:account_payment_partner.model_account_invoice
msgid "Invoice"
@@ -54,6 +88,16 @@ msgstr ""
msgid "Journal Item"
msgstr ""
+#. module: account_payment_partner
+#: selection:account.payment.mode,show_bank_account:0
+msgid "Last n chars"
+msgstr ""
+
+#. module: account_payment_partner
+#: selection:account.payment.mode,show_bank_account:0
+msgid "No"
+msgstr ""
+
#. module: account_payment_partner
#: code:addons/account_payment_partner/tests/test_account_payment_partner.py:35
#, python-format
@@ -61,9 +105,9 @@ msgid "No Chart of Account Template has been defined !"
msgstr ""
#. module: account_payment_partner
-#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_payment_mode_id
-#: model:ir.model.fields,field_description:account_payment_partner.field_account_move_line_payment_mode_id
-#: model:ir.ui.view,arch_db:account_payment_partner.view_account_invoice_filter
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice__payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_move_line__payment_mode_id
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.view_account_invoice_filter
msgid "Payment Mode"
msgstr ""
@@ -73,42 +117,54 @@ msgid "Payment Modes"
msgstr ""
#. module: account_payment_partner
-#: model:ir.ui.view,arch_db:account_payment_partner.view_move_line_form
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.view_move_line_form
msgid "Payments"
msgstr ""
#. module: account_payment_partner
-#: model:ir.model.fields,help:account_payment_partner.field_res_partner_customer_payment_mode_id
-#: model:ir.model.fields,help:account_payment_partner.field_res_users_customer_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_partner__customer_payment_mode_id
msgid "Select the default payment mode for this customer."
msgstr ""
#. module: account_payment_partner
-#: model:ir.model.fields,help:account_payment_partner.field_res_partner_supplier_payment_mode_id
-#: model:ir.model.fields,help:account_payment_partner.field_res_users_supplier_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_partner__supplier_payment_mode_id
msgid "Select the default payment mode for this supplier."
msgstr ""
#. module: account_payment_partner
-#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_supplier_payment_mode_id
-#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_supplier_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_payment_mode__show_bank_account
+msgid "Show bank account"
+msgstr ""
+
+#. module: account_payment_partner
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.account_payment_mode_form
+msgid "Show bank account in invoice report"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,help:account_payment_partner.field_account_payment_mode__show_bank_account
+msgid "Show in invoices partial or full bank account number"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner__supplier_payment_mode_id
msgid "Supplier Payment Mode"
msgstr ""
#. module: account_payment_partner
-#: code:addons/account_payment_partner/models/account_invoice.py:119
+#: code:addons/account_payment_partner/models/account_invoice.py:117
#, python-format
msgid "The company of the invoice %s does not match with that of the payment mode"
msgstr ""
#. module: account_payment_partner
-#: code:addons/account_payment_partner/models/account_payment_mode.py:17
+#: code:addons/account_payment_partner/models/account_payment_mode.py:35
#, python-format
msgid "You cannot change the Company. There exists at least one Invoice with this Payment Mode, already assigned to another Company."
msgstr ""
#. module: account_payment_partner
-#: code:addons/account_payment_partner/models/account_payment_mode.py:28
+#: code:addons/account_payment_partner/models/account_payment_mode.py:46
#, python-format
msgid "You cannot change the Company. There exists at least one Journal Item with this Payment Mode, already assigned to another Company."
msgstr ""
From 104a3fda20fb4c49ff5b3f94aea85d03bd9e23be Mon Sep 17 00:00:00 2001
From: "Pedro M. Baeza"
Date: Fri, 14 Dec 2018 11:21:33 +0100
Subject: [PATCH 35/58] [MIG] account_banking_pain_base: Migration to 12.0
* Standard migration procedure
* README by fragments
* Fixed tests
* Change
* Fix related no readonly in account_banking_pain_base
* Override default partner bank account check on account_payment_partner
* Convert Python date to string
---
account_payment_partner/models/account_invoice.py | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/account_payment_partner/models/account_invoice.py b/account_payment_partner/models/account_invoice.py
index 791ea10ff..95622bcb4 100644
--- a/account_payment_partner/models/account_invoice.py
+++ b/account_payment_partner/models/account_invoice.py
@@ -117,6 +117,14 @@ class AccountInvoice(models.Model):
_("The company of the invoice %s does not match "
"with that of the payment mode") % rec.name)
+ @api.constrains('partner_id', 'partner_bank_id')
+ def validate_partner_bank_id(self):
+ """Inhibit the validation of the bank account by default, as core
+ rules are not the expected one for the bank-payment suite.
+ """
+ if self.env.context.get('use_old_partner_bank_id_check'):
+ super().validate_partner_bank_id()
+
def partner_banks_to_show(self):
self.ensure_one()
if self.partner_bank_id:
From fa1383cf7655515a397f6bbc9d0ec3851bf62ab6 Mon Sep 17 00:00:00 2001
From: OCA Transbot
Date: Sat, 29 Dec 2018 11:22:08 +0000
Subject: [PATCH 36/58] Update translation files
Updated by Update PO files to match POT (msgmerge) hook in Weblate.
---
.../i18n/account_payment_partner.pot | 4 +
account_payment_partner/i18n/ca.po | 101 ++++++++++++---
account_payment_partner/i18n/da_DK.po | 101 ++++++++++++---
account_payment_partner/i18n/de.po | 102 ++++++++++++---
account_payment_partner/i18n/es.po | 118 ++++++++++--------
account_payment_partner/i18n/fr.po | 102 ++++++++++++---
account_payment_partner/i18n/hr.po | 102 ++++++++++++---
account_payment_partner/i18n/nb_NO.po | 102 ++++++++++++---
account_payment_partner/i18n/nl.po | 102 ++++++++++++---
account_payment_partner/i18n/pt_BR.po | 101 ++++++++++++---
account_payment_partner/i18n/sl.po | 101 ++++++++++++---
11 files changed, 816 insertions(+), 220 deletions(-)
diff --git a/account_payment_partner/i18n/account_payment_partner.pot b/account_payment_partner/i18n/account_payment_partner.pot
index 852e7f331..2fc36123e 100644
--- a/account_payment_partner/i18n/account_payment_partner.pot
+++ b/account_payment_partner/i18n/account_payment_partner.pot
@@ -65,6 +65,7 @@ msgstr ""
#. module: account_payment_partner
#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner__customer_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_users__customer_payment_mode_id
msgid "Customer Payment Mode"
msgstr ""
@@ -123,11 +124,13 @@ msgstr ""
#. module: account_payment_partner
#: model:ir.model.fields,help:account_payment_partner.field_res_partner__customer_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_users__customer_payment_mode_id
msgid "Select the default payment mode for this customer."
msgstr ""
#. module: account_payment_partner
#: model:ir.model.fields,help:account_payment_partner.field_res_partner__supplier_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_users__supplier_payment_mode_id
msgid "Select the default payment mode for this supplier."
msgstr ""
@@ -148,6 +151,7 @@ msgstr ""
#. module: account_payment_partner
#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner__supplier_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_users__supplier_payment_mode_id
msgid "Supplier Payment Mode"
msgstr ""
diff --git a/account_payment_partner/i18n/ca.po b/account_payment_partner/i18n/ca.po
index 49c190d6c..eeda8328e 100644
--- a/account_payment_partner/i18n/ca.po
+++ b/account_payment_partner/i18n/ca.po
@@ -19,38 +19,76 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: account_payment_partner
-#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.account_payment_mode_form
+msgid "# of chars"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_payment_mode__show_bank_account_chars
+msgid "# of digits for customer bank account"
+msgstr ""
+
+#. module: account_payment_partner
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
msgid "Bank Account:"
msgstr ""
#. module: account_payment_partner
-#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
msgid "Payment Mode:"
msgstr "Mode de pagament:"
#. module: account_payment_partner
-#: model:ir.model.fields,help:account_payment_partner.field_account_invoice_bank_account_required
+#: model:ir.model.fields,help:account_payment_partner.field_account_invoice__bank_account_required
msgid ""
"Activate this option if this payment method requires you to know the bank "
"account number of your customer or supplier."
msgstr ""
#. module: account_payment_partner
-#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_bank_account_required
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice__partner_bank_id
+msgid "Bank Account"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,help:account_payment_partner.field_account_invoice__partner_bank_id
+msgid ""
+"Bank Account Number to which the invoice will be paid. A Company bank "
+"account if this is a Customer Invoice or Vendor Credit Note, otherwise a "
+"Partner bank account number."
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice__bank_account_required
msgid "Bank Account Required"
msgstr ""
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_payment_mode__show_bank_account_from_journal
+msgid "Bank account from journals"
+msgstr ""
+
#. module: account_payment_partner
#: model:ir.model,name:account_payment_partner.model_res_partner
msgid "Contact"
msgstr ""
#. module: account_payment_partner
-#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_customer_payment_mode_id
-#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_customer_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner__customer_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_users__customer_payment_mode_id
msgid "Customer Payment Mode"
msgstr ""
+#. module: account_payment_partner
+#: selection:account.payment.mode,show_bank_account:0
+msgid "First n chars"
+msgstr ""
+
+#. module: account_payment_partner
+#: selection:account.payment.mode,show_bank_account:0
+msgid "Full"
+msgstr ""
+
#. module: account_payment_partner
#: model:ir.model,name:account_payment_partner.model_account_invoice
msgid "Invoice"
@@ -61,6 +99,16 @@ msgstr ""
msgid "Journal Item"
msgstr ""
+#. module: account_payment_partner
+#: selection:account.payment.mode,show_bank_account:0
+msgid "Last n chars"
+msgstr ""
+
+#. module: account_payment_partner
+#: selection:account.payment.mode,show_bank_account:0
+msgid "No"
+msgstr ""
+
#. module: account_payment_partner
#: code:addons/account_payment_partner/tests/test_account_payment_partner.py:35
#, python-format
@@ -68,9 +116,9 @@ msgid "No Chart of Account Template has been defined !"
msgstr ""
#. module: account_payment_partner
-#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_payment_mode_id
-#: model:ir.model.fields,field_description:account_payment_partner.field_account_move_line_payment_mode_id
-#: model:ir.ui.view,arch_db:account_payment_partner.view_account_invoice_filter
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice__payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_move_line__payment_mode_id
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.view_account_invoice_filter
msgid "Payment Mode"
msgstr "Mode de pagament"
@@ -80,37 +128,52 @@ msgid "Payment Modes"
msgstr ""
#. module: account_payment_partner
-#: model:ir.ui.view,arch_db:account_payment_partner.view_move_line_form
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.view_move_line_form
msgid "Payments"
msgstr ""
#. module: account_payment_partner
-#: model:ir.model.fields,help:account_payment_partner.field_res_partner_customer_payment_mode_id
-#: model:ir.model.fields,help:account_payment_partner.field_res_users_customer_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_partner__customer_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_users__customer_payment_mode_id
msgid "Select the default payment mode for this customer."
msgstr ""
#. module: account_payment_partner
-#: model:ir.model.fields,help:account_payment_partner.field_res_partner_supplier_payment_mode_id
-#: model:ir.model.fields,help:account_payment_partner.field_res_users_supplier_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_partner__supplier_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_users__supplier_payment_mode_id
msgid "Select the default payment mode for this supplier."
msgstr ""
#. module: account_payment_partner
-#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_supplier_payment_mode_id
-#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_supplier_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_payment_mode__show_bank_account
+msgid "Show bank account"
+msgstr ""
+
+#. module: account_payment_partner
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.account_payment_mode_form
+msgid "Show bank account in invoice report"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,help:account_payment_partner.field_account_payment_mode__show_bank_account
+msgid "Show in invoices partial or full bank account number"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner__supplier_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_users__supplier_payment_mode_id
msgid "Supplier Payment Mode"
msgstr ""
#. module: account_payment_partner
-#: code:addons/account_payment_partner/models/account_invoice.py:119
+#: code:addons/account_payment_partner/models/account_invoice.py:117
#, python-format
msgid ""
"The company of the invoice %s does not match with that of the payment mode"
msgstr ""
#. module: account_payment_partner
-#: code:addons/account_payment_partner/models/account_payment_mode.py:17
+#: code:addons/account_payment_partner/models/account_payment_mode.py:35
#, python-format
msgid ""
"You cannot change the Company. There exists at least one Invoice with this "
@@ -118,7 +181,7 @@ msgid ""
msgstr ""
#. module: account_payment_partner
-#: code:addons/account_payment_partner/models/account_payment_mode.py:28
+#: code:addons/account_payment_partner/models/account_payment_mode.py:46
#, python-format
msgid ""
"You cannot change the Company. There exists at least one Journal Item with "
diff --git a/account_payment_partner/i18n/da_DK.po b/account_payment_partner/i18n/da_DK.po
index 4828a7c8c..08672ced7 100644
--- a/account_payment_partner/i18n/da_DK.po
+++ b/account_payment_partner/i18n/da_DK.po
@@ -20,38 +20,76 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: account_payment_partner
-#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.account_payment_mode_form
+msgid "# of chars"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_payment_mode__show_bank_account_chars
+msgid "# of digits for customer bank account"
+msgstr ""
+
+#. module: account_payment_partner
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
msgid "Bank Account:"
msgstr ""
#. module: account_payment_partner
-#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
msgid "Payment Mode:"
msgstr ""
#. module: account_payment_partner
-#: model:ir.model.fields,help:account_payment_partner.field_account_invoice_bank_account_required
+#: model:ir.model.fields,help:account_payment_partner.field_account_invoice__bank_account_required
msgid ""
"Activate this option if this payment method requires you to know the bank "
"account number of your customer or supplier."
msgstr ""
#. module: account_payment_partner
-#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_bank_account_required
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice__partner_bank_id
+msgid "Bank Account"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,help:account_payment_partner.field_account_invoice__partner_bank_id
+msgid ""
+"Bank Account Number to which the invoice will be paid. A Company bank "
+"account if this is a Customer Invoice or Vendor Credit Note, otherwise a "
+"Partner bank account number."
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice__bank_account_required
msgid "Bank Account Required"
msgstr ""
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_payment_mode__show_bank_account_from_journal
+msgid "Bank account from journals"
+msgstr ""
+
#. module: account_payment_partner
#: model:ir.model,name:account_payment_partner.model_res_partner
msgid "Contact"
msgstr ""
#. module: account_payment_partner
-#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_customer_payment_mode_id
-#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_customer_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner__customer_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_users__customer_payment_mode_id
msgid "Customer Payment Mode"
msgstr ""
+#. module: account_payment_partner
+#: selection:account.payment.mode,show_bank_account:0
+msgid "First n chars"
+msgstr ""
+
+#. module: account_payment_partner
+#: selection:account.payment.mode,show_bank_account:0
+msgid "Full"
+msgstr ""
+
#. module: account_payment_partner
#: model:ir.model,name:account_payment_partner.model_account_invoice
msgid "Invoice"
@@ -62,6 +100,16 @@ msgstr ""
msgid "Journal Item"
msgstr ""
+#. module: account_payment_partner
+#: selection:account.payment.mode,show_bank_account:0
+msgid "Last n chars"
+msgstr ""
+
+#. module: account_payment_partner
+#: selection:account.payment.mode,show_bank_account:0
+msgid "No"
+msgstr ""
+
#. module: account_payment_partner
#: code:addons/account_payment_partner/tests/test_account_payment_partner.py:35
#, python-format
@@ -69,9 +117,9 @@ msgid "No Chart of Account Template has been defined !"
msgstr ""
#. module: account_payment_partner
-#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_payment_mode_id
-#: model:ir.model.fields,field_description:account_payment_partner.field_account_move_line_payment_mode_id
-#: model:ir.ui.view,arch_db:account_payment_partner.view_account_invoice_filter
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice__payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_move_line__payment_mode_id
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.view_account_invoice_filter
msgid "Payment Mode"
msgstr "Betalingsform"
@@ -81,37 +129,52 @@ msgid "Payment Modes"
msgstr ""
#. module: account_payment_partner
-#: model:ir.ui.view,arch_db:account_payment_partner.view_move_line_form
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.view_move_line_form
msgid "Payments"
msgstr ""
#. module: account_payment_partner
-#: model:ir.model.fields,help:account_payment_partner.field_res_partner_customer_payment_mode_id
-#: model:ir.model.fields,help:account_payment_partner.field_res_users_customer_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_partner__customer_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_users__customer_payment_mode_id
msgid "Select the default payment mode for this customer."
msgstr ""
#. module: account_payment_partner
-#: model:ir.model.fields,help:account_payment_partner.field_res_partner_supplier_payment_mode_id
-#: model:ir.model.fields,help:account_payment_partner.field_res_users_supplier_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_partner__supplier_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_users__supplier_payment_mode_id
msgid "Select the default payment mode for this supplier."
msgstr ""
#. module: account_payment_partner
-#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_supplier_payment_mode_id
-#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_supplier_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_payment_mode__show_bank_account
+msgid "Show bank account"
+msgstr ""
+
+#. module: account_payment_partner
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.account_payment_mode_form
+msgid "Show bank account in invoice report"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,help:account_payment_partner.field_account_payment_mode__show_bank_account
+msgid "Show in invoices partial or full bank account number"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner__supplier_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_users__supplier_payment_mode_id
msgid "Supplier Payment Mode"
msgstr ""
#. module: account_payment_partner
-#: code:addons/account_payment_partner/models/account_invoice.py:119
+#: code:addons/account_payment_partner/models/account_invoice.py:117
#, python-format
msgid ""
"The company of the invoice %s does not match with that of the payment mode"
msgstr ""
#. module: account_payment_partner
-#: code:addons/account_payment_partner/models/account_payment_mode.py:17
+#: code:addons/account_payment_partner/models/account_payment_mode.py:35
#, python-format
msgid ""
"You cannot change the Company. There exists at least one Invoice with this "
@@ -119,7 +182,7 @@ msgid ""
msgstr ""
#. module: account_payment_partner
-#: code:addons/account_payment_partner/models/account_payment_mode.py:28
+#: code:addons/account_payment_partner/models/account_payment_mode.py:46
#, python-format
msgid ""
"You cannot change the Company. There exists at least one Journal Item with "
diff --git a/account_payment_partner/i18n/de.po b/account_payment_partner/i18n/de.po
index 90e0f89bc..43223c8e2 100644
--- a/account_payment_partner/i18n/de.po
+++ b/account_payment_partner/i18n/de.po
@@ -19,17 +19,27 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: account_payment_partner
-#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.account_payment_mode_form
+msgid "# of chars"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_payment_mode__show_bank_account_chars
+msgid "# of digits for customer bank account"
+msgstr ""
+
+#. module: account_payment_partner
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
msgid "Bank Account:"
msgstr "Bankkonto:"
#. module: account_payment_partner
-#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
msgid "Payment Mode:"
msgstr "Zahlungsmethode:"
#. module: account_payment_partner
-#: model:ir.model.fields,help:account_payment_partner.field_account_invoice_bank_account_required
+#: model:ir.model.fields,help:account_payment_partner.field_account_invoice__bank_account_required
msgid ""
"Activate this option if this payment method requires you to know the bank "
"account number of your customer or supplier."
@@ -38,21 +48,50 @@ msgstr ""
"des Kunden oder Lieferanten bekannt sein muss."
#. module: account_payment_partner
-#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_bank_account_required
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice__partner_bank_id
+#, fuzzy
+msgid "Bank Account"
+msgstr "Bankkonto erforderlich"
+
+#. module: account_payment_partner
+#: model:ir.model.fields,help:account_payment_partner.field_account_invoice__partner_bank_id
+msgid ""
+"Bank Account Number to which the invoice will be paid. A Company bank "
+"account if this is a Customer Invoice or Vendor Credit Note, otherwise a "
+"Partner bank account number."
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice__bank_account_required
msgid "Bank Account Required"
msgstr "Bankkonto erforderlich"
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_payment_mode__show_bank_account_from_journal
+msgid "Bank account from journals"
+msgstr ""
+
#. module: account_payment_partner
#: model:ir.model,name:account_payment_partner.model_res_partner
msgid "Contact"
msgstr ""
#. module: account_payment_partner
-#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_customer_payment_mode_id
-#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_customer_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner__customer_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_users__customer_payment_mode_id
msgid "Customer Payment Mode"
msgstr "Zahlungsmethode des Kunden"
+#. module: account_payment_partner
+#: selection:account.payment.mode,show_bank_account:0
+msgid "First n chars"
+msgstr ""
+
+#. module: account_payment_partner
+#: selection:account.payment.mode,show_bank_account:0
+msgid "Full"
+msgstr ""
+
#. module: account_payment_partner
#: model:ir.model,name:account_payment_partner.model_account_invoice
msgid "Invoice"
@@ -63,6 +102,16 @@ msgstr "Rechnung"
msgid "Journal Item"
msgstr "Logbuch Eintrag"
+#. module: account_payment_partner
+#: selection:account.payment.mode,show_bank_account:0
+msgid "Last n chars"
+msgstr ""
+
+#. module: account_payment_partner
+#: selection:account.payment.mode,show_bank_account:0
+msgid "No"
+msgstr ""
+
#. module: account_payment_partner
#: code:addons/account_payment_partner/tests/test_account_payment_partner.py:35
#, python-format
@@ -70,9 +119,9 @@ msgid "No Chart of Account Template has been defined !"
msgstr ""
#. module: account_payment_partner
-#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_payment_mode_id
-#: model:ir.model.fields,field_description:account_payment_partner.field_account_move_line_payment_mode_id
-#: model:ir.ui.view,arch_db:account_payment_partner.view_account_invoice_filter
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice__payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_move_line__payment_mode_id
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.view_account_invoice_filter
msgid "Payment Mode"
msgstr "Zahlungsmodus"
@@ -82,37 +131,52 @@ msgid "Payment Modes"
msgstr "Zahlungsmodi"
#. module: account_payment_partner
-#: model:ir.ui.view,arch_db:account_payment_partner.view_move_line_form
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.view_move_line_form
msgid "Payments"
msgstr "Zahlungen"
#. module: account_payment_partner
-#: model:ir.model.fields,help:account_payment_partner.field_res_partner_customer_payment_mode_id
-#: model:ir.model.fields,help:account_payment_partner.field_res_users_customer_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_partner__customer_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_users__customer_payment_mode_id
msgid "Select the default payment mode for this customer."
msgstr "Wähle die standard Zahlungsmethode für diesen Kunden."
#. module: account_payment_partner
-#: model:ir.model.fields,help:account_payment_partner.field_res_partner_supplier_payment_mode_id
-#: model:ir.model.fields,help:account_payment_partner.field_res_users_supplier_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_partner__supplier_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_users__supplier_payment_mode_id
msgid "Select the default payment mode for this supplier."
msgstr "Wähle die standard Zahlungsmethode für diesen Lieferanten."
#. module: account_payment_partner
-#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_supplier_payment_mode_id
-#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_supplier_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_payment_mode__show_bank_account
+msgid "Show bank account"
+msgstr ""
+
+#. module: account_payment_partner
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.account_payment_mode_form
+msgid "Show bank account in invoice report"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,help:account_payment_partner.field_account_payment_mode__show_bank_account
+msgid "Show in invoices partial or full bank account number"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner__supplier_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_users__supplier_payment_mode_id
msgid "Supplier Payment Mode"
msgstr "Zahlungsmethode des Lieferanten"
#. module: account_payment_partner
-#: code:addons/account_payment_partner/models/account_invoice.py:119
+#: code:addons/account_payment_partner/models/account_invoice.py:117
#, python-format
msgid ""
"The company of the invoice %s does not match with that of the payment mode"
msgstr ""
#. module: account_payment_partner
-#: code:addons/account_payment_partner/models/account_payment_mode.py:17
+#: code:addons/account_payment_partner/models/account_payment_mode.py:35
#, python-format
msgid ""
"You cannot change the Company. There exists at least one Invoice with this "
@@ -120,7 +184,7 @@ msgid ""
msgstr ""
#. module: account_payment_partner
-#: code:addons/account_payment_partner/models/account_payment_mode.py:28
+#: code:addons/account_payment_partner/models/account_payment_mode.py:46
#, python-format
msgid ""
"You cannot change the Company. There exists at least one Journal Item with "
diff --git a/account_payment_partner/i18n/es.po b/account_payment_partner/i18n/es.po
index f30143010..19313b610 100644
--- a/account_payment_partner/i18n/es.po
+++ b/account_payment_partner/i18n/es.po
@@ -20,42 +20,66 @@ msgstr ""
"X-Generator: Weblate 3.0.1\n"
#. module: account_payment_partner
-#: model:ir.ui.view,arch_db:account_payment_partner.account_payment_mode_form
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.account_payment_mode_form
msgid "# of chars"
msgstr "Nº de caracteres"
#. module: account_payment_partner
-#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_payment_mode__show_bank_account_chars
+msgid "# of digits for customer bank account"
+msgstr "Nº de dígitos de cuenta bancaria del cliente"
+
+#. module: account_payment_partner
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
msgid "Bank Account:"
msgstr "Cuenta bancaria:"
#. module: account_payment_partner
-#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
msgid "Payment Mode:"
msgstr "Modo de pago:"
#. module: account_payment_partner
-#: model:ir.model.fields,help:account_payment_partner.field_account_invoice_bank_account_required
-msgid "Activate this option if this payment method requires you to know the bank account number of your customer or supplier."
-msgstr "Activa esta opción si este método de pago debe requerirte informar el número de cuenta bancaria de tu cliente o proveedor"
+#: model:ir.model.fields,help:account_payment_partner.field_account_invoice__bank_account_required
+msgid ""
+"Activate this option if this payment method requires you to know the bank "
+"account number of your customer or supplier."
+msgstr ""
+"Activa esta opción si este método de pago debe requerirte informar el número "
+"de cuenta bancaria de tu cliente o proveedor"
#. module: account_payment_partner
-#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_bank_account_required
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice__partner_bank_id
+#, fuzzy
+msgid "Bank Account"
+msgstr "Cuenta bancaria requerida"
+
+#. module: account_payment_partner
+#: model:ir.model.fields,help:account_payment_partner.field_account_invoice__partner_bank_id
+msgid ""
+"Bank Account Number to which the invoice will be paid. A Company bank "
+"account if this is a Customer Invoice or Vendor Credit Note, otherwise a "
+"Partner bank account number."
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice__bank_account_required
msgid "Bank Account Required"
msgstr "Cuenta bancaria requerida"
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_payment_mode__show_bank_account_from_journal
+msgid "Bank account from journals"
+msgstr "Cuenta bancaria de los diarios"
+
#. module: account_payment_partner
#: model:ir.model,name:account_payment_partner.model_res_partner
msgid "Contact"
msgstr "Contacto"
-#: model:ir.model.fields,field_description:account_payment_partner.field_account_payment_mode_show_bank_account_from_journal
-msgid "Bank account from journals"
-msgstr "Cuenta bancaria de los diarios"
-
#. module: account_payment_partner
-#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_customer_payment_mode_id
-#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_customer_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner__customer_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_users__customer_payment_mode_id
msgid "Customer Payment Mode"
msgstr "Modo de pago de cliente"
@@ -79,12 +103,6 @@ msgstr "Factura"
msgid "Journal Item"
msgstr "Apunte contable"
-#. module: account_payment_partner
-#: code:addons/account_payment_partner/tests/test_account_payment_partner.py:35
-#, python-format
-msgid "No Chart of Account Template has been defined !"
-msgstr "No se ha definido un Plan Contable!"
-
#. module: account_payment_partner
#: selection:account.payment.mode,show_bank_account:0
msgid "Last n chars"
@@ -96,24 +114,15 @@ msgid "No"
msgstr "No"
#. module: account_payment_partner
-#: model:ir.model.fields,field_description:account_payment_partner.field_account_payment_mode_show_bank_account_chars
-msgid "# of digits for customer bank account"
-msgstr "Nº de dígitos de cuenta bancaria del cliente"
+#: code:addons/account_payment_partner/tests/test_account_payment_partner.py:35
+#, python-format
+msgid "No Chart of Account Template has been defined !"
+msgstr "No se ha definido un Plan Contable!"
#. module: account_payment_partner
-#: model:ir.model,name:account_payment_partner.model_res_partner
-msgid "Partner"
-msgstr "Empresa"
-
-#. module: account_payment_partner
-#: model:ir.model,name:account_payment_partner.model_account_payment_method
-msgid "Payment Methods"
-msgstr "Métodos de pago"
-
-#. module: account_payment_partner
-#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_payment_mode_id
-#: model:ir.model.fields,field_description:account_payment_partner.field_account_move_line_payment_mode_id
-#: model:ir.ui.view,arch_db:account_payment_partner.view_account_invoice_filter
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice__payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_move_line__payment_mode_id
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.view_account_invoice_filter
msgid "Payment Mode"
msgstr "Modo de pago"
@@ -123,51 +132,56 @@ msgid "Payment Modes"
msgstr "Modos de pago"
#. module: account_payment_partner
-#: model:ir.ui.view,arch_db:account_payment_partner.view_move_line_form
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.view_move_line_form
msgid "Payments"
msgstr "Pagos"
#. module: account_payment_partner
-#: model:ir.model.fields,help:account_payment_partner.field_res_partner_customer_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_partner__customer_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_users__customer_payment_mode_id
msgid "Select the default payment mode for this customer."
-msgstr "Seleccione el modo de pago por defecto cuando esta empresa actúa como cliente."
+msgstr ""
+"Seleccione el modo de pago por defecto cuando esta empresa actúa como "
+"cliente."
#. module: account_payment_partner
-#: model:ir.model.fields,help:account_payment_partner.field_res_partner_supplier_payment_mode_id
-#: model:ir.model.fields,help:account_payment_partner.field_res_users_supplier_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_partner__supplier_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_users__supplier_payment_mode_id
msgid "Select the default payment mode for this supplier."
-msgstr "Seleccione el modo de pago por defecto cuando esta empresa actúa como proveedor."
+msgstr ""
+"Seleccione el modo de pago por defecto cuando esta empresa actúa como "
+"proveedor."
#. module: account_payment_partner
-#: model:ir.model.fields,field_description:account_payment_partner.field_account_payment_mode_show_bank_account
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_payment_mode__show_bank_account
msgid "Show bank account"
msgstr "Mostrar cuenta bancaria"
#. module: account_payment_partner
-#: model:ir.ui.view,arch_db:account_payment_partner.account_payment_mode_form
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.account_payment_mode_form
msgid "Show bank account in invoice report"
msgstr "Mostrar cuenta bancaria en informe factura"
#. module: account_payment_partner
-#: model:ir.model.fields,help:account_payment_partner.field_account_payment_mode_show_bank_account
+#: model:ir.model.fields,help:account_payment_partner.field_account_payment_mode__show_bank_account
msgid "Show in invoices partial or full bank account number"
msgstr "Mostrar en facturas nº de cuenta bancaria parcial o completo"
#. module: account_payment_partner
-#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_supplier_payment_mode_id
-#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_supplier_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner__supplier_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_users__supplier_payment_mode_id
msgid "Supplier Payment Mode"
msgstr "Modo de pago de proveedor"
#. module: account_payment_partner
-#: code:addons/account_payment_partner/models/account_invoice.py:119
+#: code:addons/account_payment_partner/models/account_invoice.py:117
#, python-format
msgid ""
"The company of the invoice %s does not match with that of the payment mode"
msgstr "La compañía de la factura %s no corresponde con la del modo de pago"
#. module: account_payment_partner
-#: code:addons/account_payment_partner/models/account_payment_mode.py:17
+#: code:addons/account_payment_partner/models/account_payment_mode.py:35
#, python-format
msgid ""
"You cannot change the Company. There exists at least one Invoice with this "
@@ -177,7 +191,7 @@ msgstr ""
"Modo de Pago asignado a otra Compañía."
#. module: account_payment_partner
-#: code:addons/account_payment_partner/models/account_payment_mode.py:28
+#: code:addons/account_payment_partner/models/account_payment_mode.py:46
#, python-format
msgid ""
"You cannot change the Company. There exists at least one Journal Item with "
@@ -185,3 +199,9 @@ msgid ""
msgstr ""
"No puede cambiar la Compañía. Existe como mínimo una elemento del Diario con "
"este Modo de Pago que ya está asignado a otra Compañía."
+
+#~ msgid "Partner"
+#~ msgstr "Empresa"
+
+#~ msgid "Payment Methods"
+#~ msgstr "Métodos de pago"
diff --git a/account_payment_partner/i18n/fr.po b/account_payment_partner/i18n/fr.po
index c4ab4aaa2..9757e6acd 100644
--- a/account_payment_partner/i18n/fr.po
+++ b/account_payment_partner/i18n/fr.po
@@ -21,17 +21,27 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: account_payment_partner
-#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.account_payment_mode_form
+msgid "# of chars"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_payment_mode__show_bank_account_chars
+msgid "# of digits for customer bank account"
+msgstr ""
+
+#. module: account_payment_partner
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
msgid "Bank Account:"
msgstr "Compte bancaire:"
#. module: account_payment_partner
-#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
msgid "Payment Mode:"
msgstr "Mode de paiement :"
#. module: account_payment_partner
-#: model:ir.model.fields,help:account_payment_partner.field_account_invoice_bank_account_required
+#: model:ir.model.fields,help:account_payment_partner.field_account_invoice__bank_account_required
msgid ""
"Activate this option if this payment method requires you to know the bank "
"account number of your customer or supplier."
@@ -40,21 +50,50 @@ msgstr ""
"numéro de compte bancaire de votre client ou fournisseur."
#. module: account_payment_partner
-#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_bank_account_required
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice__partner_bank_id
+#, fuzzy
+msgid "Bank Account"
+msgstr "Compte bancaire requis"
+
+#. module: account_payment_partner
+#: model:ir.model.fields,help:account_payment_partner.field_account_invoice__partner_bank_id
+msgid ""
+"Bank Account Number to which the invoice will be paid. A Company bank "
+"account if this is a Customer Invoice or Vendor Credit Note, otherwise a "
+"Partner bank account number."
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice__bank_account_required
msgid "Bank Account Required"
msgstr "Compte bancaire requis"
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_payment_mode__show_bank_account_from_journal
+msgid "Bank account from journals"
+msgstr ""
+
#. module: account_payment_partner
#: model:ir.model,name:account_payment_partner.model_res_partner
msgid "Contact"
msgstr "Contacte"
#. module: account_payment_partner
-#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_customer_payment_mode_id
-#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_customer_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner__customer_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_users__customer_payment_mode_id
msgid "Customer Payment Mode"
msgstr "Mode de paiement client"
+#. module: account_payment_partner
+#: selection:account.payment.mode,show_bank_account:0
+msgid "First n chars"
+msgstr ""
+
+#. module: account_payment_partner
+#: selection:account.payment.mode,show_bank_account:0
+msgid "Full"
+msgstr ""
+
#. module: account_payment_partner
#: model:ir.model,name:account_payment_partner.model_account_invoice
msgid "Invoice"
@@ -65,6 +104,16 @@ msgstr "Facture"
msgid "Journal Item"
msgstr "Élément de journal"
+#. module: account_payment_partner
+#: selection:account.payment.mode,show_bank_account:0
+msgid "Last n chars"
+msgstr ""
+
+#. module: account_payment_partner
+#: selection:account.payment.mode,show_bank_account:0
+msgid "No"
+msgstr ""
+
#. module: account_payment_partner
#: code:addons/account_payment_partner/tests/test_account_payment_partner.py:35
#, python-format
@@ -72,9 +121,9 @@ msgid "No Chart of Account Template has been defined !"
msgstr "Aucun modèle de plan comptable n'a été défini !"
#. module: account_payment_partner
-#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_payment_mode_id
-#: model:ir.model.fields,field_description:account_payment_partner.field_account_move_line_payment_mode_id
-#: model:ir.ui.view,arch_db:account_payment_partner.view_account_invoice_filter
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice__payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_move_line__payment_mode_id
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.view_account_invoice_filter
msgid "Payment Mode"
msgstr "Mode de paiement"
@@ -84,30 +133,45 @@ msgid "Payment Modes"
msgstr "Mode de paiement"
#. module: account_payment_partner
-#: model:ir.ui.view,arch_db:account_payment_partner.view_move_line_form
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.view_move_line_form
msgid "Payments"
msgstr "Règlements"
#. module: account_payment_partner
-#: model:ir.model.fields,help:account_payment_partner.field_res_partner_customer_payment_mode_id
-#: model:ir.model.fields,help:account_payment_partner.field_res_users_customer_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_partner__customer_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_users__customer_payment_mode_id
msgid "Select the default payment mode for this customer."
msgstr "Sélectionnez le mode de paiement par défaut pour ce client."
#. module: account_payment_partner
-#: model:ir.model.fields,help:account_payment_partner.field_res_partner_supplier_payment_mode_id
-#: model:ir.model.fields,help:account_payment_partner.field_res_users_supplier_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_partner__supplier_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_users__supplier_payment_mode_id
msgid "Select the default payment mode for this supplier."
msgstr "Sélectionnez le mode de paiement par défaut pour ce fournisseur."
#. module: account_payment_partner
-#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_supplier_payment_mode_id
-#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_supplier_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_payment_mode__show_bank_account
+msgid "Show bank account"
+msgstr ""
+
+#. module: account_payment_partner
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.account_payment_mode_form
+msgid "Show bank account in invoice report"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,help:account_payment_partner.field_account_payment_mode__show_bank_account
+msgid "Show in invoices partial or full bank account number"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner__supplier_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_users__supplier_payment_mode_id
msgid "Supplier Payment Mode"
msgstr "Mode de règlement fournisseur"
#. module: account_payment_partner
-#: code:addons/account_payment_partner/models/account_invoice.py:119
+#: code:addons/account_payment_partner/models/account_invoice.py:117
#, python-format
msgid ""
"The company of the invoice %s does not match with that of the payment mode"
@@ -115,7 +179,7 @@ msgstr ""
"La société de la facture %s ne correspond pas à celle du mode de paiement"
#. module: account_payment_partner
-#: code:addons/account_payment_partner/models/account_payment_mode.py:17
+#: code:addons/account_payment_partner/models/account_payment_mode.py:35
#, python-format
msgid ""
"You cannot change the Company. There exists at least one Invoice with this "
@@ -125,7 +189,7 @@ msgstr ""
"ce mode de paiement, déjà affectée à une autre société."
#. module: account_payment_partner
-#: code:addons/account_payment_partner/models/account_payment_mode.py:28
+#: code:addons/account_payment_partner/models/account_payment_mode.py:46
#, python-format
msgid ""
"You cannot change the Company. There exists at least one Journal Item with "
diff --git a/account_payment_partner/i18n/hr.po b/account_payment_partner/i18n/hr.po
index 189a4b6da..06df5021e 100644
--- a/account_payment_partner/i18n/hr.po
+++ b/account_payment_partner/i18n/hr.po
@@ -20,38 +20,77 @@ msgstr ""
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
#. module: account_payment_partner
-#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.account_payment_mode_form
+msgid "# of chars"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_payment_mode__show_bank_account_chars
+msgid "# of digits for customer bank account"
+msgstr ""
+
+#. module: account_payment_partner
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
msgid "Bank Account:"
msgstr ""
#. module: account_payment_partner
-#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
msgid "Payment Mode:"
msgstr ""
#. module: account_payment_partner
-#: model:ir.model.fields,help:account_payment_partner.field_account_invoice_bank_account_required
+#: model:ir.model.fields,help:account_payment_partner.field_account_invoice__bank_account_required
msgid ""
"Activate this option if this payment method requires you to know the bank "
"account number of your customer or supplier."
msgstr ""
#. module: account_payment_partner
-#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_bank_account_required
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice__partner_bank_id
+#, fuzzy
+msgid "Bank Account"
+msgstr "Bankovni račun je obavezan"
+
+#. module: account_payment_partner
+#: model:ir.model.fields,help:account_payment_partner.field_account_invoice__partner_bank_id
+msgid ""
+"Bank Account Number to which the invoice will be paid. A Company bank "
+"account if this is a Customer Invoice or Vendor Credit Note, otherwise a "
+"Partner bank account number."
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice__bank_account_required
msgid "Bank Account Required"
msgstr "Bankovni račun je obavezan"
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_payment_mode__show_bank_account_from_journal
+msgid "Bank account from journals"
+msgstr ""
+
#. module: account_payment_partner
#: model:ir.model,name:account_payment_partner.model_res_partner
msgid "Contact"
msgstr ""
#. module: account_payment_partner
-#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_customer_payment_mode_id
-#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_customer_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner__customer_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_users__customer_payment_mode_id
msgid "Customer Payment Mode"
msgstr ""
+#. module: account_payment_partner
+#: selection:account.payment.mode,show_bank_account:0
+msgid "First n chars"
+msgstr ""
+
+#. module: account_payment_partner
+#: selection:account.payment.mode,show_bank_account:0
+msgid "Full"
+msgstr ""
+
#. module: account_payment_partner
#: model:ir.model,name:account_payment_partner.model_account_invoice
msgid "Invoice"
@@ -62,6 +101,16 @@ msgstr ""
msgid "Journal Item"
msgstr ""
+#. module: account_payment_partner
+#: selection:account.payment.mode,show_bank_account:0
+msgid "Last n chars"
+msgstr ""
+
+#. module: account_payment_partner
+#: selection:account.payment.mode,show_bank_account:0
+msgid "No"
+msgstr ""
+
#. module: account_payment_partner
#: code:addons/account_payment_partner/tests/test_account_payment_partner.py:35
#, python-format
@@ -69,9 +118,9 @@ msgid "No Chart of Account Template has been defined !"
msgstr ""
#. module: account_payment_partner
-#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_payment_mode_id
-#: model:ir.model.fields,field_description:account_payment_partner.field_account_move_line_payment_mode_id
-#: model:ir.ui.view,arch_db:account_payment_partner.view_account_invoice_filter
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice__payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_move_line__payment_mode_id
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.view_account_invoice_filter
msgid "Payment Mode"
msgstr ""
@@ -81,37 +130,52 @@ msgid "Payment Modes"
msgstr "Modeli plaćanja"
#. module: account_payment_partner
-#: model:ir.ui.view,arch_db:account_payment_partner.view_move_line_form
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.view_move_line_form
msgid "Payments"
msgstr ""
#. module: account_payment_partner
-#: model:ir.model.fields,help:account_payment_partner.field_res_partner_customer_payment_mode_id
-#: model:ir.model.fields,help:account_payment_partner.field_res_users_customer_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_partner__customer_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_users__customer_payment_mode_id
msgid "Select the default payment mode for this customer."
msgstr ""
#. module: account_payment_partner
-#: model:ir.model.fields,help:account_payment_partner.field_res_partner_supplier_payment_mode_id
-#: model:ir.model.fields,help:account_payment_partner.field_res_users_supplier_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_partner__supplier_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_users__supplier_payment_mode_id
msgid "Select the default payment mode for this supplier."
msgstr ""
#. module: account_payment_partner
-#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_supplier_payment_mode_id
-#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_supplier_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_payment_mode__show_bank_account
+msgid "Show bank account"
+msgstr ""
+
+#. module: account_payment_partner
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.account_payment_mode_form
+msgid "Show bank account in invoice report"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,help:account_payment_partner.field_account_payment_mode__show_bank_account
+msgid "Show in invoices partial or full bank account number"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner__supplier_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_users__supplier_payment_mode_id
msgid "Supplier Payment Mode"
msgstr ""
#. module: account_payment_partner
-#: code:addons/account_payment_partner/models/account_invoice.py:119
+#: code:addons/account_payment_partner/models/account_invoice.py:117
#, python-format
msgid ""
"The company of the invoice %s does not match with that of the payment mode"
msgstr ""
#. module: account_payment_partner
-#: code:addons/account_payment_partner/models/account_payment_mode.py:17
+#: code:addons/account_payment_partner/models/account_payment_mode.py:35
#, python-format
msgid ""
"You cannot change the Company. There exists at least one Invoice with this "
@@ -119,7 +183,7 @@ msgid ""
msgstr ""
#. module: account_payment_partner
-#: code:addons/account_payment_partner/models/account_payment_mode.py:28
+#: code:addons/account_payment_partner/models/account_payment_mode.py:46
#, python-format
msgid ""
"You cannot change the Company. There exists at least one Journal Item with "
diff --git a/account_payment_partner/i18n/nb_NO.po b/account_payment_partner/i18n/nb_NO.po
index 33d7e9e73..1928800cd 100644
--- a/account_payment_partner/i18n/nb_NO.po
+++ b/account_payment_partner/i18n/nb_NO.po
@@ -20,38 +20,77 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: account_payment_partner
-#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.account_payment_mode_form
+msgid "# of chars"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_payment_mode__show_bank_account_chars
+msgid "# of digits for customer bank account"
+msgstr ""
+
+#. module: account_payment_partner
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
msgid "Bank Account:"
msgstr ""
#. module: account_payment_partner
-#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
msgid "Payment Mode:"
msgstr ""
#. module: account_payment_partner
-#: model:ir.model.fields,help:account_payment_partner.field_account_invoice_bank_account_required
+#: model:ir.model.fields,help:account_payment_partner.field_account_invoice__bank_account_required
msgid ""
"Activate this option if this payment method requires you to know the bank "
"account number of your customer or supplier."
msgstr ""
#. module: account_payment_partner
-#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_bank_account_required
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice__partner_bank_id
+#, fuzzy
+msgid "Bank Account"
+msgstr "Bankkonto påkrevd"
+
+#. module: account_payment_partner
+#: model:ir.model.fields,help:account_payment_partner.field_account_invoice__partner_bank_id
+msgid ""
+"Bank Account Number to which the invoice will be paid. A Company bank "
+"account if this is a Customer Invoice or Vendor Credit Note, otherwise a "
+"Partner bank account number."
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice__bank_account_required
msgid "Bank Account Required"
msgstr "Bankkonto påkrevd"
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_payment_mode__show_bank_account_from_journal
+msgid "Bank account from journals"
+msgstr ""
+
#. module: account_payment_partner
#: model:ir.model,name:account_payment_partner.model_res_partner
msgid "Contact"
msgstr ""
#. module: account_payment_partner
-#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_customer_payment_mode_id
-#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_customer_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner__customer_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_users__customer_payment_mode_id
msgid "Customer Payment Mode"
msgstr ""
+#. module: account_payment_partner
+#: selection:account.payment.mode,show_bank_account:0
+msgid "First n chars"
+msgstr ""
+
+#. module: account_payment_partner
+#: selection:account.payment.mode,show_bank_account:0
+msgid "Full"
+msgstr ""
+
#. module: account_payment_partner
#: model:ir.model,name:account_payment_partner.model_account_invoice
msgid "Invoice"
@@ -62,6 +101,16 @@ msgstr ""
msgid "Journal Item"
msgstr "Journalgjenstand"
+#. module: account_payment_partner
+#: selection:account.payment.mode,show_bank_account:0
+msgid "Last n chars"
+msgstr ""
+
+#. module: account_payment_partner
+#: selection:account.payment.mode,show_bank_account:0
+msgid "No"
+msgstr ""
+
#. module: account_payment_partner
#: code:addons/account_payment_partner/tests/test_account_payment_partner.py:35
#, python-format
@@ -69,9 +118,9 @@ msgid "No Chart of Account Template has been defined !"
msgstr ""
#. module: account_payment_partner
-#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_payment_mode_id
-#: model:ir.model.fields,field_description:account_payment_partner.field_account_move_line_payment_mode_id
-#: model:ir.ui.view,arch_db:account_payment_partner.view_account_invoice_filter
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice__payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_move_line__payment_mode_id
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.view_account_invoice_filter
msgid "Payment Mode"
msgstr ""
@@ -82,37 +131,52 @@ msgid "Payment Modes"
msgstr "Betalinger"
#. module: account_payment_partner
-#: model:ir.ui.view,arch_db:account_payment_partner.view_move_line_form
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.view_move_line_form
msgid "Payments"
msgstr "Betalinger"
#. module: account_payment_partner
-#: model:ir.model.fields,help:account_payment_partner.field_res_partner_customer_payment_mode_id
-#: model:ir.model.fields,help:account_payment_partner.field_res_users_customer_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_partner__customer_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_users__customer_payment_mode_id
msgid "Select the default payment mode for this customer."
msgstr ""
#. module: account_payment_partner
-#: model:ir.model.fields,help:account_payment_partner.field_res_partner_supplier_payment_mode_id
-#: model:ir.model.fields,help:account_payment_partner.field_res_users_supplier_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_partner__supplier_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_users__supplier_payment_mode_id
msgid "Select the default payment mode for this supplier."
msgstr ""
#. module: account_payment_partner
-#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_supplier_payment_mode_id
-#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_supplier_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_payment_mode__show_bank_account
+msgid "Show bank account"
+msgstr ""
+
+#. module: account_payment_partner
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.account_payment_mode_form
+msgid "Show bank account in invoice report"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,help:account_payment_partner.field_account_payment_mode__show_bank_account
+msgid "Show in invoices partial or full bank account number"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner__supplier_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_users__supplier_payment_mode_id
msgid "Supplier Payment Mode"
msgstr ""
#. module: account_payment_partner
-#: code:addons/account_payment_partner/models/account_invoice.py:119
+#: code:addons/account_payment_partner/models/account_invoice.py:117
#, python-format
msgid ""
"The company of the invoice %s does not match with that of the payment mode"
msgstr ""
#. module: account_payment_partner
-#: code:addons/account_payment_partner/models/account_payment_mode.py:17
+#: code:addons/account_payment_partner/models/account_payment_mode.py:35
#, python-format
msgid ""
"You cannot change the Company. There exists at least one Invoice with this "
@@ -120,7 +184,7 @@ msgid ""
msgstr ""
#. module: account_payment_partner
-#: code:addons/account_payment_partner/models/account_payment_mode.py:28
+#: code:addons/account_payment_partner/models/account_payment_mode.py:46
#, python-format
msgid ""
"You cannot change the Company. There exists at least one Journal Item with "
diff --git a/account_payment_partner/i18n/nl.po b/account_payment_partner/i18n/nl.po
index de30033a1..180106b76 100644
--- a/account_payment_partner/i18n/nl.po
+++ b/account_payment_partner/i18n/nl.po
@@ -19,17 +19,27 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: account_payment_partner
-#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.account_payment_mode_form
+msgid "# of chars"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_payment_mode__show_bank_account_chars
+msgid "# of digits for customer bank account"
+msgstr ""
+
+#. module: account_payment_partner
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
msgid "Bank Account:"
msgstr "Bankrekening:"
#. module: account_payment_partner
-#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
msgid "Payment Mode:"
msgstr "Betaalmode:"
#. module: account_payment_partner
-#: model:ir.model.fields,help:account_payment_partner.field_account_invoice_bank_account_required
+#: model:ir.model.fields,help:account_payment_partner.field_account_invoice__bank_account_required
msgid ""
"Activate this option if this payment method requires you to know the bank "
"account number of your customer or supplier."
@@ -38,21 +48,50 @@ msgstr ""
"van uw klant of leverancier kent."
#. module: account_payment_partner
-#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_bank_account_required
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice__partner_bank_id
+#, fuzzy
+msgid "Bank Account"
+msgstr "Bankrekening verplicht"
+
+#. module: account_payment_partner
+#: model:ir.model.fields,help:account_payment_partner.field_account_invoice__partner_bank_id
+msgid ""
+"Bank Account Number to which the invoice will be paid. A Company bank "
+"account if this is a Customer Invoice or Vendor Credit Note, otherwise a "
+"Partner bank account number."
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice__bank_account_required
msgid "Bank Account Required"
msgstr "Bankrekening verplicht"
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_payment_mode__show_bank_account_from_journal
+msgid "Bank account from journals"
+msgstr ""
+
#. module: account_payment_partner
#: model:ir.model,name:account_payment_partner.model_res_partner
msgid "Contact"
msgstr ""
#. module: account_payment_partner
-#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_customer_payment_mode_id
-#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_customer_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner__customer_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_users__customer_payment_mode_id
msgid "Customer Payment Mode"
msgstr "Betaalwijze klant"
+#. module: account_payment_partner
+#: selection:account.payment.mode,show_bank_account:0
+msgid "First n chars"
+msgstr ""
+
+#. module: account_payment_partner
+#: selection:account.payment.mode,show_bank_account:0
+msgid "Full"
+msgstr ""
+
#. module: account_payment_partner
#: model:ir.model,name:account_payment_partner.model_account_invoice
msgid "Invoice"
@@ -63,6 +102,16 @@ msgstr "Factuur"
msgid "Journal Item"
msgstr "Boekingsregel"
+#. module: account_payment_partner
+#: selection:account.payment.mode,show_bank_account:0
+msgid "Last n chars"
+msgstr ""
+
+#. module: account_payment_partner
+#: selection:account.payment.mode,show_bank_account:0
+msgid "No"
+msgstr ""
+
#. module: account_payment_partner
#: code:addons/account_payment_partner/tests/test_account_payment_partner.py:35
#, python-format
@@ -70,9 +119,9 @@ msgid "No Chart of Account Template has been defined !"
msgstr ""
#. module: account_payment_partner
-#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_payment_mode_id
-#: model:ir.model.fields,field_description:account_payment_partner.field_account_move_line_payment_mode_id
-#: model:ir.ui.view,arch_db:account_payment_partner.view_account_invoice_filter
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice__payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_move_line__payment_mode_id
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.view_account_invoice_filter
msgid "Payment Mode"
msgstr "Betaalwijze"
@@ -82,37 +131,52 @@ msgid "Payment Modes"
msgstr "Betaalwijze"
#. module: account_payment_partner
-#: model:ir.ui.view,arch_db:account_payment_partner.view_move_line_form
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.view_move_line_form
msgid "Payments"
msgstr "Betalingen"
#. module: account_payment_partner
-#: model:ir.model.fields,help:account_payment_partner.field_res_partner_customer_payment_mode_id
-#: model:ir.model.fields,help:account_payment_partner.field_res_users_customer_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_partner__customer_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_users__customer_payment_mode_id
msgid "Select the default payment mode for this customer."
msgstr "Selecteer de standaard betaalwijze voor deze klant."
#. module: account_payment_partner
-#: model:ir.model.fields,help:account_payment_partner.field_res_partner_supplier_payment_mode_id
-#: model:ir.model.fields,help:account_payment_partner.field_res_users_supplier_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_partner__supplier_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_users__supplier_payment_mode_id
msgid "Select the default payment mode for this supplier."
msgstr "Selecteer de standaard betaalwijze voor deze leverancier."
#. module: account_payment_partner
-#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_supplier_payment_mode_id
-#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_supplier_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_payment_mode__show_bank_account
+msgid "Show bank account"
+msgstr ""
+
+#. module: account_payment_partner
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.account_payment_mode_form
+msgid "Show bank account in invoice report"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,help:account_payment_partner.field_account_payment_mode__show_bank_account
+msgid "Show in invoices partial or full bank account number"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner__supplier_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_users__supplier_payment_mode_id
msgid "Supplier Payment Mode"
msgstr "Betaalwijze leverancier"
#. module: account_payment_partner
-#: code:addons/account_payment_partner/models/account_invoice.py:119
+#: code:addons/account_payment_partner/models/account_invoice.py:117
#, python-format
msgid ""
"The company of the invoice %s does not match with that of the payment mode"
msgstr ""
#. module: account_payment_partner
-#: code:addons/account_payment_partner/models/account_payment_mode.py:17
+#: code:addons/account_payment_partner/models/account_payment_mode.py:35
#, python-format
msgid ""
"You cannot change the Company. There exists at least one Invoice with this "
@@ -120,7 +184,7 @@ msgid ""
msgstr ""
#. module: account_payment_partner
-#: code:addons/account_payment_partner/models/account_payment_mode.py:28
+#: code:addons/account_payment_partner/models/account_payment_mode.py:46
#, python-format
msgid ""
"You cannot change the Company. There exists at least one Journal Item with "
diff --git a/account_payment_partner/i18n/pt_BR.po b/account_payment_partner/i18n/pt_BR.po
index d2f047a74..da3861817 100644
--- a/account_payment_partner/i18n/pt_BR.po
+++ b/account_payment_partner/i18n/pt_BR.po
@@ -20,38 +20,76 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: account_payment_partner
-#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.account_payment_mode_form
+msgid "# of chars"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_payment_mode__show_bank_account_chars
+msgid "# of digits for customer bank account"
+msgstr ""
+
+#. module: account_payment_partner
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
msgid "Bank Account:"
msgstr ""
#. module: account_payment_partner
-#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
msgid "Payment Mode:"
msgstr ""
#. module: account_payment_partner
-#: model:ir.model.fields,help:account_payment_partner.field_account_invoice_bank_account_required
+#: model:ir.model.fields,help:account_payment_partner.field_account_invoice__bank_account_required
msgid ""
"Activate this option if this payment method requires you to know the bank "
"account number of your customer or supplier."
msgstr ""
#. module: account_payment_partner
-#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_bank_account_required
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice__partner_bank_id
+msgid "Bank Account"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,help:account_payment_partner.field_account_invoice__partner_bank_id
+msgid ""
+"Bank Account Number to which the invoice will be paid. A Company bank "
+"account if this is a Customer Invoice or Vendor Credit Note, otherwise a "
+"Partner bank account number."
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice__bank_account_required
msgid "Bank Account Required"
msgstr ""
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_payment_mode__show_bank_account_from_journal
+msgid "Bank account from journals"
+msgstr ""
+
#. module: account_payment_partner
#: model:ir.model,name:account_payment_partner.model_res_partner
msgid "Contact"
msgstr ""
#. module: account_payment_partner
-#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_customer_payment_mode_id
-#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_customer_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner__customer_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_users__customer_payment_mode_id
msgid "Customer Payment Mode"
msgstr "Modo de Pagamento do Cliente"
+#. module: account_payment_partner
+#: selection:account.payment.mode,show_bank_account:0
+msgid "First n chars"
+msgstr ""
+
+#. module: account_payment_partner
+#: selection:account.payment.mode,show_bank_account:0
+msgid "Full"
+msgstr ""
+
#. module: account_payment_partner
#: model:ir.model,name:account_payment_partner.model_account_invoice
msgid "Invoice"
@@ -62,6 +100,16 @@ msgstr "Fatura"
msgid "Journal Item"
msgstr ""
+#. module: account_payment_partner
+#: selection:account.payment.mode,show_bank_account:0
+msgid "Last n chars"
+msgstr ""
+
+#. module: account_payment_partner
+#: selection:account.payment.mode,show_bank_account:0
+msgid "No"
+msgstr ""
+
#. module: account_payment_partner
#: code:addons/account_payment_partner/tests/test_account_payment_partner.py:35
#, python-format
@@ -69,9 +117,9 @@ msgid "No Chart of Account Template has been defined !"
msgstr ""
#. module: account_payment_partner
-#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_payment_mode_id
-#: model:ir.model.fields,field_description:account_payment_partner.field_account_move_line_payment_mode_id
-#: model:ir.ui.view,arch_db:account_payment_partner.view_account_invoice_filter
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice__payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_move_line__payment_mode_id
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.view_account_invoice_filter
msgid "Payment Mode"
msgstr "Modo de Pagamento"
@@ -81,37 +129,52 @@ msgid "Payment Modes"
msgstr ""
#. module: account_payment_partner
-#: model:ir.ui.view,arch_db:account_payment_partner.view_move_line_form
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.view_move_line_form
msgid "Payments"
msgstr ""
#. module: account_payment_partner
-#: model:ir.model.fields,help:account_payment_partner.field_res_partner_customer_payment_mode_id
-#: model:ir.model.fields,help:account_payment_partner.field_res_users_customer_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_partner__customer_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_users__customer_payment_mode_id
msgid "Select the default payment mode for this customer."
msgstr "Selecione o modo de pagamento padrão para este cliente."
#. module: account_payment_partner
-#: model:ir.model.fields,help:account_payment_partner.field_res_partner_supplier_payment_mode_id
-#: model:ir.model.fields,help:account_payment_partner.field_res_users_supplier_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_partner__supplier_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_users__supplier_payment_mode_id
msgid "Select the default payment mode for this supplier."
msgstr "Selecione o modo de pagamento padrão para este fornecedor."
#. module: account_payment_partner
-#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_supplier_payment_mode_id
-#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_supplier_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_payment_mode__show_bank_account
+msgid "Show bank account"
+msgstr ""
+
+#. module: account_payment_partner
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.account_payment_mode_form
+msgid "Show bank account in invoice report"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,help:account_payment_partner.field_account_payment_mode__show_bank_account
+msgid "Show in invoices partial or full bank account number"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner__supplier_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_users__supplier_payment_mode_id
msgid "Supplier Payment Mode"
msgstr "Modo de Pagamento do Fornecedor"
#. module: account_payment_partner
-#: code:addons/account_payment_partner/models/account_invoice.py:119
+#: code:addons/account_payment_partner/models/account_invoice.py:117
#, python-format
msgid ""
"The company of the invoice %s does not match with that of the payment mode"
msgstr ""
#. module: account_payment_partner
-#: code:addons/account_payment_partner/models/account_payment_mode.py:17
+#: code:addons/account_payment_partner/models/account_payment_mode.py:35
#, python-format
msgid ""
"You cannot change the Company. There exists at least one Invoice with this "
@@ -119,7 +182,7 @@ msgid ""
msgstr ""
#. module: account_payment_partner
-#: code:addons/account_payment_partner/models/account_payment_mode.py:28
+#: code:addons/account_payment_partner/models/account_payment_mode.py:46
#, python-format
msgid ""
"You cannot change the Company. There exists at least one Journal Item with "
diff --git a/account_payment_partner/i18n/sl.po b/account_payment_partner/i18n/sl.po
index d2ea03235..dd371f252 100644
--- a/account_payment_partner/i18n/sl.po
+++ b/account_payment_partner/i18n/sl.po
@@ -20,38 +20,76 @@ msgstr ""
"%100==4 ? 2 : 3);\n"
#. module: account_payment_partner
-#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.account_payment_mode_form
+msgid "# of chars"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_payment_mode__show_bank_account_chars
+msgid "# of digits for customer bank account"
+msgstr ""
+
+#. module: account_payment_partner
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
msgid "Bank Account:"
msgstr ""
#. module: account_payment_partner
-#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
msgid "Payment Mode:"
msgstr ""
#. module: account_payment_partner
-#: model:ir.model.fields,help:account_payment_partner.field_account_invoice_bank_account_required
+#: model:ir.model.fields,help:account_payment_partner.field_account_invoice__bank_account_required
msgid ""
"Activate this option if this payment method requires you to know the bank "
"account number of your customer or supplier."
msgstr ""
#. module: account_payment_partner
-#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_bank_account_required
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice__partner_bank_id
+msgid "Bank Account"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,help:account_payment_partner.field_account_invoice__partner_bank_id
+msgid ""
+"Bank Account Number to which the invoice will be paid. A Company bank "
+"account if this is a Customer Invoice or Vendor Credit Note, otherwise a "
+"Partner bank account number."
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice__bank_account_required
msgid "Bank Account Required"
msgstr ""
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_payment_mode__show_bank_account_from_journal
+msgid "Bank account from journals"
+msgstr ""
+
#. module: account_payment_partner
#: model:ir.model,name:account_payment_partner.model_res_partner
msgid "Contact"
msgstr ""
#. module: account_payment_partner
-#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_customer_payment_mode_id
-#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_customer_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner__customer_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_users__customer_payment_mode_id
msgid "Customer Payment Mode"
msgstr "Metoda plačila kupca"
+#. module: account_payment_partner
+#: selection:account.payment.mode,show_bank_account:0
+msgid "First n chars"
+msgstr ""
+
+#. module: account_payment_partner
+#: selection:account.payment.mode,show_bank_account:0
+msgid "Full"
+msgstr ""
+
#. module: account_payment_partner
#: model:ir.model,name:account_payment_partner.model_account_invoice
msgid "Invoice"
@@ -62,6 +100,16 @@ msgstr "Račun"
msgid "Journal Item"
msgstr ""
+#. module: account_payment_partner
+#: selection:account.payment.mode,show_bank_account:0
+msgid "Last n chars"
+msgstr ""
+
+#. module: account_payment_partner
+#: selection:account.payment.mode,show_bank_account:0
+msgid "No"
+msgstr ""
+
#. module: account_payment_partner
#: code:addons/account_payment_partner/tests/test_account_payment_partner.py:35
#, python-format
@@ -69,9 +117,9 @@ msgid "No Chart of Account Template has been defined !"
msgstr ""
#. module: account_payment_partner
-#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_payment_mode_id
-#: model:ir.model.fields,field_description:account_payment_partner.field_account_move_line_payment_mode_id
-#: model:ir.ui.view,arch_db:account_payment_partner.view_account_invoice_filter
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice__payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_move_line__payment_mode_id
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.view_account_invoice_filter
msgid "Payment Mode"
msgstr "Metoda plačila"
@@ -81,37 +129,52 @@ msgid "Payment Modes"
msgstr ""
#. module: account_payment_partner
-#: model:ir.ui.view,arch_db:account_payment_partner.view_move_line_form
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.view_move_line_form
msgid "Payments"
msgstr ""
#. module: account_payment_partner
-#: model:ir.model.fields,help:account_payment_partner.field_res_partner_customer_payment_mode_id
-#: model:ir.model.fields,help:account_payment_partner.field_res_users_customer_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_partner__customer_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_users__customer_payment_mode_id
msgid "Select the default payment mode for this customer."
msgstr "Izbira privzete metode plačila za tega kupca."
#. module: account_payment_partner
-#: model:ir.model.fields,help:account_payment_partner.field_res_partner_supplier_payment_mode_id
-#: model:ir.model.fields,help:account_payment_partner.field_res_users_supplier_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_partner__supplier_payment_mode_id
+#: model:ir.model.fields,help:account_payment_partner.field_res_users__supplier_payment_mode_id
msgid "Select the default payment mode for this supplier."
msgstr "Izbira privzete metode plačila za tega dobavitelja."
#. module: account_payment_partner
-#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_supplier_payment_mode_id
-#: model:ir.model.fields,field_description:account_payment_partner.field_res_users_supplier_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_account_payment_mode__show_bank_account
+msgid "Show bank account"
+msgstr ""
+
+#. module: account_payment_partner
+#: model_terms:ir.ui.view,arch_db:account_payment_partner.account_payment_mode_form
+msgid "Show bank account in invoice report"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,help:account_payment_partner.field_account_payment_mode__show_bank_account
+msgid "Show in invoices partial or full bank account number"
+msgstr ""
+
+#. module: account_payment_partner
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner__supplier_payment_mode_id
+#: model:ir.model.fields,field_description:account_payment_partner.field_res_users__supplier_payment_mode_id
msgid "Supplier Payment Mode"
msgstr "Metoda plačila dobavitelja"
#. module: account_payment_partner
-#: code:addons/account_payment_partner/models/account_invoice.py:119
+#: code:addons/account_payment_partner/models/account_invoice.py:117
#, python-format
msgid ""
"The company of the invoice %s does not match with that of the payment mode"
msgstr ""
#. module: account_payment_partner
-#: code:addons/account_payment_partner/models/account_payment_mode.py:17
+#: code:addons/account_payment_partner/models/account_payment_mode.py:35
#, python-format
msgid ""
"You cannot change the Company. There exists at least one Invoice with this "
@@ -119,7 +182,7 @@ msgid ""
msgstr ""
#. module: account_payment_partner
-#: code:addons/account_payment_partner/models/account_payment_mode.py:28
+#: code:addons/account_payment_partner/models/account_payment_mode.py:46
#, python-format
msgid ""
"You cannot change the Company. There exists at least one Journal Item with "
From 189adb14f0ac655be028a4e88a3b400454aecccd Mon Sep 17 00:00:00 2001
From: Jaume Planas
Date: Fri, 15 Mar 2019 10:51:19 +0000
Subject: [PATCH 37/58] Translated using Weblate (Catalan)
Currently translated at 10.0% (3 of 30 strings)
Translation: bank-payment-12.0/bank-payment-12.0-account_payment_partner
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-12-0/bank-payment-12-0-account_payment_partner/ca/
---
account_payment_partner/i18n/ca.po | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/account_payment_partner/i18n/ca.po b/account_payment_partner/i18n/ca.po
index eeda8328e..1eafcae96 100644
--- a/account_payment_partner/i18n/ca.po
+++ b/account_payment_partner/i18n/ca.po
@@ -9,14 +9,15 @@ msgstr ""
"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-02-02 03:43+0000\n"
-"PO-Revision-Date: 2018-02-02 03:43+0000\n"
-"Last-Translator: OCA Transbot , 2018\n"
+"PO-Revision-Date: 2019-03-15 12:53+0000\n"
+"Last-Translator: Jaume Planas \n"
"Language-Team: Catalan (https://www.transifex.com/oca/teams/23907/ca/)\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"
+"Plural-Forms: nplurals=2; plural=n != 1;\n"
+"X-Generator: Weblate 3.4\n"
#. module: account_payment_partner
#: model_terms:ir.ui.view,arch_db:account_payment_partner.account_payment_mode_form
@@ -31,7 +32,7 @@ msgstr ""
#. module: account_payment_partner
#: model_terms:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
msgid "Bank Account:"
-msgstr ""
+msgstr "Compte bancari:"
#. module: account_payment_partner
#: model_terms:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
From 95da5e9a417c32c54dbe5ba8e92797d0abe9dff4 Mon Sep 17 00:00:00 2001
From: altoch
Date: Sun, 27 Jan 2019 13:44:16 +0100
Subject: [PATCH 38/58] Update invoice_supplier_form view
Set proper context to partner_bank_id field so on bank account number creation it's set the correct owner
---
account_payment_partner/views/account_invoice_view.xml | 1 +
1 file changed, 1 insertion(+)
diff --git a/account_payment_partner/views/account_invoice_view.xml b/account_payment_partner/views/account_invoice_view.xml
index f76fac182..024aacb33 100644
--- a/account_payment_partner/views/account_invoice_view.xml
+++ b/account_payment_partner/views/account_invoice_view.xml
@@ -54,6 +54,7 @@
'|',('company_id', '=', company_id),('company_id', '=', False)]
0
{'invisible': [('bank_account_required', '=', False)], 'required': [('bank_account_required', '=', True)]}
+ {'default_partner_id':commercial_partner_id}
From 36b37cc3439b1b99b2496c9a8037de9e412ad151 Mon Sep 17 00:00:00 2001
From: Guewen Baconnier
Date: Tue, 7 May 2019 11:25:35 +0200
Subject: [PATCH 39/58] Add indexes on account payment models
The fields where the indexes are added are used in searches in
account_payment_order, which becomes really slow when a database have
many lines.
---
account_payment_partner/models/account_move_line.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/account_payment_partner/models/account_move_line.py b/account_payment_partner/models/account_move_line.py
index 4bfe0ff70..1a8e78bd9 100644
--- a/account_payment_partner/models/account_move_line.py
+++ b/account_payment_partner/models/account_move_line.py
@@ -11,5 +11,6 @@ class AccountMoveLine(models.Model):
'account.payment.mode',
string='Payment Mode',
domain="[('company_id', '=', company_id)]",
- ondelete='restrict'
+ ondelete='restrict',
+ index=True,
)
From 12d88073e4bda8cfe3fc881a5ff96f6cf165914a Mon Sep 17 00:00:00 2001
From: Raf Ven
Date: Mon, 15 Jul 2019 15:41:04 +0200
Subject: [PATCH 40/58] [FIX] test_invoice_refund
The test checks on empty bank account but with Odoo commit https://github.com/odoo/odoo/commit/d5688e6ca08c0732f192207b9bb584bf7b672e90#diff-f3712147f4b25231caa371bd83265dbe the company bank account gets defaulted when not specified
---
account_payment_partner/README.rst | 3 +++
account_payment_partner/readme/CONTRIBUTORS.rst | 3 +++
account_payment_partner/static/description/index.html | 4 ++++
account_payment_partner/tests/test_account_payment_partner.py | 3 ++-
4 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/account_payment_partner/README.rst b/account_payment_partner/README.rst
index d83a4c51b..2d3691f45 100644
--- a/account_payment_partner/README.rst
+++ b/account_payment_partner/README.rst
@@ -111,6 +111,9 @@ Contributors
* Pedro M. Baeza
* Carlos Dauden
+* `DynApps `_:
+
+ * Raf Ven
Maintainers
~~~~~~~~~~~
diff --git a/account_payment_partner/readme/CONTRIBUTORS.rst b/account_payment_partner/readme/CONTRIBUTORS.rst
index df652cc34..6389a89cc 100644
--- a/account_payment_partner/readme/CONTRIBUTORS.rst
+++ b/account_payment_partner/readme/CONTRIBUTORS.rst
@@ -9,3 +9,6 @@
* Pedro M. Baeza
* Carlos Dauden
+* `DynApps `_:
+
+ * Raf Ven
diff --git a/account_payment_partner/static/description/index.html b/account_payment_partner/static/description/index.html
index b36e11b42..6ce318738 100644
--- a/account_payment_partner/static/description/index.html
+++ b/account_payment_partner/static/description/index.html
@@ -456,6 +456,10 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
- Carlos Dauden <carlos.dauden@tecnativa.com>
+DynApps:
+
diff --git a/account_payment_partner/tests/test_account_payment_partner.py b/account_payment_partner/tests/test_account_payment_partner.py
index abd2349de..78c43d7c9 100644
--- a/account_payment_partner/tests/test_account_payment_partner.py
+++ b/account_payment_partner/tests/test_account_payment_partner.py
@@ -307,7 +307,8 @@ class TestAccountPaymentPartner(common.SavepointCase):
self.assertEquals(invoice_refund.payment_mode_id,
invoice.payment_mode_id)
self.assertEquals(invoice_refund.partner_bank_id,
- invoice.partner_bank_id)
+ self.env.ref(
+ 'account_payment_mode.main_company_iban'))
def test_partner(self):
self.customer.write({
From ffc922a5aea1ba1a42083fc4c4b08c5181886457 Mon Sep 17 00:00:00 2001
From: OCA-git-bot
Date: Mon, 29 Jul 2019 02:40:55 +0000
Subject: [PATCH 41/58] [UPD] README.rst
---
account_payment_partner/README.rst | 2 +-
account_payment_partner/static/description/index.html | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/account_payment_partner/README.rst b/account_payment_partner/README.rst
index 2d3691f45..cfd6e5dd0 100644
--- a/account_payment_partner/README.rst
+++ b/account_payment_partner/README.rst
@@ -20,7 +20,7 @@ Account Payment Partner
:target: https://translation.odoo-community.org/projects/bank-payment-12-0/bank-payment-12-0-account_payment_partner
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
- :target: https://runbot.odoo-community.org/runbot/97/12.0
+ :target: https://runbot.odoo-community.org/runbot/173/12.0
:alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5|
diff --git a/account_payment_partner/static/description/index.html b/account_payment_partner/static/description/index.html
index 6ce318738..1f15d881a 100644
--- a/account_payment_partner/static/description/index.html
+++ b/account_payment_partner/static/description/index.html
@@ -3,7 +3,7 @@
-
+
Account Payment Partner