From 791cd69e68edbe4c1714c7c39cdae1a0a423aae0 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Tue, 25 Feb 2014 00:19:57 +0100 Subject: [PATCH 01/35] 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_purchase/__init__.py | 23 ++++++ account_payment_purchase/__openerp__.py | 48 +++++++++++ .../i18n/account_payment_purchase.pot | 42 ++++++++++ account_payment_purchase/i18n/fr.po | 42 ++++++++++ account_payment_purchase/model/__init__.py | 24 ++++++ account_payment_purchase/model/purchase.py | 82 +++++++++++++++++++ account_payment_purchase/model/stock.py | 42 ++++++++++ account_payment_purchase/view/purchase.xml | 26 ++++++ 8 files changed, 329 insertions(+) create mode 100644 account_payment_purchase/__init__.py create mode 100644 account_payment_purchase/__openerp__.py create mode 100644 account_payment_purchase/i18n/account_payment_purchase.pot create mode 100644 account_payment_purchase/i18n/fr.po create mode 100644 account_payment_purchase/model/__init__.py create mode 100644 account_payment_purchase/model/purchase.py create mode 100644 account_payment_purchase/model/stock.py create mode 100644 account_payment_purchase/view/purchase.xml diff --git a/account_payment_purchase/__init__.py b/account_payment_purchase/__init__.py new file mode 100644 index 000000000..59199014f --- /dev/null +++ b/account_payment_purchase/__init__.py @@ -0,0 +1,23 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# Account Payment Purchase 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_purchase/__openerp__.py b/account_payment_purchase/__openerp__.py new file mode 100644 index 000000000..e2fc219eb --- /dev/null +++ b/account_payment_purchase/__openerp__.py @@ -0,0 +1,48 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# Account Payment Purchase 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 Purchase', + 'version': '1.0', + 'category': 'Banking addons', + 'license': 'AGPL-3', + 'summary': "Adds Bank Account and Payment Type on Purchase Orders", + 'description': """ +Account Payment Purchase +======================== + +This modules adds 2 fields on purchase orders : *Bank Account* and *Payment Type*. These fields are copied from partner to purchase order and then from purchase order to supplier invoice. + +This module is similar to the *purchase_payment* module ; the main difference is that it doesn't depend on the *account_payment_extension* module (it's not the only module to conflict with *account_payment_extension* ; all the SEPA modules in the banking addons conflict with *account_payment_extension*, cf banking-addons-70/account_banking_payment_export/__openerp__.py). + +Please contact Alexis de Lattre from Akretion for any help or question about this module. + """, + 'author': 'Akretion', + 'website': 'http://www.akretion.com', + 'depends': ['purchase', 'account_payment_partner'], + 'conflicts': ['purchase_payment'], + 'data': [ + 'view/purchase.xml', + ], + 'installable': True, + 'active': False, +} diff --git a/account_payment_purchase/i18n/account_payment_purchase.pot b/account_payment_purchase/i18n/account_payment_purchase.pot new file mode 100644 index 000000000..49f775a6e --- /dev/null +++ b/account_payment_purchase/i18n/account_payment_purchase.pot @@ -0,0 +1,42 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 7.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2014-02-24 23:07+0000\n" +"PO-Revision-Date: 2014-02-24 23:07+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_purchase +#: field:purchase.order,payment_mode_type:0 +msgid "Payment Type" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: account_payment_purchase +#: help:purchase.order,supplier_partner_bank:0 +msgid "Select the bank account of your supplier on which your company should send the payment. This field is copied from the partner and will be copied to the supplier invoice." +msgstr "" + +#. module: account_payment_purchase +#: field:purchase.order,supplier_partner_bank:0 +msgid "Supplier Bank Account" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_stock_picking +msgid "Picking List" +msgstr "" + diff --git a/account_payment_purchase/i18n/fr.po b/account_payment_purchase/i18n/fr.po new file mode 100644 index 000000000..54d2b3b2a --- /dev/null +++ b/account_payment_purchase/i18n/fr.po @@ -0,0 +1,42 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 7.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2014-02-24 23:09+0000\n" +"PO-Revision-Date: 2014-02-24 23:09+0000\n" +"Last-Translator: Alexis de Lattre \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_purchase +#: field:purchase.order,payment_mode_type:0 +msgid "Payment Type" +msgstr "Type de Paiement" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "Bon de commande" + +#. module: account_payment_purchase +#: help:purchase.order,supplier_partner_bank:0 +msgid "Select the bank account of your supplier on which your company should send the payment. This field is copied from the partner and will be copied to the supplier invoice." +msgstr "Selectionnez le compte bancaire du fournisseur sur lequel votre société devra effectuer le règlement. Ce champ est copié depuis le partenaire et sera recopié sur la facture fournisseur." + +#. module: account_payment_purchase +#: field:purchase.order,supplier_partner_bank:0 +msgid "Supplier Bank Account" +msgstr "Compte bancaire du fournisseur" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_stock_picking +msgid "Picking List" +msgstr "Bon de livraison" + diff --git a/account_payment_purchase/model/__init__.py b/account_payment_purchase/model/__init__.py new file mode 100644 index 000000000..fe39c6366 --- /dev/null +++ b/account_payment_purchase/model/__init__.py @@ -0,0 +1,24 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# Account Payment Purchase 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 purchase +from . import stock diff --git a/account_payment_purchase/model/purchase.py b/account_payment_purchase/model/purchase.py new file mode 100644 index 000000000..639fdce6d --- /dev/null +++ b/account_payment_purchase/model/purchase.py @@ -0,0 +1,82 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# Account Payment Purchase 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 purchase_order(orm.Model): + _inherit = "purchase.order" + + _columns = { + 'supplier_partner_bank': fields.many2one( + 'res.partner.bank', 'Supplier Bank Account', + help="Select the bank account of your supplier on which " + "your company should send the payment. This field is copied " + "from the partner and will be copied to the supplier invoice."), + 'payment_mode_type': fields.many2one( + 'payment.mode.type', 'Payment Type'), + } + + def _get_default_supplier_partner_bank( + self, cr, uid, partner, context=None): + '''This function is designed to be inherited''' + if partner.bank_ids: + return partner.bank_ids[0].id + else: + return False + + def onchange_partner_id(self, cr, uid, ids, partner_id): + res = super(purchase_order, self).onchange_partner_id( + cr, uid, ids, partner_id) + if partner_id: + partner = self.pool['res.partner'].browse( + cr, uid, partner_id) + res['value'].update({ + 'supplier_partner_bank': + self._get_default_supplier_partner_bank( + cr, uid, partner), + 'payment_mode_type': + partner.supplier_payment_mode_type.id or False, + }) + else: + res['value'].update({ + 'supplier_partner_bank': False, + 'payment_mode_type': False, + }) + return res + + def action_invoice_create(self, cr, uid, ids, context=None): + """Copy bank partner + payment type from PO to invoice""" + # as of OpenERP 7.0, there is no _prepare function for + # the invoice (the _prepare function only exists for invoice lines) + res = super(purchase_order, self).action_invoice_create( + cr, uid, ids, context=context) + for order in self.browse(cr, uid, ids, context=context): + for invoice in order.invoice_ids: + if invoice.state == 'draft': + invoice.write({ + 'partner_bank_id': + order.supplier_partner_bank.id or False, + 'payment_mode_type': + order.payment_mode_type.id or False, + }, context=context) + return res diff --git a/account_payment_purchase/model/stock.py b/account_payment_purchase/model/stock.py new file mode 100644 index 000000000..e2f83663b --- /dev/null +++ b/account_payment_purchase/model/stock.py @@ -0,0 +1,42 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# Account Payment Purchase 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 stock_picking(orm.Model): + _inherit = "stock.picking" + + def _prepare_invoice( + self, cr, uid, picking, partner, inv_type, journal_id, + context=None): + """Copy bank partner and payment type from PO to invoice""" + invoice_vals = super(stock_picking, self)._prepare_invoice( + cr, uid, picking, partner, inv_type, journal_id, context=context) + if picking.purchase_id: + invoice_vals.update({ + 'partner_bank_id': + picking.purchase_id.supplier_partner_bank.id or False, + 'payment_mode_type': + picking.purchase_id.payment_mode_type.id or False, + }) + return invoice_vals diff --git a/account_payment_purchase/view/purchase.xml b/account_payment_purchase/view/purchase.xml new file mode 100644 index 000000000..3875fefda --- /dev/null +++ b/account_payment_purchase/view/purchase.xml @@ -0,0 +1,26 @@ + + + + + + + + + account_payment_purchase.purchase_order.form + purchase.order + + + + + + + + + + + From 6897af8621e0e7308c1b5c66b352266bfbd71569 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Valyi?= Date: Fri, 21 Mar 2014 16:50:25 -0300 Subject: [PATCH 02/35] wrapping module description lines to keep cool with the PEP-8 extremists --- account_payment_purchase/__openerp__.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/account_payment_purchase/__openerp__.py b/account_payment_purchase/__openerp__.py index e2fc219eb..76a89589b 100644 --- a/account_payment_purchase/__openerp__.py +++ b/account_payment_purchase/__openerp__.py @@ -30,11 +30,18 @@ Account Payment Purchase ======================== -This modules adds 2 fields on purchase orders : *Bank Account* and *Payment Type*. These fields are copied from partner to purchase order and then from purchase order to supplier invoice. +This modules adds 2 fields on purchase orders : *Bank Account* and *Payment +Type*. These fields are copied from partner to purchase order and then from +purchase order to supplier invoice. -This module is similar to the *purchase_payment* module ; the main difference is that it doesn't depend on the *account_payment_extension* module (it's not the only module to conflict with *account_payment_extension* ; all the SEPA modules in the banking addons conflict with *account_payment_extension*, cf banking-addons-70/account_banking_payment_export/__openerp__.py). +This module is similar to the *purchase_payment* module ; the main difference +is that it doesn't depend on the *account_payment_extension* module (it's not +the only module to conflict with *account_payment_extension* ; all the SEPA +modules in the banking addons conflict with *account_payment_extension*, cf +banking-addons-70/account_banking_payment_export/__openerp__.py). -Please contact Alexis de Lattre from Akretion for any help or question about this module. +Please contact Alexis de Lattre from Akretion +for any help or question about this module. """, 'author': 'Akretion', 'website': 'http://www.akretion.com', From 5c34b9c50ee99763226d961c3779424b1bb09416 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Tue, 10 Jun 2014 01:25:34 +0200 Subject: [PATCH 03/35] Update to the new data-model decided during the Open Days 2014. Add demo data. --- account_payment_purchase/__openerp__.py | 4 ++-- .../i18n/account_payment_purchase.pot | 22 +++++++++---------- account_payment_purchase/model/purchase.py | 22 +++++++++---------- account_payment_purchase/view/purchase.xml | 4 ++-- 4 files changed, 26 insertions(+), 26 deletions(-) diff --git a/account_payment_purchase/__openerp__.py b/account_payment_purchase/__openerp__.py index 76a89589b..c8d28debb 100644 --- a/account_payment_purchase/__openerp__.py +++ b/account_payment_purchase/__openerp__.py @@ -25,13 +25,13 @@ 'version': '1.0', 'category': 'Banking addons', 'license': 'AGPL-3', - 'summary': "Adds Bank Account and Payment Type on Purchase Orders", + 'summary': "Adds Bank Account and Payment Mode on Purchase Orders", 'description': """ Account Payment Purchase ======================== This modules adds 2 fields on purchase orders : *Bank Account* and *Payment -Type*. These fields are copied from partner to purchase order and then from +Mode*. These fields are copied from partner to purchase order and then from purchase order to supplier invoice. This module is similar to the *purchase_payment* module ; the main difference diff --git a/account_payment_purchase/i18n/account_payment_purchase.pot b/account_payment_purchase/i18n/account_payment_purchase.pot index 49f775a6e..17ed963d5 100644 --- a/account_payment_purchase/i18n/account_payment_purchase.pot +++ b/account_payment_purchase/i18n/account_payment_purchase.pot @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: OpenERP Server 7.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-02-24 23:07+0000\n" -"PO-Revision-Date: 2014-02-24 23:07+0000\n" +"POT-Creation-Date: 2014-06-09 23:23+0000\n" +"PO-Revision-Date: 2014-06-09 23:23+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -16,8 +16,13 @@ msgstr "" "Plural-Forms: \n" #. module: account_payment_purchase -#: field:purchase.order,payment_mode_type:0 -msgid "Payment Type" +#: field:purchase.order,payment_mode_id:0 +msgid "Payment Mode" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_stock_picking +msgid "Picking List" msgstr "" #. module: account_payment_purchase @@ -26,17 +31,12 @@ msgid "Purchase Order" msgstr "" #. module: account_payment_purchase -#: help:purchase.order,supplier_partner_bank:0 +#: help:purchase.order,supplier_partner_bank_id:0 msgid "Select the bank account of your supplier on which your company should send the payment. This field is copied from the partner and will be copied to the supplier invoice." msgstr "" #. module: account_payment_purchase -#: field:purchase.order,supplier_partner_bank:0 +#: field:purchase.order,supplier_partner_bank_id:0 msgid "Supplier Bank Account" msgstr "" -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_picking -msgid "Picking List" -msgstr "" - diff --git a/account_payment_purchase/model/purchase.py b/account_payment_purchase/model/purchase.py index 639fdce6d..f397a6a61 100644 --- a/account_payment_purchase/model/purchase.py +++ b/account_payment_purchase/model/purchase.py @@ -27,13 +27,13 @@ class purchase_order(orm.Model): _inherit = "purchase.order" _columns = { - 'supplier_partner_bank': fields.many2one( + 'supplier_partner_bank_id': fields.many2one( 'res.partner.bank', 'Supplier Bank Account', help="Select the bank account of your supplier on which " "your company should send the payment. This field is copied " "from the partner and will be copied to the supplier invoice."), - 'payment_mode_type': fields.many2one( - 'payment.mode.type', 'Payment Type'), + 'payment_mode_id': fields.many2one( + 'payment.mode', 'Payment Mode'), } def _get_default_supplier_partner_bank( @@ -51,16 +51,16 @@ class purchase_order(orm.Model): partner = self.pool['res.partner'].browse( cr, uid, partner_id) res['value'].update({ - 'supplier_partner_bank': + 'supplier_partner_bank_id': self._get_default_supplier_partner_bank( cr, uid, partner), - 'payment_mode_type': - partner.supplier_payment_mode_type.id or False, + 'payment_mode_id': + partner.supplier_payment_mode.id or False, }) else: res['value'].update({ - 'supplier_partner_bank': False, - 'payment_mode_type': False, + 'supplier_partner_bank_id': False, + 'payment_mode_id': False, }) return res @@ -75,8 +75,8 @@ class purchase_order(orm.Model): if invoice.state == 'draft': invoice.write({ 'partner_bank_id': - order.supplier_partner_bank.id or False, - 'payment_mode_type': - order.payment_mode_type.id or False, + order.supplier_partner_bank_id.id or False, + 'payment_mode_id': + order.payment_mode_id.id or False, }, context=context) return res diff --git a/account_payment_purchase/view/purchase.xml b/account_payment_purchase/view/purchase.xml index 3875fefda..f6b2cffec 100644 --- a/account_payment_purchase/view/purchase.xml +++ b/account_payment_purchase/view/purchase.xml @@ -15,8 +15,8 @@ - - + From 2c7ca8929ec579f357402d2d5b250c860874e3f5 Mon Sep 17 00:00:00 2001 From: Launchpad Translations on behalf of banking-addons-team Date: Thu, 26 Jun 2014 07:12:16 +0000 Subject: [PATCH 04/35] Launchpad automatic translations update. --- account_payment_purchase/i18n/fr.po | 42 ++++++++++++++++------------- 1 file changed, 24 insertions(+), 18 deletions(-) diff --git a/account_payment_purchase/i18n/fr.po b/account_payment_purchase/i18n/fr.po index 54d2b3b2a..48596ceec 100644 --- a/account_payment_purchase/i18n/fr.po +++ b/account_payment_purchase/i18n/fr.po @@ -6,19 +6,25 @@ msgid "" msgstr "" "Project-Id-Version: OpenERP Server 7.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-02-24 23:09+0000\n" -"PO-Revision-Date: 2014-02-24 23:09+0000\n" -"Last-Translator: Alexis de Lattre \n" +"POT-Creation-Date: 2014-06-09 23:23+0000\n" +"PO-Revision-Date: 2014-06-25 22:31+0000\n" +"Last-Translator: Alexis de Lattre \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Plural-Forms: \n" +"Content-Transfer-Encoding: 8bit\n" +"X-Launchpad-Export-Date: 2014-06-26 07:12+0000\n" +"X-Generator: Launchpad (build 17065)\n" #. module: account_payment_purchase -#: field:purchase.order,payment_mode_type:0 -msgid "Payment Type" -msgstr "Type de Paiement" +#: field:purchase.order,payment_mode_id:0 +msgid "Payment Mode" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_stock_picking +msgid "Picking List" +msgstr "Bon de livraison" #. module: account_payment_purchase #: model:ir.model,name:account_payment_purchase.model_purchase_order @@ -26,17 +32,17 @@ msgid "Purchase Order" msgstr "Bon de commande" #. module: account_payment_purchase -#: help:purchase.order,supplier_partner_bank:0 -msgid "Select the bank account of your supplier on which your company should send the payment. This field is copied from the partner and will be copied to the supplier invoice." -msgstr "Selectionnez le compte bancaire du fournisseur sur lequel votre société devra effectuer le règlement. Ce champ est copié depuis le partenaire et sera recopié sur la facture fournisseur." +#: help:purchase.order,supplier_partner_bank_id:0 +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." +msgstr "" +"Selectionnez le compte bancaire du fournisseur sur lequel votre société " +"devra effectuer le règlement. Ce champ est copié depuis le partenaire et " +"sera recopié sur la facture fournisseur." #. module: account_payment_purchase -#: field:purchase.order,supplier_partner_bank:0 +#: field:purchase.order,supplier_partner_bank_id:0 msgid "Supplier Bank Account" msgstr "Compte bancaire du fournisseur" - -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_picking -msgid "Picking List" -msgstr "Bon de livraison" - From 221ce843547d1f42e49d252da1aab1fd23be4635 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 05/35] Launchpad automatic translations update. --- account_payment_purchase/i18n/nl.po | 49 +++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 account_payment_purchase/i18n/nl.po diff --git a/account_payment_purchase/i18n/nl.po b/account_payment_purchase/i18n/nl.po new file mode 100644 index 000000000..07115b8af --- /dev/null +++ b/account_payment_purchase/i18n/nl.po @@ -0,0 +1,49 @@ +# 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:23+0000\n" +"PO-Revision-Date: 2014-06-26 14:15+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_purchase +#: field:purchase.order,payment_mode_id:0 +msgid "Payment Mode" +msgstr "Betaalwijze" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_stock_picking +msgid "Picking List" +msgstr "Verzamellijst" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "Inkooporder" + +#. module: account_payment_purchase +#: help:purchase.order,supplier_partner_bank_id:0 +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." +msgstr "" +"Selecteer de bankrekening van de leverancier waarop uw bedrijf de betaling " +"moet sturen. Dit veld wordt gekopieerd van de leverancier en wordt " +"gekopieerd naar de inkoopfactuur." + +#. module: account_payment_purchase +#: field:purchase.order,supplier_partner_bank_id:0 +msgid "Supplier Bank Account" +msgstr "Bankrekening leverancier" From c1436bf3a00431e89d95badaf359b45e99ec3424 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Wed, 10 Sep 2014 12:19:20 +0200 Subject: [PATCH 06/35] Initial adjustments for 8.0 repository --- account_payment_purchase/__init__.py | 23 ------ account_payment_purchase/__openerp__.py | 55 ------------- .../i18n/account_payment_purchase.pot | 42 ---------- account_payment_purchase/i18n/fr.po | 48 ----------- account_payment_purchase/i18n/nl.po | 49 ----------- account_payment_purchase/model/__init__.py | 24 ------ account_payment_purchase/model/purchase.py | 82 ------------------- account_payment_purchase/model/stock.py | 42 ---------- account_payment_purchase/view/purchase.xml | 26 ------ 9 files changed, 391 deletions(-) delete mode 100644 account_payment_purchase/__init__.py delete mode 100644 account_payment_purchase/__openerp__.py delete mode 100644 account_payment_purchase/i18n/account_payment_purchase.pot delete mode 100644 account_payment_purchase/i18n/fr.po delete mode 100644 account_payment_purchase/i18n/nl.po delete mode 100644 account_payment_purchase/model/__init__.py delete mode 100644 account_payment_purchase/model/purchase.py delete mode 100644 account_payment_purchase/model/stock.py delete mode 100644 account_payment_purchase/view/purchase.xml diff --git a/account_payment_purchase/__init__.py b/account_payment_purchase/__init__.py deleted file mode 100644 index 59199014f..000000000 --- a/account_payment_purchase/__init__.py +++ /dev/null @@ -1,23 +0,0 @@ -# -*- encoding: utf-8 -*- -############################################################################## -# -# Account Payment Purchase 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_purchase/__openerp__.py b/account_payment_purchase/__openerp__.py deleted file mode 100644 index c8d28debb..000000000 --- a/account_payment_purchase/__openerp__.py +++ /dev/null @@ -1,55 +0,0 @@ -# -*- encoding: utf-8 -*- -############################################################################## -# -# Account Payment Purchase 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 Purchase', - 'version': '1.0', - 'category': 'Banking addons', - 'license': 'AGPL-3', - 'summary': "Adds Bank Account and Payment Mode on Purchase Orders", - 'description': """ -Account Payment Purchase -======================== - -This modules adds 2 fields on purchase orders : *Bank Account* and *Payment -Mode*. These fields are copied from partner to purchase order and then from -purchase order to supplier invoice. - -This module is similar to the *purchase_payment* module ; the main difference -is that it doesn't depend on the *account_payment_extension* module (it's not -the only module to conflict with *account_payment_extension* ; all the SEPA -modules in the banking addons conflict with *account_payment_extension*, cf -banking-addons-70/account_banking_payment_export/__openerp__.py). - -Please contact Alexis de Lattre from Akretion -for any help or question about this module. - """, - 'author': 'Akretion', - 'website': 'http://www.akretion.com', - 'depends': ['purchase', 'account_payment_partner'], - 'conflicts': ['purchase_payment'], - 'data': [ - 'view/purchase.xml', - ], - 'installable': True, - 'active': False, -} diff --git a/account_payment_purchase/i18n/account_payment_purchase.pot b/account_payment_purchase/i18n/account_payment_purchase.pot deleted file mode 100644 index 17ed963d5..000000000 --- a/account_payment_purchase/i18n/account_payment_purchase.pot +++ /dev/null @@ -1,42 +0,0 @@ -# Translation of OpenERP Server. -# This file contains the translation of the following modules: -# * account_payment_purchase -# -msgid "" -msgstr "" -"Project-Id-Version: OpenERP Server 7.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-06-09 23:23+0000\n" -"PO-Revision-Date: 2014-06-09 23:23+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_purchase -#: field:purchase.order,payment_mode_id:0 -msgid "Payment Mode" -msgstr "" - -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_picking -msgid "Picking List" -msgstr "" - -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_purchase_order -msgid "Purchase Order" -msgstr "" - -#. module: account_payment_purchase -#: help:purchase.order,supplier_partner_bank_id:0 -msgid "Select the bank account of your supplier on which your company should send the payment. This field is copied from the partner and will be copied to the supplier invoice." -msgstr "" - -#. module: account_payment_purchase -#: field:purchase.order,supplier_partner_bank_id:0 -msgid "Supplier Bank Account" -msgstr "" - diff --git a/account_payment_purchase/i18n/fr.po b/account_payment_purchase/i18n/fr.po deleted file mode 100644 index 48596ceec..000000000 --- a/account_payment_purchase/i18n/fr.po +++ /dev/null @@ -1,48 +0,0 @@ -# Translation of OpenERP Server. -# This file contains the translation of the following modules: -# * account_payment_purchase -# -msgid "" -msgstr "" -"Project-Id-Version: OpenERP Server 7.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-06-09 23:23+0000\n" -"PO-Revision-Date: 2014-06-25 22:31+0000\n" -"Last-Translator: Alexis de Lattre \n" -"Language-Team: \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-26 07:12+0000\n" -"X-Generator: Launchpad (build 17065)\n" - -#. module: account_payment_purchase -#: field:purchase.order,payment_mode_id:0 -msgid "Payment Mode" -msgstr "" - -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_picking -msgid "Picking List" -msgstr "Bon de livraison" - -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_purchase_order -msgid "Purchase Order" -msgstr "Bon de commande" - -#. module: account_payment_purchase -#: help:purchase.order,supplier_partner_bank_id:0 -msgid "" -"Select the bank account of your supplier on which your company should send " -"the payment. This field is copied from the partner and will be copied to the " -"supplier invoice." -msgstr "" -"Selectionnez le compte bancaire du fournisseur sur lequel votre société " -"devra effectuer le règlement. Ce champ est copié depuis le partenaire et " -"sera recopié sur la facture fournisseur." - -#. module: account_payment_purchase -#: field:purchase.order,supplier_partner_bank_id:0 -msgid "Supplier Bank Account" -msgstr "Compte bancaire du fournisseur" diff --git a/account_payment_purchase/i18n/nl.po b/account_payment_purchase/i18n/nl.po deleted file mode 100644 index 07115b8af..000000000 --- a/account_payment_purchase/i18n/nl.po +++ /dev/null @@ -1,49 +0,0 @@ -# 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:23+0000\n" -"PO-Revision-Date: 2014-06-26 14:15+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_purchase -#: field:purchase.order,payment_mode_id:0 -msgid "Payment Mode" -msgstr "Betaalwijze" - -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_picking -msgid "Picking List" -msgstr "Verzamellijst" - -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_purchase_order -msgid "Purchase Order" -msgstr "Inkooporder" - -#. module: account_payment_purchase -#: help:purchase.order,supplier_partner_bank_id:0 -msgid "" -"Select the bank account of your supplier on which your company should send " -"the payment. This field is copied from the partner and will be copied to the " -"supplier invoice." -msgstr "" -"Selecteer de bankrekening van de leverancier waarop uw bedrijf de betaling " -"moet sturen. Dit veld wordt gekopieerd van de leverancier en wordt " -"gekopieerd naar de inkoopfactuur." - -#. module: account_payment_purchase -#: field:purchase.order,supplier_partner_bank_id:0 -msgid "Supplier Bank Account" -msgstr "Bankrekening leverancier" diff --git a/account_payment_purchase/model/__init__.py b/account_payment_purchase/model/__init__.py deleted file mode 100644 index fe39c6366..000000000 --- a/account_payment_purchase/model/__init__.py +++ /dev/null @@ -1,24 +0,0 @@ -# -*- encoding: utf-8 -*- -############################################################################## -# -# Account Payment Purchase 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 purchase -from . import stock diff --git a/account_payment_purchase/model/purchase.py b/account_payment_purchase/model/purchase.py deleted file mode 100644 index f397a6a61..000000000 --- a/account_payment_purchase/model/purchase.py +++ /dev/null @@ -1,82 +0,0 @@ -# -*- encoding: utf-8 -*- -############################################################################## -# -# Account Payment Purchase 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 purchase_order(orm.Model): - _inherit = "purchase.order" - - _columns = { - 'supplier_partner_bank_id': fields.many2one( - 'res.partner.bank', 'Supplier Bank Account', - help="Select the bank account of your supplier on which " - "your company should send the payment. This field is copied " - "from the partner and will be copied to the supplier invoice."), - 'payment_mode_id': fields.many2one( - 'payment.mode', 'Payment Mode'), - } - - def _get_default_supplier_partner_bank( - self, cr, uid, partner, context=None): - '''This function is designed to be inherited''' - if partner.bank_ids: - return partner.bank_ids[0].id - else: - return False - - def onchange_partner_id(self, cr, uid, ids, partner_id): - res = super(purchase_order, self).onchange_partner_id( - cr, uid, ids, partner_id) - if partner_id: - partner = self.pool['res.partner'].browse( - cr, uid, partner_id) - res['value'].update({ - 'supplier_partner_bank_id': - self._get_default_supplier_partner_bank( - cr, uid, partner), - 'payment_mode_id': - partner.supplier_payment_mode.id or False, - }) - else: - res['value'].update({ - 'supplier_partner_bank_id': False, - 'payment_mode_id': False, - }) - return res - - def action_invoice_create(self, cr, uid, ids, context=None): - """Copy bank partner + payment type from PO to invoice""" - # as of OpenERP 7.0, there is no _prepare function for - # the invoice (the _prepare function only exists for invoice lines) - res = super(purchase_order, self).action_invoice_create( - cr, uid, ids, context=context) - for order in self.browse(cr, uid, ids, context=context): - for invoice in order.invoice_ids: - if invoice.state == 'draft': - invoice.write({ - 'partner_bank_id': - order.supplier_partner_bank_id.id or False, - 'payment_mode_id': - order.payment_mode_id.id or False, - }, context=context) - return res diff --git a/account_payment_purchase/model/stock.py b/account_payment_purchase/model/stock.py deleted file mode 100644 index e2f83663b..000000000 --- a/account_payment_purchase/model/stock.py +++ /dev/null @@ -1,42 +0,0 @@ -# -*- encoding: utf-8 -*- -############################################################################## -# -# Account Payment Purchase 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 stock_picking(orm.Model): - _inherit = "stock.picking" - - def _prepare_invoice( - self, cr, uid, picking, partner, inv_type, journal_id, - context=None): - """Copy bank partner and payment type from PO to invoice""" - invoice_vals = super(stock_picking, self)._prepare_invoice( - cr, uid, picking, partner, inv_type, journal_id, context=context) - if picking.purchase_id: - invoice_vals.update({ - 'partner_bank_id': - picking.purchase_id.supplier_partner_bank.id or False, - 'payment_mode_type': - picking.purchase_id.payment_mode_type.id or False, - }) - return invoice_vals diff --git a/account_payment_purchase/view/purchase.xml b/account_payment_purchase/view/purchase.xml deleted file mode 100644 index f6b2cffec..000000000 --- a/account_payment_purchase/view/purchase.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - account_payment_purchase.purchase_order.form - purchase.order - - - - - - - - - - - From 8f2b329c5c4e2b6de5ac9a583faa968cc53c93f3 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Wed, 10 Sep 2014 12:48:09 +0200 Subject: [PATCH 07/35] Migration and enhancement of all modules involved in SEPA --- account_payment_purchase/__init__.py | 23 ++++++ account_payment_purchase/__openerp__.py | 56 +++++++++++++ .../i18n/account_payment_purchase.pot | 42 ++++++++++ account_payment_purchase/i18n/fr.po | 48 +++++++++++ account_payment_purchase/i18n/nl.po | 49 +++++++++++ account_payment_purchase/model/__init__.py | 24 ++++++ account_payment_purchase/model/purchase.py | 82 +++++++++++++++++++ account_payment_purchase/model/stock.py | 42 ++++++++++ account_payment_purchase/models/__init__.py | 24 ++++++ .../models/purchase_order.py | 63 ++++++++++++++ .../models/stock_picking.py | 38 +++++++++ account_payment_purchase/view/purchase.xml | 26 ++++++ .../views/purchase_order_view.xml | 25 ++++++ 13 files changed, 542 insertions(+) create mode 100644 account_payment_purchase/__init__.py create mode 100644 account_payment_purchase/__openerp__.py create mode 100644 account_payment_purchase/i18n/account_payment_purchase.pot create mode 100644 account_payment_purchase/i18n/fr.po create mode 100644 account_payment_purchase/i18n/nl.po create mode 100644 account_payment_purchase/model/__init__.py create mode 100644 account_payment_purchase/model/purchase.py create mode 100644 account_payment_purchase/model/stock.py create mode 100644 account_payment_purchase/models/__init__.py create mode 100644 account_payment_purchase/models/purchase_order.py create mode 100644 account_payment_purchase/models/stock_picking.py create mode 100644 account_payment_purchase/view/purchase.xml create mode 100644 account_payment_purchase/views/purchase_order_view.xml diff --git a/account_payment_purchase/__init__.py b/account_payment_purchase/__init__.py new file mode 100644 index 000000000..b21037b9f --- /dev/null +++ b/account_payment_purchase/__init__.py @@ -0,0 +1,23 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# Account Payment Purchase 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 models diff --git a/account_payment_purchase/__openerp__.py b/account_payment_purchase/__openerp__.py new file mode 100644 index 000000000..e7c258f73 --- /dev/null +++ b/account_payment_purchase/__openerp__.py @@ -0,0 +1,56 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# Account Payment Purchase 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 Purchase', + 'version': '1.0', + 'category': 'Banking addons', + 'license': 'AGPL-3', + 'summary': "Adds Bank Account and Payment Mode on Purchase Orders", + 'description': """ +Account Payment Purchase +======================== + +This module adds 2 fields on purchase orders : *Bank Account* and *Payment +Mode*. These fields are copied from partner to purchase order and then from +purchase order to supplier invoice. + +This module is similar to the *purchase_payment* module ; the main difference +is that it doesn't depend on the *account_payment_extension* module (it's not +the only module to conflict with *account_payment_extension* ; all the SEPA +modules in the banking addons conflict with *account_payment_extension*). + """, + 'author': 'Akretion', + 'website': 'http://www.akretion.com', + 'contributors': ['Pedro M. Baeza '], + 'depends': [ + 'purchase', + 'stock_account', + 'account_payment_partner' + ], + 'conflicts': ['purchase_payment'], + 'data': [ + 'views/purchase_order_view.xml', + ], + 'installable': True, + 'active': False, +} diff --git a/account_payment_purchase/i18n/account_payment_purchase.pot b/account_payment_purchase/i18n/account_payment_purchase.pot new file mode 100644 index 000000000..17ed963d5 --- /dev/null +++ b/account_payment_purchase/i18n/account_payment_purchase.pot @@ -0,0 +1,42 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 7.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2014-06-09 23:23+0000\n" +"PO-Revision-Date: 2014-06-09 23:23+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_purchase +#: field:purchase.order,payment_mode_id:0 +msgid "Payment Mode" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_stock_picking +msgid "Picking List" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: account_payment_purchase +#: help:purchase.order,supplier_partner_bank_id:0 +msgid "Select the bank account of your supplier on which your company should send the payment. This field is copied from the partner and will be copied to the supplier invoice." +msgstr "" + +#. module: account_payment_purchase +#: field:purchase.order,supplier_partner_bank_id:0 +msgid "Supplier Bank Account" +msgstr "" + diff --git a/account_payment_purchase/i18n/fr.po b/account_payment_purchase/i18n/fr.po new file mode 100644 index 000000000..48596ceec --- /dev/null +++ b/account_payment_purchase/i18n/fr.po @@ -0,0 +1,48 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 7.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2014-06-09 23:23+0000\n" +"PO-Revision-Date: 2014-06-25 22:31+0000\n" +"Last-Translator: Alexis de Lattre \n" +"Language-Team: \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-26 07:12+0000\n" +"X-Generator: Launchpad (build 17065)\n" + +#. module: account_payment_purchase +#: field:purchase.order,payment_mode_id:0 +msgid "Payment Mode" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_stock_picking +msgid "Picking List" +msgstr "Bon de livraison" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "Bon de commande" + +#. module: account_payment_purchase +#: help:purchase.order,supplier_partner_bank_id:0 +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." +msgstr "" +"Selectionnez le compte bancaire du fournisseur sur lequel votre société " +"devra effectuer le règlement. Ce champ est copié depuis le partenaire et " +"sera recopié sur la facture fournisseur." + +#. module: account_payment_purchase +#: field:purchase.order,supplier_partner_bank_id:0 +msgid "Supplier Bank Account" +msgstr "Compte bancaire du fournisseur" diff --git a/account_payment_purchase/i18n/nl.po b/account_payment_purchase/i18n/nl.po new file mode 100644 index 000000000..07115b8af --- /dev/null +++ b/account_payment_purchase/i18n/nl.po @@ -0,0 +1,49 @@ +# 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:23+0000\n" +"PO-Revision-Date: 2014-06-26 14:15+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_purchase +#: field:purchase.order,payment_mode_id:0 +msgid "Payment Mode" +msgstr "Betaalwijze" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_stock_picking +msgid "Picking List" +msgstr "Verzamellijst" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "Inkooporder" + +#. module: account_payment_purchase +#: help:purchase.order,supplier_partner_bank_id:0 +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." +msgstr "" +"Selecteer de bankrekening van de leverancier waarop uw bedrijf de betaling " +"moet sturen. Dit veld wordt gekopieerd van de leverancier en wordt " +"gekopieerd naar de inkoopfactuur." + +#. module: account_payment_purchase +#: field:purchase.order,supplier_partner_bank_id:0 +msgid "Supplier Bank Account" +msgstr "Bankrekening leverancier" diff --git a/account_payment_purchase/model/__init__.py b/account_payment_purchase/model/__init__.py new file mode 100644 index 000000000..fe39c6366 --- /dev/null +++ b/account_payment_purchase/model/__init__.py @@ -0,0 +1,24 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# Account Payment Purchase 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 purchase +from . import stock diff --git a/account_payment_purchase/model/purchase.py b/account_payment_purchase/model/purchase.py new file mode 100644 index 000000000..f397a6a61 --- /dev/null +++ b/account_payment_purchase/model/purchase.py @@ -0,0 +1,82 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# Account Payment Purchase 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 purchase_order(orm.Model): + _inherit = "purchase.order" + + _columns = { + 'supplier_partner_bank_id': fields.many2one( + 'res.partner.bank', 'Supplier Bank Account', + help="Select the bank account of your supplier on which " + "your company should send the payment. This field is copied " + "from the partner and will be copied to the supplier invoice."), + 'payment_mode_id': fields.many2one( + 'payment.mode', 'Payment Mode'), + } + + def _get_default_supplier_partner_bank( + self, cr, uid, partner, context=None): + '''This function is designed to be inherited''' + if partner.bank_ids: + return partner.bank_ids[0].id + else: + return False + + def onchange_partner_id(self, cr, uid, ids, partner_id): + res = super(purchase_order, self).onchange_partner_id( + cr, uid, ids, partner_id) + if partner_id: + partner = self.pool['res.partner'].browse( + cr, uid, partner_id) + res['value'].update({ + 'supplier_partner_bank_id': + self._get_default_supplier_partner_bank( + cr, uid, partner), + 'payment_mode_id': + partner.supplier_payment_mode.id or False, + }) + else: + res['value'].update({ + 'supplier_partner_bank_id': False, + 'payment_mode_id': False, + }) + return res + + def action_invoice_create(self, cr, uid, ids, context=None): + """Copy bank partner + payment type from PO to invoice""" + # as of OpenERP 7.0, there is no _prepare function for + # the invoice (the _prepare function only exists for invoice lines) + res = super(purchase_order, self).action_invoice_create( + cr, uid, ids, context=context) + for order in self.browse(cr, uid, ids, context=context): + for invoice in order.invoice_ids: + if invoice.state == 'draft': + invoice.write({ + 'partner_bank_id': + order.supplier_partner_bank_id.id or False, + 'payment_mode_id': + order.payment_mode_id.id or False, + }, context=context) + return res diff --git a/account_payment_purchase/model/stock.py b/account_payment_purchase/model/stock.py new file mode 100644 index 000000000..e2f83663b --- /dev/null +++ b/account_payment_purchase/model/stock.py @@ -0,0 +1,42 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# Account Payment Purchase 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 stock_picking(orm.Model): + _inherit = "stock.picking" + + def _prepare_invoice( + self, cr, uid, picking, partner, inv_type, journal_id, + context=None): + """Copy bank partner and payment type from PO to invoice""" + invoice_vals = super(stock_picking, self)._prepare_invoice( + cr, uid, picking, partner, inv_type, journal_id, context=context) + if picking.purchase_id: + invoice_vals.update({ + 'partner_bank_id': + picking.purchase_id.supplier_partner_bank.id or False, + 'payment_mode_type': + picking.purchase_id.payment_mode_type.id or False, + }) + return invoice_vals diff --git a/account_payment_purchase/models/__init__.py b/account_payment_purchase/models/__init__.py new file mode 100644 index 000000000..3d13bc0e4 --- /dev/null +++ b/account_payment_purchase/models/__init__.py @@ -0,0 +1,24 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# Account Payment Purchase 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 purchase_order +from . import stock_picking diff --git a/account_payment_purchase/models/purchase_order.py b/account_payment_purchase/models/purchase_order.py new file mode 100644 index 000000000..e1ca139ff --- /dev/null +++ b/account_payment_purchase/models/purchase_order.py @@ -0,0 +1,63 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# Account Payment Purchase 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, fields, api + + +class PurchaseOrder(models.Model): + _inherit = "purchase.order" + + supplier_partner_bank_id = fields.Many2one( + 'res.partner.bank', string='Supplier Bank Account', + domain="[('partner_id', '=', partner_id)]", + help="Select the bank account of your supplier on which your company " + "should send the payment. This field is copied from the partner " + "and will be copied to the supplier invoice.") + payment_mode_id = fields.Many2one( + 'payment.mode', string='Payment Mode', + domain="[('payment_order_type', '=', 'payment')]") + + @api.model + def _get_default_supplier_partner_bank(self, partner): + """This function is designed to be inherited""" + return partner.bank_ids and partner.bank_ids[0].id or False + + @api.multi + def onchange_partner_id(self, partner_id): + res = super(PurchaseOrder, self).onchange_partner_id(partner_id) + if partner_id: + partner = self.env['res.partner'].browse(partner_id) + res['value']['supplier_partner_bank_id'] = \ + self._get_default_supplier_partner_bank(partner) + res['value']['payment_mode_id'] = partner.supplier_payment_mode.id + else: + res['value']['supplier_partner_bank_id'] = False + res['value']['payment_mode_id'] = False + return res + + @api.model + def _prepare_invoice(self, order, line_ids): + res = super(PurchaseOrder, self)._prepare_invoice(order, line_ids) + if order: + res['partner_bank_id'] = order.supplier_partner_bank_id.id + res['payment_mode_id'] = order.payment_mode_id.id + return res diff --git a/account_payment_purchase/models/stock_picking.py b/account_payment_purchase/models/stock_picking.py new file mode 100644 index 000000000..2ab8c6073 --- /dev/null +++ b/account_payment_purchase/models/stock_picking.py @@ -0,0 +1,38 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# Account Payment Purchase 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 StockPicking(models.Model): + _inherit = "stock.picking" + + @api.model + def _create_invoice_from_picking(self, picking, vals): + if picking and picking.move_lines: + # Get purchase order from first move line + if picking.move_lines[0].purchase_line_id: + purchase = picking.move_lines[0].purchase_line_id.order_id + vals['partner_bank_id'] = purchase.supplier_partner_bank_id.id + vals['payment_mode_id'] = purchase.payment_mode_id.id + return super(StockPicking, self)._create_invoice_from_picking(picking, + vals) diff --git a/account_payment_purchase/view/purchase.xml b/account_payment_purchase/view/purchase.xml new file mode 100644 index 000000000..f6b2cffec --- /dev/null +++ b/account_payment_purchase/view/purchase.xml @@ -0,0 +1,26 @@ + + + + + + + + + account_payment_purchase.purchase_order.form + purchase.order + + + + + + + + + + + diff --git a/account_payment_purchase/views/purchase_order_view.xml b/account_payment_purchase/views/purchase_order_view.xml new file mode 100644 index 000000000..0e25c175e --- /dev/null +++ b/account_payment_purchase/views/purchase_order_view.xml @@ -0,0 +1,25 @@ + + + + + + + + + account_payment_purchase.purchase_order.form + purchase.order + + + + + + + + + + + From 9419ce080f16ccfa2816ccaa257174d928ef4440 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Tue, 7 Oct 2014 00:09:26 +0200 Subject: [PATCH 08/35] Clean files --- account_payment_purchase/model/__init__.py | 24 ------- account_payment_purchase/model/purchase.py | 82 ---------------------- account_payment_purchase/model/stock.py | 42 ----------- 3 files changed, 148 deletions(-) delete mode 100644 account_payment_purchase/model/__init__.py delete mode 100644 account_payment_purchase/model/purchase.py delete mode 100644 account_payment_purchase/model/stock.py diff --git a/account_payment_purchase/model/__init__.py b/account_payment_purchase/model/__init__.py deleted file mode 100644 index fe39c6366..000000000 --- a/account_payment_purchase/model/__init__.py +++ /dev/null @@ -1,24 +0,0 @@ -# -*- encoding: utf-8 -*- -############################################################################## -# -# Account Payment Purchase 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 purchase -from . import stock diff --git a/account_payment_purchase/model/purchase.py b/account_payment_purchase/model/purchase.py deleted file mode 100644 index f397a6a61..000000000 --- a/account_payment_purchase/model/purchase.py +++ /dev/null @@ -1,82 +0,0 @@ -# -*- encoding: utf-8 -*- -############################################################################## -# -# Account Payment Purchase 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 purchase_order(orm.Model): - _inherit = "purchase.order" - - _columns = { - 'supplier_partner_bank_id': fields.many2one( - 'res.partner.bank', 'Supplier Bank Account', - help="Select the bank account of your supplier on which " - "your company should send the payment. This field is copied " - "from the partner and will be copied to the supplier invoice."), - 'payment_mode_id': fields.many2one( - 'payment.mode', 'Payment Mode'), - } - - def _get_default_supplier_partner_bank( - self, cr, uid, partner, context=None): - '''This function is designed to be inherited''' - if partner.bank_ids: - return partner.bank_ids[0].id - else: - return False - - def onchange_partner_id(self, cr, uid, ids, partner_id): - res = super(purchase_order, self).onchange_partner_id( - cr, uid, ids, partner_id) - if partner_id: - partner = self.pool['res.partner'].browse( - cr, uid, partner_id) - res['value'].update({ - 'supplier_partner_bank_id': - self._get_default_supplier_partner_bank( - cr, uid, partner), - 'payment_mode_id': - partner.supplier_payment_mode.id or False, - }) - else: - res['value'].update({ - 'supplier_partner_bank_id': False, - 'payment_mode_id': False, - }) - return res - - def action_invoice_create(self, cr, uid, ids, context=None): - """Copy bank partner + payment type from PO to invoice""" - # as of OpenERP 7.0, there is no _prepare function for - # the invoice (the _prepare function only exists for invoice lines) - res = super(purchase_order, self).action_invoice_create( - cr, uid, ids, context=context) - for order in self.browse(cr, uid, ids, context=context): - for invoice in order.invoice_ids: - if invoice.state == 'draft': - invoice.write({ - 'partner_bank_id': - order.supplier_partner_bank_id.id or False, - 'payment_mode_id': - order.payment_mode_id.id or False, - }, context=context) - return res diff --git a/account_payment_purchase/model/stock.py b/account_payment_purchase/model/stock.py deleted file mode 100644 index e2f83663b..000000000 --- a/account_payment_purchase/model/stock.py +++ /dev/null @@ -1,42 +0,0 @@ -# -*- encoding: utf-8 -*- -############################################################################## -# -# Account Payment Purchase 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 stock_picking(orm.Model): - _inherit = "stock.picking" - - def _prepare_invoice( - self, cr, uid, picking, partner, inv_type, journal_id, - context=None): - """Copy bank partner and payment type from PO to invoice""" - invoice_vals = super(stock_picking, self)._prepare_invoice( - cr, uid, picking, partner, inv_type, journal_id, context=context) - if picking.purchase_id: - invoice_vals.update({ - 'partner_bank_id': - picking.purchase_id.supplier_partner_bank.id or False, - 'payment_mode_type': - picking.purchase_id.payment_mode_type.id or False, - }) - return invoice_vals From 30fb2c5770b0498afc654f9f5fb7c49c8caf015a Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Fri, 31 Oct 2014 23:54:24 +0100 Subject: [PATCH 09/35] account_payment_sale_stock: Split for removing stock dependency on sale [DEL] Remove old translations templates [IMP] More reorder on folder structure --- account_payment_purchase/__openerp__.py | 9 ++-- .../i18n/account_payment_purchase.pot | 42 ------------------- .../models/purchase_order.py | 3 +- account_payment_purchase/view/purchase.xml | 26 ------------ 4 files changed, 6 insertions(+), 74 deletions(-) delete mode 100644 account_payment_purchase/i18n/account_payment_purchase.pot delete mode 100644 account_payment_purchase/view/purchase.xml diff --git a/account_payment_purchase/__openerp__.py b/account_payment_purchase/__openerp__.py index e7c258f73..283d67477 100644 --- a/account_payment_purchase/__openerp__.py +++ b/account_payment_purchase/__openerp__.py @@ -30,13 +30,13 @@ Account Payment Purchase ======================== -This module adds 2 fields on purchase orders : *Bank Account* and *Payment +This module adds 2 fields on purchase orders: *Bank Account* and *Payment Mode*. These fields are copied from partner to purchase order and then from purchase order to supplier invoice. -This module is similar to the *purchase_payment* module ; the main difference +This module is similar to the *purchase_payment* module; the main difference is that it doesn't depend on the *account_payment_extension* module (it's not -the only module to conflict with *account_payment_extension* ; all the SEPA +the only module to conflict with *account_payment_extension*; all the SEPA modules in the banking addons conflict with *account_payment_extension*). """, 'author': 'Akretion', @@ -44,7 +44,6 @@ modules in the banking addons conflict with *account_payment_extension*). 'contributors': ['Pedro M. Baeza '], 'depends': [ 'purchase', - 'stock_account', 'account_payment_partner' ], 'conflicts': ['purchase_payment'], @@ -52,5 +51,5 @@ modules in the banking addons conflict with *account_payment_extension*). 'views/purchase_order_view.xml', ], 'installable': True, - 'active': False, + 'auto_install': True, } diff --git a/account_payment_purchase/i18n/account_payment_purchase.pot b/account_payment_purchase/i18n/account_payment_purchase.pot deleted file mode 100644 index 17ed963d5..000000000 --- a/account_payment_purchase/i18n/account_payment_purchase.pot +++ /dev/null @@ -1,42 +0,0 @@ -# Translation of OpenERP Server. -# This file contains the translation of the following modules: -# * account_payment_purchase -# -msgid "" -msgstr "" -"Project-Id-Version: OpenERP Server 7.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-06-09 23:23+0000\n" -"PO-Revision-Date: 2014-06-09 23:23+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_purchase -#: field:purchase.order,payment_mode_id:0 -msgid "Payment Mode" -msgstr "" - -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_picking -msgid "Picking List" -msgstr "" - -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_purchase_order -msgid "Purchase Order" -msgstr "" - -#. module: account_payment_purchase -#: help:purchase.order,supplier_partner_bank_id:0 -msgid "Select the bank account of your supplier on which your company should send the payment. This field is copied from the partner and will be copied to the supplier invoice." -msgstr "" - -#. module: account_payment_purchase -#: field:purchase.order,supplier_partner_bank_id:0 -msgid "Supplier Bank Account" -msgstr "" - diff --git a/account_payment_purchase/models/purchase_order.py b/account_payment_purchase/models/purchase_order.py index e1ca139ff..a8d73c235 100644 --- a/account_payment_purchase/models/purchase_order.py +++ b/account_payment_purchase/models/purchase_order.py @@ -34,7 +34,8 @@ class PurchaseOrder(models.Model): "and will be copied to the supplier invoice.") payment_mode_id = fields.Many2one( 'payment.mode', string='Payment Mode', - domain="[('payment_order_type', '=', 'payment')]") + domain="['|', ('payment_order_type', '=', 'payment'), " + "('payment_order_type', '=', 'both')]") @api.model def _get_default_supplier_partner_bank(self, partner): diff --git a/account_payment_purchase/view/purchase.xml b/account_payment_purchase/view/purchase.xml deleted file mode 100644 index f6b2cffec..000000000 --- a/account_payment_purchase/view/purchase.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - account_payment_purchase.purchase_order.form - purchase.order - - - - - - - - - - - From 69e8998bf4ff164ae19a8d9996453cb5fffa794e Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Sat, 1 Nov 2014 01:48:26 +0100 Subject: [PATCH 10/35] Translation template files [IMP] Translations to spanish --- .../i18n/account_payment_purchase.pot | 42 +++++++++++++++++++ account_payment_purchase/i18n/es.po | 42 +++++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 account_payment_purchase/i18n/account_payment_purchase.pot create mode 100644 account_payment_purchase/i18n/es.po diff --git a/account_payment_purchase/i18n/account_payment_purchase.pot b/account_payment_purchase/i18n/account_payment_purchase.pot new file mode 100644 index 000000000..a00a36e87 --- /dev/null +++ b/account_payment_purchase/i18n/account_payment_purchase.pot @@ -0,0 +1,42 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2014-10-31 22:55+0000\n" +"PO-Revision-Date: 2014-10-31 22:55+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_purchase +#: field:purchase.order,payment_mode_id:0 +msgid "Payment Mode" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_stock_picking +msgid "Picking List" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: account_payment_purchase +#: help:purchase.order,supplier_partner_bank_id:0 +msgid "Select the bank account of your supplier on which your company should send the payment. This field is copied from the partner and will be copied to the supplier invoice." +msgstr "" + +#. module: account_payment_purchase +#: field:purchase.order,supplier_partner_bank_id:0 +msgid "Supplier Bank Account" +msgstr "" + diff --git a/account_payment_purchase/i18n/es.po b/account_payment_purchase/i18n/es.po new file mode 100644 index 000000000..b170125d9 --- /dev/null +++ b/account_payment_purchase/i18n/es.po @@ -0,0 +1,42 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2014-10-31 22:55+0000\n" +"PO-Revision-Date: 2014-10-31 22:55+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_purchase +#: field:purchase.order,payment_mode_id:0 +msgid "Payment Mode" +msgstr "Modo de pago" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_stock_picking +msgid "Picking List" +msgstr "Albarán" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "Pedido de compra" + +#. module: account_payment_purchase +#: help:purchase.order,supplier_partner_bank_id:0 +msgid "Select the bank account of your supplier on which your company should send the payment. This field is copied from the partner and will be copied to the supplier invoice." +msgstr "Seleccione la cuenta bancaria de su proveedor a la que la compañía debe enviar el pago. Este campo se copia del proveedor si está rellenado, y se trasladará a la factura de proveedor." + +#. module: account_payment_purchase +#: field:purchase.order,supplier_partner_bank_id:0 +msgid "Supplier Bank Account" +msgstr "Cuenta bancaria del proveedor" + From 613bc85b3a987a17ac12f75a24b33be3de73f444 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Fri, 7 Nov 2014 23:00:34 +0100 Subject: [PATCH 11/35] Use sale_ok and purchase_ok instead of tweaking payment type --- account_payment_purchase/models/purchase_order.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/account_payment_purchase/models/purchase_order.py b/account_payment_purchase/models/purchase_order.py index a8d73c235..26d08dd23 100644 --- a/account_payment_purchase/models/purchase_order.py +++ b/account_payment_purchase/models/purchase_order.py @@ -34,8 +34,7 @@ class PurchaseOrder(models.Model): "and will be copied to the supplier invoice.") payment_mode_id = fields.Many2one( 'payment.mode', string='Payment Mode', - domain="['|', ('payment_order_type', '=', 'payment'), " - "('payment_order_type', '=', 'both')]") + domain="[('purchase_ok', '=', True)]") @api.model def _get_default_supplier_partner_bank(self, partner): From d473a53f008865c16f18f40808bf7d7d8703fbc8 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Mon, 19 Jan 2015 22:52:38 +0100 Subject: [PATCH 12/35] Add sale_ok and purchase_ok filters in partner/sale/purchase form views Use widget=selection for payment_mode_id fields Update demo data --- account_payment_purchase/views/purchase_order_view.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/account_payment_purchase/views/purchase_order_view.xml b/account_payment_purchase/views/purchase_order_view.xml index 0e25c175e..ae5d62110 100644 --- a/account_payment_purchase/views/purchase_order_view.xml +++ b/account_payment_purchase/views/purchase_order_view.xml @@ -15,7 +15,9 @@ - + From cc76bd3bb5c89dd7ec7880d3ef8ebfcf9f6c4cca Mon Sep 17 00:00:00 2001 From: Danimar Ribeiro Date: Fri, 13 Feb 2015 19:18:41 -0200 Subject: [PATCH 13/35] Portuguese translations --- account_payment_purchase/i18n/pt_BR.po | 42 ++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 account_payment_purchase/i18n/pt_BR.po diff --git a/account_payment_purchase/i18n/pt_BR.po b/account_payment_purchase/i18n/pt_BR.po new file mode 100644 index 000000000..2818e149a --- /dev/null +++ b/account_payment_purchase/i18n/pt_BR.po @@ -0,0 +1,42 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2014-10-31 22:55+0000\n" +"PO-Revision-Date: 2014-10-31 22:55+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_purchase +#: field:purchase.order,payment_mode_id:0 +msgid "Payment Mode" +msgstr "Modo de Pagamento" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_stock_picking +msgid "Picking List" +msgstr "Lista de Separação" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "Pedido de Compra" + +#. module: account_payment_purchase +#: help:purchase.order,supplier_partner_bank_id:0 +msgid "Select the bank account of your supplier on which your company should send the payment. This field is copied from the partner and will be copied to the supplier invoice." +msgstr "Selecione a conta bancária do seu fornecedor para a qual sua empresa deve mandar o pagamento. Este campo é copiado do parceiro e será copiado para a fatura do fornecedor." + +#. module: account_payment_purchase +#: field:purchase.order,supplier_partner_bank_id:0 +msgid "Supplier Bank Account" +msgstr "Conta Bancária do Fornecedor" + From f586864be542d141df127c228c538ab35f0230bf Mon Sep 17 00:00:00 2001 From: Alexandre Fayolle Date: Mon, 2 Mar 2015 17:23:15 +0100 Subject: [PATCH 14/35] Add OCA as author of OCA addons In order to get visibility on https://www.odoo.com/apps the OCA board has decided to add the OCA as author of all the addons maintained as part of the association. --- account_payment_purchase/__openerp__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_payment_purchase/__openerp__.py b/account_payment_purchase/__openerp__.py index 283d67477..52d588a05 100644 --- a/account_payment_purchase/__openerp__.py +++ b/account_payment_purchase/__openerp__.py @@ -39,7 +39,7 @@ is that it doesn't depend on the *account_payment_extension* module (it's not the only module to conflict with *account_payment_extension*; all the SEPA modules in the banking addons conflict with *account_payment_extension*). """, - 'author': 'Akretion', + 'author': "Akretion,Odoo Community Association (OCA)", 'website': 'http://www.akretion.com', 'contributors': ['Pedro M. Baeza '], 'depends': [ From 30f4d6d514c6019e6d59b7040f9e3bd75535add6 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Mon, 25 May 2015 17:14:05 +0200 Subject: [PATCH 15/35] Expand authors + manifest cleaning --- account_payment_purchase/__openerp__.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/account_payment_purchase/__openerp__.py b/account_payment_purchase/__openerp__.py index 52d588a05..056b789a2 100644 --- a/account_payment_purchase/__openerp__.py +++ b/account_payment_purchase/__openerp__.py @@ -39,9 +39,10 @@ is that it doesn't depend on the *account_payment_extension* module (it's not the only module to conflict with *account_payment_extension*; all the SEPA modules in the banking addons conflict with *account_payment_extension*). """, - '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': [ 'purchase', 'account_payment_partner' From ea315569dc3c5a3709312c745c0878c82b454d95 Mon Sep 17 00:00:00 2001 From: Philippe Schmidt Date: Mon, 1 Jun 2015 17:10:58 +0200 Subject: [PATCH 16/35] Add requested descriptions in an OCA README.rst file --- account_payment_purchase/README.rst | 80 +++++++++++++++++++++++++ account_payment_purchase/__openerp__.py | 13 ---- 2 files changed, 80 insertions(+), 13 deletions(-) create mode 100644 account_payment_purchase/README.rst diff --git a/account_payment_purchase/README.rst b/account_payment_purchase/README.rst new file mode 100644 index 000000000..d299f5b01 --- /dev/null +++ b/account_payment_purchase/README.rst @@ -0,0 +1,80 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :alt: License: AGPL-3 + +Account Payment Purchase +======================== + +This module adds 2 fields on purchase orders: *Bank Account* and *Payment +Mode*. These fields are copied from partner to purchase order and then from +purchase order to supplier invoice. + +This module is similar to the *purchase_payment* module; the main difference +is that it doesn't depend on the *account_payment_extension* module (it's not +the only module to conflict with *account_payment_extension*; all the SEPA +modules in the banking addons conflict with *account_payment_extension*). + +Installation +============ + +This module depends on : +- purchase +- account_payment_partner + +This modules are parts 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 purchase order, then on related invoice. +This default value could be change in a draft purchase or 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 +====================== + + * ... + +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 +* Alexandre Fayolle +* Danimar Ribeiro +* Raphaël Valyi + +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_purchase/__openerp__.py b/account_payment_purchase/__openerp__.py index 056b789a2..af6bd7833 100644 --- a/account_payment_purchase/__openerp__.py +++ b/account_payment_purchase/__openerp__.py @@ -26,19 +26,6 @@ 'category': 'Banking addons', 'license': 'AGPL-3', 'summary': "Adds Bank Account and Payment Mode on Purchase Orders", - 'description': """ -Account Payment Purchase -======================== - -This module adds 2 fields on purchase orders: *Bank Account* and *Payment -Mode*. These fields are copied from partner to purchase order and then from -purchase order to supplier invoice. - -This module is similar to the *purchase_payment* module; the main difference -is that it doesn't depend on the *account_payment_extension* module (it's not -the only module to conflict with *account_payment_extension*; all the SEPA -modules in the banking addons conflict with *account_payment_extension*). - """, 'author': "Akretion, " "Serv. Tecnol. Avanzados - Pedro M. Baeza, " "Odoo Community Association (OCA)", From 44768d282ee105a4ea2b2357b442ef2de95fb0ef Mon Sep 17 00:00:00 2001 From: Philippe Schmidt Date: Fri, 5 Jun 2015 12:31:00 +0200 Subject: [PATCH 17/35] some typo corrections --- account_payment_purchase/README.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/account_payment_purchase/README.rst b/account_payment_purchase/README.rst index d299f5b01..a6213ba2b 100644 --- a/account_payment_purchase/README.rst +++ b/account_payment_purchase/README.rst @@ -20,7 +20,7 @@ This module depends on : - purchase - account_payment_partner -This modules are parts of the OCA/bank-payment suite. +This module is part of the OCA/bank-payment suite. Configuration ============= @@ -44,7 +44,7 @@ For further information, please visit: Known issues / Roadmap ====================== - * ... + * No known issues. Bug Tracker =========== From 289aa146fd3297bd364624c56d724f18d540cbeb Mon Sep 17 00:00:00 2001 From: Yannick Vaucher Date: Tue, 18 Aug 2015 11:10:50 +0200 Subject: [PATCH 18/35] Add missing default oca icons --- .../static/description/icon.png | Bin 0 -> 9455 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 account_payment_purchase/static/description/icon.png diff --git a/account_payment_purchase/static/description/icon.png b/account_payment_purchase/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..3a0328b516c4980e8e44cdb63fd945757ddd132d GIT binary patch literal 9455 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 z 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 Xviia!U7SGha1wx#SCgwmn*{w2TRX*I literal 0 HcmV?d00001 From d3f85b07f1862305825f0f4b3c3fcad177881c5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Fri, 9 Oct 2015 09:59:34 +0200 Subject: [PATCH 19/35] prefix versions with 8.0 --- account_payment_purchase/__openerp__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_payment_purchase/__openerp__.py b/account_payment_purchase/__openerp__.py index af6bd7833..4aab2dceb 100644 --- a/account_payment_purchase/__openerp__.py +++ b/account_payment_purchase/__openerp__.py @@ -22,7 +22,7 @@ { 'name': 'Account Payment Purchase', - 'version': '1.0', + 'version': '8.0.1.0.0', 'category': 'Banking addons', 'license': 'AGPL-3', 'summary': "Adds Bank Account and Payment Mode on Purchase Orders", From 9ed06ff423132f570a442d02ac856fe7dbd504e4 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Wed, 14 Oct 2015 03:03:12 +0200 Subject: [PATCH 20/35] Make modules uninstallable --- account_payment_purchase/__openerp__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_payment_purchase/__openerp__.py b/account_payment_purchase/__openerp__.py index 4aab2dceb..24cfb7cd3 100644 --- a/account_payment_purchase/__openerp__.py +++ b/account_payment_purchase/__openerp__.py @@ -38,6 +38,6 @@ 'data': [ 'views/purchase_order_view.xml', ], - 'installable': True, + 'installable': False, 'auto_install': True, } From c24e6eaf6091134b839cd8fd76b061617a9cfa4e Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Wed, 25 Nov 2015 22:22:50 +0100 Subject: [PATCH 21/35] account_payment_purchase: Propagate payment_mode on MTO/drop shipping --- account_payment_purchase/models/__init__.py | 1 + .../models/procurement_order.py | 22 +++++ account_payment_purchase/tests/__init__.py | 5 ++ .../tests/test_account_payment_purchase.py | 84 +++++++++++++++++++ 4 files changed, 112 insertions(+) create mode 100644 account_payment_purchase/models/procurement_order.py create mode 100644 account_payment_purchase/tests/__init__.py create mode 100644 account_payment_purchase/tests/test_account_payment_purchase.py diff --git a/account_payment_purchase/models/__init__.py b/account_payment_purchase/models/__init__.py index 3d13bc0e4..0175eecff 100644 --- a/account_payment_purchase/models/__init__.py +++ b/account_payment_purchase/models/__init__.py @@ -20,5 +20,6 @@ # ############################################################################## +from . import procurement_order from . import purchase_order from . import stock_picking diff --git a/account_payment_purchase/models/procurement_order.py b/account_payment_purchase/models/procurement_order.py new file mode 100644 index 000000000..236ec611a --- /dev/null +++ b/account_payment_purchase/models/procurement_order.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +# (c) 2015 Serv. Tecnol. Avanzados - Pedro M. Baeza +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html + +from openerp import api, models + + +class ProcurementOrder(models.Model): + _inherit = "procurement.order" + + @api.model + def create_procurement_purchase_order(self, procurement, po_vals, + line_vals): + """Propagate payment mode on MTO/drop shipping.""" + if po_vals.get('partner_id'): + partner = self.env['res.partner'].browse(po_vals['partner_id']) + po_vals['payment_mode_id'] = partner.supplier_payment_mode.id + po_vals['supplier_partner_bank_id'] = ( + self.env['purchase.order']._get_default_supplier_partner_bank( + partner)) + return super(ProcurementOrder, self).create_procurement_purchase_order( + procurement, po_vals, line_vals) diff --git a/account_payment_purchase/tests/__init__.py b/account_payment_purchase/tests/__init__.py new file mode 100644 index 000000000..d44894fb2 --- /dev/null +++ b/account_payment_purchase/tests/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# (c) 2013-2015 Serv. Tecnol. Avanzados - Pedro M. Baeza +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html + +from . import test_account_payment_purchase diff --git a/account_payment_purchase/tests/test_account_payment_purchase.py b/account_payment_purchase/tests/test_account_payment_purchase.py new file mode 100644 index 000000000..7a70294ab --- /dev/null +++ b/account_payment_purchase/tests/test_account_payment_purchase.py @@ -0,0 +1,84 @@ +# -*- coding: utf-8 -*- +# (c) 2013-2015 Serv. Tecnol. Avanzados - Pedro M. Baeza +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html + +from openerp import fields +from openerp.tests import common + + +class TestAccountPaymentPurchase(common.TransactionCase): + def setUp(self): + super(TestAccountPaymentPurchase, self).setUp() + self.bank = self.env['res.partner.bank'].create( + {'state': 'bank', + 'bank_name': 'Test bank', + 'acc_number': '1234567890'}) + self.journal = self.env['account.journal'].create( + {'name': 'Test journal', + 'code': 'TEST', + 'type': 'general'}) + self.payment_mode = self.env['payment.mode'].create( + {'name': 'Test payment mode', + 'journal': self.journal.id, + 'bank_id': self.bank.id, + 'type': self.env.ref( + 'account_banking_payment_export.manual_bank_tranfer').id}) + self.partner = self.env['res.partner'].create( + {'name': 'Test partner', + 'supplier_payment_mode': self.payment_mode.id}) + self.purchase = self.env['purchase.order'].create( + {'partner_id': self.partner.id, + 'pricelist_id': ( + self.partner.property_product_pricelist_purchase.id), + 'payment_mode_id': self.payment_mode.id, + 'location_id': self.env['stock.location'].search([], limit=1).id, + 'invoice_method': 'order', + 'order_line': [(0, 0, {'name': 'Test line', + 'product_qty': 1.0, + 'date_planned': fields.Date.today(), + 'price_unit': 1.0})]}) + + def test_onchange_partner_id_purchase_order(self): + res = self.env['purchase.order'].onchange_partner_id(False) + self.assertEqual(res['value']['payment_mode_id'], False) + res = self.env['purchase.order'].onchange_partner_id(self.partner.id) + self.assertEqual(res['value']['payment_mode_id'], self.payment_mode.id) + + def test_purchase_order_invoicing(self): + self.purchase.signal_workflow('purchase_confirm') + self.assertEqual( + self.purchase.invoice_ids[0].payment_mode_id, self.payment_mode) + + def test_picking_from_purchase_order_invoicing(self): + stockable_product = self.env['product.product'].create( + {'name': 'Test stockable product', + 'type': 'product'}) + self.purchase.order_line[0].product_id = stockable_product.id + self.purchase.invoice_method = 'picking' + self.purchase.signal_workflow('purchase_confirm') + picking = self.purchase.picking_ids[0] + invoice_id = picking.action_invoice_create( + self.journal.id, type='in_invoice')[0] + invoice = self.env['account.invoice'].browse(invoice_id) + self.assertEqual(invoice.payment_mode_id, self.payment_mode) + + def test_procurement_buy_payment_mode(self): + mto_product = self.env['product.product'].create( + {'name': 'Test buy product', + 'type': 'product', + 'seller_ids': [(0, 0, {'name': self.partner.id})]}) + route = self.env.ref('purchase.route_warehouse0_buy') + rule = self.env['procurement.rule'].search( + [('route_id', '=', route.id)], limit=1) + procurement_order = self.env['procurement.order'].create( + {'product_id': mto_product.id, + 'rule_id': rule.id, + 'location_id': self.env['stock.location'].search([], limit=1).id, + 'warehouse_id': self.env['stock.warehouse'].search( + [], limit=1).id, + 'product_qty': 1, + 'product_uom': mto_product.uom_id.id, + 'name': 'Procurement order test'}) + procurement_order.run() + self.assertEqual( + procurement_order.purchase_id.payment_mode_id, self.payment_mode) From a4f60e417e0e2778428109bff4b197b097623141 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Mon, 25 Jan 2016 05:58:43 +0100 Subject: [PATCH 22/35] account_payment_*: Ensure work with dropshipping dual invoice When invoicing from dropshipping, the same picking serves for both invoicing sale and purchase orders. The OCA module stock_dropshipping_dual_invoice makes that this happens, but as the picking is the same, it contains both the sale and the purchase reference, making that the resulting invoices don't have the correct payment mode. This is harmless for the rest of operations, as the dictionary query is provided with the proper default value. On v9, dropshipping dual invoice has been merged into core, so this patch for sure will be welcome in that version (if the used method is the same). --- account_payment_purchase/models/stock_picking.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/account_payment_purchase/models/stock_picking.py b/account_payment_purchase/models/stock_picking.py index 2ab8c6073..28d30e057 100644 --- a/account_payment_purchase/models/stock_picking.py +++ b/account_payment_purchase/models/stock_picking.py @@ -1,4 +1,4 @@ -# -*- encoding: utf-8 -*- +# -*- coding: utf-8 -*- ############################################################################## # # Account Payment Purchase module for OpenERP @@ -28,11 +28,13 @@ class StockPicking(models.Model): @api.model def _create_invoice_from_picking(self, picking, vals): - if picking and picking.move_lines: + # This will assure that stock_dropshipping_dual_invoice will work + inv_type = self.env.context.get('inv_type', 'in_invoice') + if picking and picking.move_lines and inv_type == 'in_invoice': # Get purchase order from first move line if picking.move_lines[0].purchase_line_id: purchase = picking.move_lines[0].purchase_line_id.order_id vals['partner_bank_id'] = purchase.supplier_partner_bank_id.id vals['payment_mode_id'] = purchase.payment_mode_id.id - return super(StockPicking, self)._create_invoice_from_picking(picking, - vals) + return super(StockPicking, self)._create_invoice_from_picking( + picking, vals) From 35e525a5c37a74b1bc23e25b359eee8b3f394235 Mon Sep 17 00:00:00 2001 From: OCA Transbot Date: Sat, 9 Apr 2016 02:15:34 -0400 Subject: [PATCH 23/35] OCA Transbot updated translations from Transifex --- account_payment_purchase/i18n/fr.po | 39 ++++++++++--------- account_payment_purchase/i18n/pt_BR.po | 30 ++++++++++----- account_payment_purchase/i18n/sl.po | 52 ++++++++++++++++++++++++++ 3 files changed, 93 insertions(+), 28 deletions(-) create mode 100644 account_payment_purchase/i18n/sl.po diff --git a/account_payment_purchase/i18n/fr.po b/account_payment_purchase/i18n/fr.po index 48596ceec..ba2ba9f89 100644 --- a/account_payment_purchase/i18n/fr.po +++ b/account_payment_purchase/i18n/fr.po @@ -1,31 +1,37 @@ -# Translation of OpenERP Server. +# Translation of Odoo Server. # This file contains the translation of the following modules: -# * account_payment_purchase -# +# * account_payment_purchase +# +# Translators: msgid "" msgstr "" -"Project-Id-Version: OpenERP Server 7.0\n" +"Project-Id-Version: bank-payment (8.0)\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-06-09 23:23+0000\n" -"PO-Revision-Date: 2014-06-25 22:31+0000\n" -"Last-Translator: Alexis de Lattre \n" -"Language-Team: \n" +"POT-Creation-Date: 2016-04-08 00:46+0000\n" +"PO-Revision-Date: 2016-04-06 00:16+0000\n" +"Last-Translator: OCA Transbot \n" +"Language-Team: French (http://www.transifex.com/oca/OCA-bank-payment-8-0/language/fr/)\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-26 07:12+0000\n" -"X-Generator: Launchpad (build 17065)\n" +"Content-Transfer-Encoding: \n" +"Language: fr\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: account_payment_purchase #: field:purchase.order,payment_mode_id:0 msgid "Payment Mode" -msgstr "" +msgstr "Mode de paiement" #. module: account_payment_purchase #: model:ir.model,name:account_payment_purchase.model_stock_picking msgid "Picking List" msgstr "Bon de livraison" +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "" + #. module: account_payment_purchase #: model:ir.model,name:account_payment_purchase.model_purchase_order msgid "Purchase Order" @@ -35,12 +41,9 @@ msgstr "Bon de commande" #: help:purchase.order,supplier_partner_bank_id:0 msgid "" "Select the bank account of your supplier on which your company should send " -"the payment. This field is copied from the partner and will be copied to the " -"supplier invoice." -msgstr "" -"Selectionnez le compte bancaire du fournisseur sur lequel votre société " -"devra effectuer le règlement. Ce champ est copié depuis le partenaire et " -"sera recopié sur la facture fournisseur." +"the payment. This field is copied from the partner and will be copied to the" +" supplier invoice." +msgstr "Selectionnez le compte bancaire du fournisseur sur lequel votre société devra effectuer le règlement. Ce champ est copié depuis le partenaire et sera recopié sur la facture fournisseur." #. module: account_payment_purchase #: field:purchase.order,supplier_partner_bank_id:0 diff --git a/account_payment_purchase/i18n/pt_BR.po b/account_payment_purchase/i18n/pt_BR.po index 2818e149a..1241e9a20 100644 --- a/account_payment_purchase/i18n/pt_BR.po +++ b/account_payment_purchase/i18n/pt_BR.po @@ -1,19 +1,22 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * account_payment_purchase -# +# * account_payment_purchase +# +# Translators: +# danimaribeiro , 2016 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 8.0\n" +"Project-Id-Version: bank-payment (8.0)\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-10-31 22:55+0000\n" -"PO-Revision-Date: 2014-10-31 22:55+0000\n" -"Last-Translator: Danimar Ribeiro \n" -"Language-Team: \n" +"POT-Creation-Date: 2016-04-08 00:46+0000\n" +"PO-Revision-Date: 2016-04-06 01:03+0000\n" +"Last-Translator: danimaribeiro \n" +"Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/OCA-bank-payment-8-0/language/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_purchase #: field:purchase.order,payment_mode_id:0 @@ -25,6 +28,11 @@ msgstr "Modo de Pagamento" msgid "Picking List" msgstr "Lista de Separação" +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "Aquisição" + #. module: account_payment_purchase #: model:ir.model,name:account_payment_purchase.model_purchase_order msgid "Purchase Order" @@ -32,11 +40,13 @@ msgstr "Pedido de Compra" #. module: account_payment_purchase #: help:purchase.order,supplier_partner_bank_id:0 -msgid "Select the bank account of your supplier on which your company should send the payment. This field is copied from the partner and will be copied to the supplier invoice." +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the" +" supplier invoice." msgstr "Selecione a conta bancária do seu fornecedor para a qual sua empresa deve mandar o pagamento. Este campo é copiado do parceiro e será copiado para a fatura do fornecedor." #. module: account_payment_purchase #: field:purchase.order,supplier_partner_bank_id:0 msgid "Supplier Bank Account" msgstr "Conta Bancária do Fornecedor" - diff --git a/account_payment_purchase/i18n/sl.po b/account_payment_purchase/i18n/sl.po new file mode 100644 index 000000000..f3b0b47dd --- /dev/null +++ b/account_payment_purchase/i18n/sl.po @@ -0,0 +1,52 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +# Matjaž Mozetič , 2016 +msgid "" +msgstr "" +"Project-Id-Version: bank-payment (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-04-08 00:46+0000\n" +"PO-Revision-Date: 2016-04-08 05:50+0000\n" +"Last-Translator: Matjaž Mozetič \n" +"Language-Team: Slovenian (http://www.transifex.com/oca/OCA-bank-payment-8-0/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" + +#. module: account_payment_purchase +#: field:purchase.order,payment_mode_id:0 +msgid "Payment Mode" +msgstr "Metoda plačila" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_stock_picking +msgid "Picking List" +msgstr "Zbirni seznam" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "Oskrba" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "Nabavni nalog" + +#. module: account_payment_purchase +#: help:purchase.order,supplier_partner_bank_id:0 +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the" +" supplier invoice." +msgstr "Izberite bančni račun dobavitelja, na katerega bo vaša družba izvedla nakazilo. To polje se kopira iz partnerja in bo kopirano na prejeti račun." + +#. module: account_payment_purchase +#: field:purchase.order,supplier_partner_bank_id:0 +msgid "Supplier Bank Account" +msgstr "Bančni račun dobavitelja" From 7f18dce6acf97c3498e4feba038acb5d1c65609a Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Fri, 6 May 2016 01:16:20 +0200 Subject: [PATCH 24/35] 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) Various fixes/changes/improvements/... --- account_payment_purchase/__openerp__.py | 27 ++++++------------------- 1 file changed, 6 insertions(+), 21 deletions(-) diff --git a/account_payment_purchase/__openerp__.py b/account_payment_purchase/__openerp__.py index 24cfb7cd3..02476ae4f 100644 --- a/account_payment_purchase/__openerp__.py +++ b/account_payment_purchase/__openerp__.py @@ -1,25 +1,10 @@ -# -*- encoding: utf-8 -*- -############################################################################## -# -# Account Payment Purchase 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-2016 Akretion (Alexis de Lattre ) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). +# TODO : With the new workflow for supplier invoices where the user +# creates the supplier invoice then pulls the purchase orders, +# I think we should drop this module in v9... shoulnd't we ? { 'name': 'Account Payment Purchase', 'version': '8.0.1.0.0', From ce207627917c3cd6f430f464b4a2249f4316489f Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Sat, 7 May 2016 00:33:18 +0200 Subject: [PATCH 25/35] Remove module account_payment_purchase --- account_payment_purchase/README.rst | 80 ----------------- account_payment_purchase/__init__.py | 23 ----- account_payment_purchase/__openerp__.py | 28 ------ .../i18n/account_payment_purchase.pot | 42 --------- account_payment_purchase/i18n/es.po | 42 --------- account_payment_purchase/i18n/fr.po | 51 ----------- account_payment_purchase/i18n/nl.po | 49 ---------- account_payment_purchase/i18n/pt_BR.po | 52 ----------- account_payment_purchase/i18n/sl.po | 52 ----------- account_payment_purchase/models/__init__.py | 25 ------ .../models/procurement_order.py | 22 ----- .../models/purchase_order.py | 63 ------------- .../models/stock_picking.py | 40 --------- .../static/description/icon.png | Bin 9455 -> 0 bytes account_payment_purchase/tests/__init__.py | 5 -- .../tests/test_account_payment_purchase.py | 84 ------------------ .../views/purchase_order_view.xml | 27 ------ 17 files changed, 685 deletions(-) delete mode 100644 account_payment_purchase/README.rst delete mode 100644 account_payment_purchase/__init__.py delete mode 100644 account_payment_purchase/__openerp__.py delete mode 100644 account_payment_purchase/i18n/account_payment_purchase.pot delete mode 100644 account_payment_purchase/i18n/es.po delete mode 100644 account_payment_purchase/i18n/fr.po delete mode 100644 account_payment_purchase/i18n/nl.po delete mode 100644 account_payment_purchase/i18n/pt_BR.po delete mode 100644 account_payment_purchase/i18n/sl.po delete mode 100644 account_payment_purchase/models/__init__.py delete mode 100644 account_payment_purchase/models/procurement_order.py delete mode 100644 account_payment_purchase/models/purchase_order.py delete mode 100644 account_payment_purchase/models/stock_picking.py delete mode 100644 account_payment_purchase/static/description/icon.png delete mode 100644 account_payment_purchase/tests/__init__.py delete mode 100644 account_payment_purchase/tests/test_account_payment_purchase.py delete mode 100644 account_payment_purchase/views/purchase_order_view.xml diff --git a/account_payment_purchase/README.rst b/account_payment_purchase/README.rst deleted file mode 100644 index a6213ba2b..000000000 --- a/account_payment_purchase/README.rst +++ /dev/null @@ -1,80 +0,0 @@ -.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg - :alt: License: AGPL-3 - -Account Payment Purchase -======================== - -This module adds 2 fields on purchase orders: *Bank Account* and *Payment -Mode*. These fields are copied from partner to purchase order and then from -purchase order to supplier invoice. - -This module is similar to the *purchase_payment* module; the main difference -is that it doesn't depend on the *account_payment_extension* module (it's not -the only module to conflict with *account_payment_extension*; all the SEPA -modules in the banking addons conflict with *account_payment_extension*). - -Installation -============ - -This module depends on : -- purchase -- account_payment_partner - -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 purchase order, then on related invoice. -This default value could be change in a draft purchase or 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 -* Alexandre Fayolle -* Danimar Ribeiro -* Raphaël Valyi - -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_purchase/__init__.py b/account_payment_purchase/__init__.py deleted file mode 100644 index b21037b9f..000000000 --- a/account_payment_purchase/__init__.py +++ /dev/null @@ -1,23 +0,0 @@ -# -*- encoding: utf-8 -*- -############################################################################## -# -# Account Payment Purchase 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 models diff --git a/account_payment_purchase/__openerp__.py b/account_payment_purchase/__openerp__.py deleted file mode 100644 index 02476ae4f..000000000 --- a/account_payment_purchase/__openerp__.py +++ /dev/null @@ -1,28 +0,0 @@ -# -*- coding: utf-8 -*- -# © 2014-2016 Akretion (Alexis de Lattre ) -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). - -# TODO : With the new workflow for supplier invoices where the user -# creates the supplier invoice then pulls the purchase orders, -# I think we should drop this module in v9... shoulnd't we ? -{ - 'name': 'Account Payment Purchase', - 'version': '8.0.1.0.0', - 'category': 'Banking addons', - 'license': 'AGPL-3', - 'summary': "Adds Bank Account and Payment Mode on Purchase Orders", - 'author': "Akretion, " - "Serv. Tecnol. Avanzados - Pedro M. Baeza, " - "Odoo Community Association (OCA)", - 'website': 'https://github.com/OCA/bank-payment', - 'depends': [ - 'purchase', - 'account_payment_partner' - ], - 'conflicts': ['purchase_payment'], - 'data': [ - 'views/purchase_order_view.xml', - ], - 'installable': False, - 'auto_install': True, -} diff --git a/account_payment_purchase/i18n/account_payment_purchase.pot b/account_payment_purchase/i18n/account_payment_purchase.pot deleted file mode 100644 index a00a36e87..000000000 --- a/account_payment_purchase/i18n/account_payment_purchase.pot +++ /dev/null @@ -1,42 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * account_payment_purchase -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 8.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-10-31 22:55+0000\n" -"PO-Revision-Date: 2014-10-31 22:55+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_purchase -#: field:purchase.order,payment_mode_id:0 -msgid "Payment Mode" -msgstr "" - -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_picking -msgid "Picking List" -msgstr "" - -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_purchase_order -msgid "Purchase Order" -msgstr "" - -#. module: account_payment_purchase -#: help:purchase.order,supplier_partner_bank_id:0 -msgid "Select the bank account of your supplier on which your company should send the payment. This field is copied from the partner and will be copied to the supplier invoice." -msgstr "" - -#. module: account_payment_purchase -#: field:purchase.order,supplier_partner_bank_id:0 -msgid "Supplier Bank Account" -msgstr "" - diff --git a/account_payment_purchase/i18n/es.po b/account_payment_purchase/i18n/es.po deleted file mode 100644 index b170125d9..000000000 --- a/account_payment_purchase/i18n/es.po +++ /dev/null @@ -1,42 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * account_payment_purchase -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 8.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-10-31 22:55+0000\n" -"PO-Revision-Date: 2014-10-31 22:55+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_purchase -#: field:purchase.order,payment_mode_id:0 -msgid "Payment Mode" -msgstr "Modo de pago" - -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_picking -msgid "Picking List" -msgstr "Albarán" - -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_purchase_order -msgid "Purchase Order" -msgstr "Pedido de compra" - -#. module: account_payment_purchase -#: help:purchase.order,supplier_partner_bank_id:0 -msgid "Select the bank account of your supplier on which your company should send the payment. This field is copied from the partner and will be copied to the supplier invoice." -msgstr "Seleccione la cuenta bancaria de su proveedor a la que la compañía debe enviar el pago. Este campo se copia del proveedor si está rellenado, y se trasladará a la factura de proveedor." - -#. module: account_payment_purchase -#: field:purchase.order,supplier_partner_bank_id:0 -msgid "Supplier Bank Account" -msgstr "Cuenta bancaria del proveedor" - diff --git a/account_payment_purchase/i18n/fr.po b/account_payment_purchase/i18n/fr.po deleted file mode 100644 index ba2ba9f89..000000000 --- a/account_payment_purchase/i18n/fr.po +++ /dev/null @@ -1,51 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * account_payment_purchase -# -# Translators: -msgid "" -msgstr "" -"Project-Id-Version: bank-payment (8.0)\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-04-08 00:46+0000\n" -"PO-Revision-Date: 2016-04-06 00:16+0000\n" -"Last-Translator: OCA Transbot \n" -"Language-Team: French (http://www.transifex.com/oca/OCA-bank-payment-8-0/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_purchase -#: field:purchase.order,payment_mode_id:0 -msgid "Payment Mode" -msgstr "Mode de paiement" - -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_picking -msgid "Picking List" -msgstr "Bon de livraison" - -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" -msgstr "" - -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_purchase_order -msgid "Purchase Order" -msgstr "Bon de commande" - -#. module: account_payment_purchase -#: help:purchase.order,supplier_partner_bank_id:0 -msgid "" -"Select the bank account of your supplier on which your company should send " -"the payment. This field is copied from the partner and will be copied to the" -" supplier invoice." -msgstr "Selectionnez le compte bancaire du fournisseur sur lequel votre société devra effectuer le règlement. Ce champ est copié depuis le partenaire et sera recopié sur la facture fournisseur." - -#. module: account_payment_purchase -#: field:purchase.order,supplier_partner_bank_id:0 -msgid "Supplier Bank Account" -msgstr "Compte bancaire du fournisseur" diff --git a/account_payment_purchase/i18n/nl.po b/account_payment_purchase/i18n/nl.po deleted file mode 100644 index 07115b8af..000000000 --- a/account_payment_purchase/i18n/nl.po +++ /dev/null @@ -1,49 +0,0 @@ -# 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:23+0000\n" -"PO-Revision-Date: 2014-06-26 14:15+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_purchase -#: field:purchase.order,payment_mode_id:0 -msgid "Payment Mode" -msgstr "Betaalwijze" - -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_picking -msgid "Picking List" -msgstr "Verzamellijst" - -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_purchase_order -msgid "Purchase Order" -msgstr "Inkooporder" - -#. module: account_payment_purchase -#: help:purchase.order,supplier_partner_bank_id:0 -msgid "" -"Select the bank account of your supplier on which your company should send " -"the payment. This field is copied from the partner and will be copied to the " -"supplier invoice." -msgstr "" -"Selecteer de bankrekening van de leverancier waarop uw bedrijf de betaling " -"moet sturen. Dit veld wordt gekopieerd van de leverancier en wordt " -"gekopieerd naar de inkoopfactuur." - -#. module: account_payment_purchase -#: field:purchase.order,supplier_partner_bank_id:0 -msgid "Supplier Bank Account" -msgstr "Bankrekening leverancier" diff --git a/account_payment_purchase/i18n/pt_BR.po b/account_payment_purchase/i18n/pt_BR.po deleted file mode 100644 index 1241e9a20..000000000 --- a/account_payment_purchase/i18n/pt_BR.po +++ /dev/null @@ -1,52 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * account_payment_purchase -# -# Translators: -# danimaribeiro , 2016 -msgid "" -msgstr "" -"Project-Id-Version: bank-payment (8.0)\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-04-08 00:46+0000\n" -"PO-Revision-Date: 2016-04-06 01:03+0000\n" -"Last-Translator: danimaribeiro \n" -"Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/OCA-bank-payment-8-0/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_purchase -#: field:purchase.order,payment_mode_id:0 -msgid "Payment Mode" -msgstr "Modo de Pagamento" - -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_picking -msgid "Picking List" -msgstr "Lista de Separação" - -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" -msgstr "Aquisição" - -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_purchase_order -msgid "Purchase Order" -msgstr "Pedido de Compra" - -#. module: account_payment_purchase -#: help:purchase.order,supplier_partner_bank_id:0 -msgid "" -"Select the bank account of your supplier on which your company should send " -"the payment. This field is copied from the partner and will be copied to the" -" supplier invoice." -msgstr "Selecione a conta bancária do seu fornecedor para a qual sua empresa deve mandar o pagamento. Este campo é copiado do parceiro e será copiado para a fatura do fornecedor." - -#. module: account_payment_purchase -#: field:purchase.order,supplier_partner_bank_id:0 -msgid "Supplier Bank Account" -msgstr "Conta Bancária do Fornecedor" diff --git a/account_payment_purchase/i18n/sl.po b/account_payment_purchase/i18n/sl.po deleted file mode 100644 index f3b0b47dd..000000000 --- a/account_payment_purchase/i18n/sl.po +++ /dev/null @@ -1,52 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * account_payment_purchase -# -# Translators: -# Matjaž Mozetič , 2016 -msgid "" -msgstr "" -"Project-Id-Version: bank-payment (8.0)\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-04-08 00:46+0000\n" -"PO-Revision-Date: 2016-04-08 05:50+0000\n" -"Last-Translator: Matjaž Mozetič \n" -"Language-Team: Slovenian (http://www.transifex.com/oca/OCA-bank-payment-8-0/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" - -#. module: account_payment_purchase -#: field:purchase.order,payment_mode_id:0 -msgid "Payment Mode" -msgstr "Metoda plačila" - -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_picking -msgid "Picking List" -msgstr "Zbirni seznam" - -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" -msgstr "Oskrba" - -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_purchase_order -msgid "Purchase Order" -msgstr "Nabavni nalog" - -#. module: account_payment_purchase -#: help:purchase.order,supplier_partner_bank_id:0 -msgid "" -"Select the bank account of your supplier on which your company should send " -"the payment. This field is copied from the partner and will be copied to the" -" supplier invoice." -msgstr "Izberite bančni račun dobavitelja, na katerega bo vaša družba izvedla nakazilo. To polje se kopira iz partnerja in bo kopirano na prejeti račun." - -#. module: account_payment_purchase -#: field:purchase.order,supplier_partner_bank_id:0 -msgid "Supplier Bank Account" -msgstr "Bančni račun dobavitelja" diff --git a/account_payment_purchase/models/__init__.py b/account_payment_purchase/models/__init__.py deleted file mode 100644 index 0175eecff..000000000 --- a/account_payment_purchase/models/__init__.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- encoding: utf-8 -*- -############################################################################## -# -# Account Payment Purchase 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 procurement_order -from . import purchase_order -from . import stock_picking diff --git a/account_payment_purchase/models/procurement_order.py b/account_payment_purchase/models/procurement_order.py deleted file mode 100644 index 236ec611a..000000000 --- a/account_payment_purchase/models/procurement_order.py +++ /dev/null @@ -1,22 +0,0 @@ -# -*- coding: utf-8 -*- -# (c) 2015 Serv. Tecnol. Avanzados - Pedro M. Baeza -# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html - -from openerp import api, models - - -class ProcurementOrder(models.Model): - _inherit = "procurement.order" - - @api.model - def create_procurement_purchase_order(self, procurement, po_vals, - line_vals): - """Propagate payment mode on MTO/drop shipping.""" - if po_vals.get('partner_id'): - partner = self.env['res.partner'].browse(po_vals['partner_id']) - po_vals['payment_mode_id'] = partner.supplier_payment_mode.id - po_vals['supplier_partner_bank_id'] = ( - self.env['purchase.order']._get_default_supplier_partner_bank( - partner)) - return super(ProcurementOrder, self).create_procurement_purchase_order( - procurement, po_vals, line_vals) diff --git a/account_payment_purchase/models/purchase_order.py b/account_payment_purchase/models/purchase_order.py deleted file mode 100644 index 26d08dd23..000000000 --- a/account_payment_purchase/models/purchase_order.py +++ /dev/null @@ -1,63 +0,0 @@ -# -*- encoding: utf-8 -*- -############################################################################## -# -# Account Payment Purchase 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, fields, api - - -class PurchaseOrder(models.Model): - _inherit = "purchase.order" - - supplier_partner_bank_id = fields.Many2one( - 'res.partner.bank', string='Supplier Bank Account', - domain="[('partner_id', '=', partner_id)]", - help="Select the bank account of your supplier on which your company " - "should send the payment. This field is copied from the partner " - "and will be copied to the supplier invoice.") - payment_mode_id = fields.Many2one( - 'payment.mode', string='Payment Mode', - domain="[('purchase_ok', '=', True)]") - - @api.model - def _get_default_supplier_partner_bank(self, partner): - """This function is designed to be inherited""" - return partner.bank_ids and partner.bank_ids[0].id or False - - @api.multi - def onchange_partner_id(self, partner_id): - res = super(PurchaseOrder, self).onchange_partner_id(partner_id) - if partner_id: - partner = self.env['res.partner'].browse(partner_id) - res['value']['supplier_partner_bank_id'] = \ - self._get_default_supplier_partner_bank(partner) - res['value']['payment_mode_id'] = partner.supplier_payment_mode.id - else: - res['value']['supplier_partner_bank_id'] = False - res['value']['payment_mode_id'] = False - return res - - @api.model - def _prepare_invoice(self, order, line_ids): - res = super(PurchaseOrder, self)._prepare_invoice(order, line_ids) - if order: - res['partner_bank_id'] = order.supplier_partner_bank_id.id - res['payment_mode_id'] = order.payment_mode_id.id - return res diff --git a/account_payment_purchase/models/stock_picking.py b/account_payment_purchase/models/stock_picking.py deleted file mode 100644 index 28d30e057..000000000 --- a/account_payment_purchase/models/stock_picking.py +++ /dev/null @@ -1,40 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# Account Payment Purchase 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 StockPicking(models.Model): - _inherit = "stock.picking" - - @api.model - def _create_invoice_from_picking(self, picking, vals): - # This will assure that stock_dropshipping_dual_invoice will work - inv_type = self.env.context.get('inv_type', 'in_invoice') - if picking and picking.move_lines and inv_type == 'in_invoice': - # Get purchase order from first move line - if picking.move_lines[0].purchase_line_id: - purchase = picking.move_lines[0].purchase_line_id.order_id - vals['partner_bank_id'] = purchase.supplier_partner_bank_id.id - vals['payment_mode_id'] = purchase.payment_mode_id.id - return super(StockPicking, self)._create_invoice_from_picking( - picking, vals) diff --git a/account_payment_purchase/static/description/icon.png b/account_payment_purchase/static/description/icon.png deleted file mode 100644 index 3a0328b516c4980e8e44cdb63fd945757ddd132d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 9455 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 z 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 Xviia!U7SGha1wx#SCgwmn*{w2TRX*I diff --git a/account_payment_purchase/tests/__init__.py b/account_payment_purchase/tests/__init__.py deleted file mode 100644 index d44894fb2..000000000 --- a/account_payment_purchase/tests/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -# -*- coding: utf-8 -*- -# (c) 2013-2015 Serv. Tecnol. Avanzados - Pedro M. Baeza -# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html - -from . import test_account_payment_purchase diff --git a/account_payment_purchase/tests/test_account_payment_purchase.py b/account_payment_purchase/tests/test_account_payment_purchase.py deleted file mode 100644 index 7a70294ab..000000000 --- a/account_payment_purchase/tests/test_account_payment_purchase.py +++ /dev/null @@ -1,84 +0,0 @@ -# -*- coding: utf-8 -*- -# (c) 2013-2015 Serv. Tecnol. Avanzados - Pedro M. Baeza -# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html - -from openerp import fields -from openerp.tests import common - - -class TestAccountPaymentPurchase(common.TransactionCase): - def setUp(self): - super(TestAccountPaymentPurchase, self).setUp() - self.bank = self.env['res.partner.bank'].create( - {'state': 'bank', - 'bank_name': 'Test bank', - 'acc_number': '1234567890'}) - self.journal = self.env['account.journal'].create( - {'name': 'Test journal', - 'code': 'TEST', - 'type': 'general'}) - self.payment_mode = self.env['payment.mode'].create( - {'name': 'Test payment mode', - 'journal': self.journal.id, - 'bank_id': self.bank.id, - 'type': self.env.ref( - 'account_banking_payment_export.manual_bank_tranfer').id}) - self.partner = self.env['res.partner'].create( - {'name': 'Test partner', - 'supplier_payment_mode': self.payment_mode.id}) - self.purchase = self.env['purchase.order'].create( - {'partner_id': self.partner.id, - 'pricelist_id': ( - self.partner.property_product_pricelist_purchase.id), - 'payment_mode_id': self.payment_mode.id, - 'location_id': self.env['stock.location'].search([], limit=1).id, - 'invoice_method': 'order', - 'order_line': [(0, 0, {'name': 'Test line', - 'product_qty': 1.0, - 'date_planned': fields.Date.today(), - 'price_unit': 1.0})]}) - - def test_onchange_partner_id_purchase_order(self): - res = self.env['purchase.order'].onchange_partner_id(False) - self.assertEqual(res['value']['payment_mode_id'], False) - res = self.env['purchase.order'].onchange_partner_id(self.partner.id) - self.assertEqual(res['value']['payment_mode_id'], self.payment_mode.id) - - def test_purchase_order_invoicing(self): - self.purchase.signal_workflow('purchase_confirm') - self.assertEqual( - self.purchase.invoice_ids[0].payment_mode_id, self.payment_mode) - - def test_picking_from_purchase_order_invoicing(self): - stockable_product = self.env['product.product'].create( - {'name': 'Test stockable product', - 'type': 'product'}) - self.purchase.order_line[0].product_id = stockable_product.id - self.purchase.invoice_method = 'picking' - self.purchase.signal_workflow('purchase_confirm') - picking = self.purchase.picking_ids[0] - invoice_id = picking.action_invoice_create( - self.journal.id, type='in_invoice')[0] - invoice = self.env['account.invoice'].browse(invoice_id) - self.assertEqual(invoice.payment_mode_id, self.payment_mode) - - def test_procurement_buy_payment_mode(self): - mto_product = self.env['product.product'].create( - {'name': 'Test buy product', - 'type': 'product', - 'seller_ids': [(0, 0, {'name': self.partner.id})]}) - route = self.env.ref('purchase.route_warehouse0_buy') - rule = self.env['procurement.rule'].search( - [('route_id', '=', route.id)], limit=1) - procurement_order = self.env['procurement.order'].create( - {'product_id': mto_product.id, - 'rule_id': rule.id, - 'location_id': self.env['stock.location'].search([], limit=1).id, - 'warehouse_id': self.env['stock.warehouse'].search( - [], limit=1).id, - 'product_qty': 1, - 'product_uom': mto_product.uom_id.id, - 'name': 'Procurement order test'}) - procurement_order.run() - self.assertEqual( - procurement_order.purchase_id.payment_mode_id, self.payment_mode) diff --git a/account_payment_purchase/views/purchase_order_view.xml b/account_payment_purchase/views/purchase_order_view.xml deleted file mode 100644 index ae5d62110..000000000 --- a/account_payment_purchase/views/purchase_order_view.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - account_payment_purchase.purchase_order.form - purchase.order - - - - - - - - - - - From 7fe85b666cd629d365d63b550da2a49928e57d20 Mon Sep 17 00:00:00 2001 From: jesusVMayor Date: Thu, 4 Aug 2016 10:36:44 +0200 Subject: [PATCH 26/35] account_payment_purchase: set correctly payment mode in purchases created from procurement. --- .../models/procurement_order.py | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 account_payment_purchase/models/procurement_order.py diff --git a/account_payment_purchase/models/procurement_order.py b/account_payment_purchase/models/procurement_order.py new file mode 100644 index 000000000..2e685323e --- /dev/null +++ b/account_payment_purchase/models/procurement_order.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +# (c) 2015 Serv. Tecnol. Avanzados - Pedro M. Baeza +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html + +from openerp import api, models + + +class ProcurementOrder(models.Model): + _inherit = "procurement.order" + + @api.model + def create_procurement_purchase_order(self, procurement, po_vals, + line_vals): + """Propagate payment mode on MTO/drop shipping.""" + if po_vals.get('partner_id'): + partner = self.env['res.partner'].browse(po_vals['partner_id']) + po_vals['payment_mode_id'] = partner.with_context( + force_company=procurement.company_id.id).\ + supplier_payment_mode.id + po_vals['supplier_partner_bank_id'] = ( + self.env['purchase.order']._get_default_supplier_partner_bank( + partner)) + return super(ProcurementOrder, self).create_procurement_purchase_order( + procurement, po_vals, line_vals) From 702a7efc2d50d4118abf31e55266938edff50a18 Mon Sep 17 00:00:00 2001 From: OCA Transbot Date: Sat, 20 Aug 2016 00:57:59 -0400 Subject: [PATCH 27/35] OCA Transbot updated translations from Transifex --- account_payment_purchase/i18n/es_MX.po | 51 ++++++++++++++++++++++++++ account_payment_purchase/i18n/fi.po | 51 ++++++++++++++++++++++++++ account_payment_purchase/i18n/fr_FR.po | 51 ++++++++++++++++++++++++++ account_payment_purchase/i18n/hr.po | 51 ++++++++++++++++++++++++++ account_payment_purchase/i18n/it.po | 51 ++++++++++++++++++++++++++ account_payment_purchase/i18n/pt_PT.po | 51 ++++++++++++++++++++++++++ account_payment_purchase/i18n/tr.po | 51 ++++++++++++++++++++++++++ account_payment_purchase/i18n/tr_TR.po | 51 ++++++++++++++++++++++++++ 8 files changed, 408 insertions(+) create mode 100644 account_payment_purchase/i18n/es_MX.po create mode 100644 account_payment_purchase/i18n/fi.po create mode 100644 account_payment_purchase/i18n/fr_FR.po create mode 100644 account_payment_purchase/i18n/hr.po create mode 100644 account_payment_purchase/i18n/it.po create mode 100644 account_payment_purchase/i18n/pt_PT.po create mode 100644 account_payment_purchase/i18n/tr.po create mode 100644 account_payment_purchase/i18n/tr_TR.po diff --git a/account_payment_purchase/i18n/es_MX.po b/account_payment_purchase/i18n/es_MX.po new file mode 100644 index 000000000..97e9e2e9d --- /dev/null +++ b/account_payment_purchase/i18n/es_MX.po @@ -0,0 +1,51 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: bank-payment (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-01 18:13+0000\n" +"PO-Revision-Date: 2016-04-06 00:16+0000\n" +"Last-Translator: <>\n" +"Language-Team: Spanish (Mexico) (http://www.transifex.com/oca/OCA-bank-payment-8-0/language/es_MX/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: es_MX\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: account_payment_purchase +#: field:purchase.order,payment_mode_id:0 +msgid "Payment Mode" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_stock_picking +msgid "Picking List" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "Contratación" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: account_payment_purchase +#: help:purchase.order,supplier_partner_bank_id:0 +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the" +" supplier invoice." +msgstr "" + +#. module: account_payment_purchase +#: field:purchase.order,supplier_partner_bank_id:0 +msgid "Supplier Bank Account" +msgstr "" diff --git a/account_payment_purchase/i18n/fi.po b/account_payment_purchase/i18n/fi.po new file mode 100644 index 000000000..37b89e03d --- /dev/null +++ b/account_payment_purchase/i18n/fi.po @@ -0,0 +1,51 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: bank-payment (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-03-03 11:43+0000\n" +"PO-Revision-Date: 2016-04-06 00:16+0000\n" +"Last-Translator: <>\n" +"Language-Team: Finnish (http://www.transifex.com/oca/OCA-bank-payment-8-0/language/fi/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: fi\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: account_payment_purchase +#: field:purchase.order,payment_mode_id:0 +msgid "Payment Mode" +msgstr "Maksutapa" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_stock_picking +msgid "Picking List" +msgstr "Keräilylista" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "Ostotilaus" + +#. module: account_payment_purchase +#: help:purchase.order,supplier_partner_bank_id:0 +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the" +" supplier invoice." +msgstr "" + +#. module: account_payment_purchase +#: field:purchase.order,supplier_partner_bank_id:0 +msgid "Supplier Bank Account" +msgstr "" diff --git a/account_payment_purchase/i18n/fr_FR.po b/account_payment_purchase/i18n/fr_FR.po new file mode 100644 index 000000000..ac6fd345f --- /dev/null +++ b/account_payment_purchase/i18n/fr_FR.po @@ -0,0 +1,51 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: bank-payment (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-21 01:10+0000\n" +"PO-Revision-Date: 2016-04-06 00:16+0000\n" +"Last-Translator: <>\n" +"Language-Team: French (France) (http://www.transifex.com/oca/OCA-bank-payment-8-0/language/fr_FR/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: fr_FR\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: account_payment_purchase +#: field:purchase.order,payment_mode_id:0 +msgid "Payment Mode" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_stock_picking +msgid "Picking List" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "Bon de commande" + +#. module: account_payment_purchase +#: help:purchase.order,supplier_partner_bank_id:0 +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the" +" supplier invoice." +msgstr "" + +#. module: account_payment_purchase +#: field:purchase.order,supplier_partner_bank_id:0 +msgid "Supplier Bank Account" +msgstr "" diff --git a/account_payment_purchase/i18n/hr.po b/account_payment_purchase/i18n/hr.po new file mode 100644 index 000000000..30635dfed --- /dev/null +++ b/account_payment_purchase/i18n/hr.po @@ -0,0 +1,51 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: bank-payment (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-09-21 10:50+0000\n" +"PO-Revision-Date: 2016-04-06 00:16+0000\n" +"Last-Translator: <>\n" +"Language-Team: Croatian (http://www.transifex.com/oca/OCA-bank-payment-8-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_purchase +#: field:purchase.order,payment_mode_id:0 +msgid "Payment Mode" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_stock_picking +msgid "Picking List" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "Nabava" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: account_payment_purchase +#: help:purchase.order,supplier_partner_bank_id:0 +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the" +" supplier invoice." +msgstr "" + +#. module: account_payment_purchase +#: field:purchase.order,supplier_partner_bank_id:0 +msgid "Supplier Bank Account" +msgstr "" diff --git a/account_payment_purchase/i18n/it.po b/account_payment_purchase/i18n/it.po new file mode 100644 index 000000000..bdb4f7703 --- /dev/null +++ b/account_payment_purchase/i18n/it.po @@ -0,0 +1,51 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: bank-payment (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-09-21 10:50+0000\n" +"PO-Revision-Date: 2016-04-06 00:16+0000\n" +"Last-Translator: <>\n" +"Language-Team: Italian (http://www.transifex.com/oca/OCA-bank-payment-8-0/language/it/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: it\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: account_payment_purchase +#: field:purchase.order,payment_mode_id:0 +msgid "Payment Mode" +msgstr "Modo di pagamento" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_stock_picking +msgid "Picking List" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "Approvvigionamento" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: account_payment_purchase +#: help:purchase.order,supplier_partner_bank_id:0 +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the" +" supplier invoice." +msgstr "" + +#. module: account_payment_purchase +#: field:purchase.order,supplier_partner_bank_id:0 +msgid "Supplier Bank Account" +msgstr "" diff --git a/account_payment_purchase/i18n/pt_PT.po b/account_payment_purchase/i18n/pt_PT.po new file mode 100644 index 000000000..dbfa579db --- /dev/null +++ b/account_payment_purchase/i18n/pt_PT.po @@ -0,0 +1,51 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: bank-payment (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-31 01:24+0000\n" +"PO-Revision-Date: 2016-04-06 00:16+0000\n" +"Last-Translator: <>\n" +"Language-Team: Portuguese (Portugal) (http://www.transifex.com/oca/OCA-bank-payment-8-0/language/pt_PT/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: pt_PT\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: account_payment_purchase +#: field:purchase.order,payment_mode_id:0 +msgid "Payment Mode" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_stock_picking +msgid "Picking List" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "Aquisições" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: account_payment_purchase +#: help:purchase.order,supplier_partner_bank_id:0 +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the" +" supplier invoice." +msgstr "" + +#. module: account_payment_purchase +#: field:purchase.order,supplier_partner_bank_id:0 +msgid "Supplier Bank Account" +msgstr "" diff --git a/account_payment_purchase/i18n/tr.po b/account_payment_purchase/i18n/tr.po new file mode 100644 index 000000000..a8c9bdabb --- /dev/null +++ b/account_payment_purchase/i18n/tr.po @@ -0,0 +1,51 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: bank-payment (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-31 01:24+0000\n" +"PO-Revision-Date: 2016-04-06 00:16+0000\n" +"Last-Translator: <>\n" +"Language-Team: Turkish (http://www.transifex.com/oca/OCA-bank-payment-8-0/language/tr/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: tr\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: account_payment_purchase +#: field:purchase.order,payment_mode_id:0 +msgid "Payment Mode" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_stock_picking +msgid "Picking List" +msgstr "Toplama Listesi" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: account_payment_purchase +#: help:purchase.order,supplier_partner_bank_id:0 +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the" +" supplier invoice." +msgstr "" + +#. module: account_payment_purchase +#: field:purchase.order,supplier_partner_bank_id:0 +msgid "Supplier Bank Account" +msgstr "" diff --git a/account_payment_purchase/i18n/tr_TR.po b/account_payment_purchase/i18n/tr_TR.po new file mode 100644 index 000000000..59d1d68ed --- /dev/null +++ b/account_payment_purchase/i18n/tr_TR.po @@ -0,0 +1,51 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: bank-payment (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-31 01:24+0000\n" +"PO-Revision-Date: 2016-04-06 00:16+0000\n" +"Last-Translator: <>\n" +"Language-Team: Turkish (Turkey) (http://www.transifex.com/oca/OCA-bank-payment-8-0/language/tr_TR/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: tr_TR\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: account_payment_purchase +#: field:purchase.order,payment_mode_id:0 +msgid "Payment Mode" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_stock_picking +msgid "Picking List" +msgstr "Seçim listesi" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "Satın alma" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: account_payment_purchase +#: help:purchase.order,supplier_partner_bank_id:0 +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the" +" supplier invoice." +msgstr "" + +#. module: account_payment_purchase +#: field:purchase.order,supplier_partner_bank_id:0 +msgid "Supplier Bank Account" +msgstr "" From 7a20c6a8d955ee6a92374dffee85c2a43c337e25 Mon Sep 17 00:00:00 2001 From: cubells Date: Mon, 10 Apr 2017 18:35:20 +0200 Subject: [PATCH 28/35] account_payment_purchase module --- account_payment_purchase/README.rst | 89 +++++++++++ account_payment_purchase/__init__.py | 5 + account_payment_purchase/__openerp__.py | 25 +++ account_payment_purchase/i18n/de.po | 51 ++++++ account_payment_purchase/i18n/es.po | 64 ++++++++ account_payment_purchase/i18n/fr.po | 51 ++++++ account_payment_purchase/i18n/it.po | 6 +- account_payment_purchase/i18n/nl.po | 49 ++++++ account_payment_purchase/i18n/pt_BR.po | 52 ++++++ account_payment_purchase/i18n/sl.po | 52 ++++++ account_payment_purchase/i18n/zh_CN.po | 51 ++++++ account_payment_purchase/models/__init__.py | 7 + .../models/account_invoice.py | 32 ++++ .../models/procurement_order.py | 21 ++- .../models/purchase_order.py | 40 +++++ .../static/description/icon.png | Bin 0 -> 9455 bytes account_payment_purchase/tests/__init__.py | 5 + .../tests/test_account_payment_purchase.py | 148 ++++++++++++++++++ .../views/purchase_order_view.xml | 21 +++ 19 files changed, 754 insertions(+), 15 deletions(-) create mode 100644 account_payment_purchase/README.rst create mode 100644 account_payment_purchase/__init__.py create mode 100644 account_payment_purchase/__openerp__.py create mode 100644 account_payment_purchase/i18n/de.po create mode 100644 account_payment_purchase/i18n/es.po create mode 100644 account_payment_purchase/i18n/fr.po create mode 100644 account_payment_purchase/i18n/nl.po create mode 100644 account_payment_purchase/i18n/pt_BR.po create mode 100644 account_payment_purchase/i18n/sl.po create mode 100644 account_payment_purchase/i18n/zh_CN.po create mode 100644 account_payment_purchase/models/__init__.py create mode 100644 account_payment_purchase/models/account_invoice.py create mode 100644 account_payment_purchase/models/purchase_order.py create mode 100644 account_payment_purchase/static/description/icon.png create mode 100644 account_payment_purchase/tests/__init__.py create mode 100644 account_payment_purchase/tests/test_account_payment_purchase.py create mode 100644 account_payment_purchase/views/purchase_order_view.xml diff --git a/account_payment_purchase/README.rst b/account_payment_purchase/README.rst new file mode 100644 index 000000000..b5f403209 --- /dev/null +++ b/account_payment_purchase/README.rst @@ -0,0 +1,89 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +======================== +Account Payment Purchase +======================== + +This module adds 2 fields on purchase orders: *Bank Account* and *Payment +Mode*. These fields are copied from partner to purchase order and then from +purchase order to supplier invoice. + +This module is similar to the *purchase_payment* module; the main difference +is that it doesn't depend on the *account_payment_extension* module (it's not +the only module to conflict with *account_payment_extension*; all the SEPA +modules in the banking addons conflict with *account_payment_extension*). + +Installation +============ + +This module depends on : +- purchase +- account_payment_partner + +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 purchase order, then on +related invoice. +This default value could be change in a draft purchase or 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. + + +This module doesn't add any feature, but it is used by several other modules. + +.. 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. + +Credits +======= + +Contributors +------------ + +* Pedro M. Baeza +* Alexis de Lattre +* Alexandre Fayolle +* Danimar Ribeiro +* Raphaël Valyi +* Vicent Cubells + +Maintainer +---------- + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +This module is maintained by the OCA. + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +To contribute to this module, please visit https://odoo-community.org. diff --git a/account_payment_purchase/__init__.py b/account_payment_purchase/__init__.py new file mode 100644 index 000000000..59f15b0fb --- /dev/null +++ b/account_payment_purchase/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# Copyright 2016 Akretion (). +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from . import models diff --git a/account_payment_purchase/__openerp__.py b/account_payment_purchase/__openerp__.py new file mode 100644 index 000000000..089a02898 --- /dev/null +++ b/account_payment_purchase/__openerp__.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +# Copyright 2016 Akretion (). +# Copyright 2017 Tecnativa - Vicent Cubells +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +{ + 'name': 'Account Payment Purchase', + 'version': '9.0.1.0.0', + 'category': 'Banking addons', + 'license': 'AGPL-3', + 'summary': "Adds Bank Account and Payment Mode on Purchase Orders", + 'author': "Akretion, " + "Tecnativa, " + "Odoo Community Association (OCA)", + 'website': 'http://www.akretion.com', + 'depends': [ + 'purchase', + 'account_payment_partner' + ], + 'data': [ + 'views/purchase_order_view.xml', + ], + 'installable': True, + 'auto_install': True, +} diff --git a/account_payment_purchase/i18n/de.po b/account_payment_purchase/i18n/de.po new file mode 100644 index 000000000..8a82c851b --- /dev/null +++ b/account_payment_purchase/i18n/de.po @@ -0,0 +1,51 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: bank-payment (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-10 17:00+0000\n" +"PO-Revision-Date: 2016-04-06 00:16+0000\n" +"Last-Translator: <>\n" +"Language-Team: German (http://www.transifex.com/oca/OCA-bank-payment-8-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_purchase +#: field:purchase.order,payment_mode_id:0 +msgid "Payment Mode" +msgstr "Zahlweise" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_stock_picking +msgid "Picking List" +msgstr "Pickliste" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "Beschaffung" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "Bestellauftrag" + +#. module: account_payment_purchase +#: help:purchase.order,supplier_partner_bank_id:0 +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the" +" supplier invoice." +msgstr "" + +#. module: account_payment_purchase +#: field:purchase.order,supplier_partner_bank_id:0 +msgid "Supplier Bank Account" +msgstr "" diff --git a/account_payment_purchase/i18n/es.po b/account_payment_purchase/i18n/es.po new file mode 100644 index 000000000..4c48a59ed --- /dev/null +++ b/account_payment_purchase/i18n/es.po @@ -0,0 +1,64 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: bank-payment (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-11-20 00:07+0000\n" +"PO-Revision-Date: 2016-10-14 01:51+0000\n" +"Last-Translator: OCA Transbot \n" +"Language-Team: Spanish (http://www.transifex.com/oca/OCA-bank-payment-8-0/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_purchase +#: field:purchase.order,payment_mode_id:0 +msgid "Payment Mode" +msgstr "Modo de pago" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_stock_picking +msgid "Picking List" +msgstr "Albarán" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "Abastecimiento" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "Pedido de compra" + +#. module: account_payment_purchase +#: help:purchase.order,supplier_partner_bank_id:0 +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the" +" supplier invoice." +msgstr "Seleccione la cuenta bancaria de su proveedor a la que la compañía debe enviar el pago. Este campo se copia del proveedor si está rellenado, y se trasladará a la factura de proveedor." + +#. module: account_payment_purchase +#: field:purchase.order,supplier_partner_bank_id:0 +msgid "Supplier Bank Account" +msgstr "Cuenta bancaria del proveedor" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:22 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "El pedido de compra tiene diferente modo de pago." + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:29 +#, python-format +msgid "Selected purchase order have different supplier bank." +msgstr "El pedido de compra tiene diferente banco de proveedor." + diff --git a/account_payment_purchase/i18n/fr.po b/account_payment_purchase/i18n/fr.po new file mode 100644 index 000000000..6a3d075ac --- /dev/null +++ b/account_payment_purchase/i18n/fr.po @@ -0,0 +1,51 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: bank-payment (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-10 17:00+0000\n" +"PO-Revision-Date: 2016-12-23 11:34+0000\n" +"Last-Translator: OCA Transbot \n" +"Language-Team: French (http://www.transifex.com/oca/OCA-bank-payment-8-0/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_purchase +#: field:purchase.order,payment_mode_id:0 +msgid "Payment Mode" +msgstr "Mode de paiement" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_stock_picking +msgid "Picking List" +msgstr "Bon de livraison" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "Procurement" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "Bon de commande" + +#. module: account_payment_purchase +#: help:purchase.order,supplier_partner_bank_id:0 +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the" +" supplier invoice." +msgstr "Selectionnez le compte bancaire du fournisseur sur lequel votre société devra effectuer le règlement. Ce champ est copié depuis le partenaire et sera recopié sur la facture fournisseur." + +#. module: account_payment_purchase +#: field:purchase.order,supplier_partner_bank_id:0 +msgid "Supplier Bank Account" +msgstr "Compte bancaire du fournisseur" diff --git a/account_payment_purchase/i18n/it.po b/account_payment_purchase/i18n/it.po index bdb4f7703..850d2a07f 100644 --- a/account_payment_purchase/i18n/it.po +++ b/account_payment_purchase/i18n/it.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: bank-payment (8.0)\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-09-21 10:50+0000\n" +"POT-Creation-Date: 2016-11-20 00:07+0000\n" "PO-Revision-Date: 2016-04-06 00:16+0000\n" "Last-Translator: <>\n" "Language-Team: Italian (http://www.transifex.com/oca/OCA-bank-payment-8-0/language/it/)\n" @@ -25,7 +25,7 @@ msgstr "Modo di pagamento" #. module: account_payment_purchase #: model:ir.model,name:account_payment_purchase.model_stock_picking msgid "Picking List" -msgstr "" +msgstr "Lista Picking" #. module: account_payment_purchase #: model:ir.model,name:account_payment_purchase.model_procurement_order @@ -35,7 +35,7 @@ msgstr "Approvvigionamento" #. module: account_payment_purchase #: model:ir.model,name:account_payment_purchase.model_purchase_order msgid "Purchase Order" -msgstr "" +msgstr "Ordine Acquisto" #. module: account_payment_purchase #: help:purchase.order,supplier_partner_bank_id:0 diff --git a/account_payment_purchase/i18n/nl.po b/account_payment_purchase/i18n/nl.po new file mode 100644 index 000000000..07115b8af --- /dev/null +++ b/account_payment_purchase/i18n/nl.po @@ -0,0 +1,49 @@ +# 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:23+0000\n" +"PO-Revision-Date: 2014-06-26 14:15+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_purchase +#: field:purchase.order,payment_mode_id:0 +msgid "Payment Mode" +msgstr "Betaalwijze" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_stock_picking +msgid "Picking List" +msgstr "Verzamellijst" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "Inkooporder" + +#. module: account_payment_purchase +#: help:purchase.order,supplier_partner_bank_id:0 +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." +msgstr "" +"Selecteer de bankrekening van de leverancier waarop uw bedrijf de betaling " +"moet sturen. Dit veld wordt gekopieerd van de leverancier en wordt " +"gekopieerd naar de inkoopfactuur." + +#. module: account_payment_purchase +#: field:purchase.order,supplier_partner_bank_id:0 +msgid "Supplier Bank Account" +msgstr "Bankrekening leverancier" diff --git a/account_payment_purchase/i18n/pt_BR.po b/account_payment_purchase/i18n/pt_BR.po new file mode 100644 index 000000000..1241e9a20 --- /dev/null +++ b/account_payment_purchase/i18n/pt_BR.po @@ -0,0 +1,52 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +# danimaribeiro , 2016 +msgid "" +msgstr "" +"Project-Id-Version: bank-payment (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-04-08 00:46+0000\n" +"PO-Revision-Date: 2016-04-06 01:03+0000\n" +"Last-Translator: danimaribeiro \n" +"Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/OCA-bank-payment-8-0/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_purchase +#: field:purchase.order,payment_mode_id:0 +msgid "Payment Mode" +msgstr "Modo de Pagamento" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_stock_picking +msgid "Picking List" +msgstr "Lista de Separação" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "Aquisição" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "Pedido de Compra" + +#. module: account_payment_purchase +#: help:purchase.order,supplier_partner_bank_id:0 +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the" +" supplier invoice." +msgstr "Selecione a conta bancária do seu fornecedor para a qual sua empresa deve mandar o pagamento. Este campo é copiado do parceiro e será copiado para a fatura do fornecedor." + +#. module: account_payment_purchase +#: field:purchase.order,supplier_partner_bank_id:0 +msgid "Supplier Bank Account" +msgstr "Conta Bancária do Fornecedor" diff --git a/account_payment_purchase/i18n/sl.po b/account_payment_purchase/i18n/sl.po new file mode 100644 index 000000000..f3b0b47dd --- /dev/null +++ b/account_payment_purchase/i18n/sl.po @@ -0,0 +1,52 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +# Matjaž Mozetič , 2016 +msgid "" +msgstr "" +"Project-Id-Version: bank-payment (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-04-08 00:46+0000\n" +"PO-Revision-Date: 2016-04-08 05:50+0000\n" +"Last-Translator: Matjaž Mozetič \n" +"Language-Team: Slovenian (http://www.transifex.com/oca/OCA-bank-payment-8-0/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" + +#. module: account_payment_purchase +#: field:purchase.order,payment_mode_id:0 +msgid "Payment Mode" +msgstr "Metoda plačila" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_stock_picking +msgid "Picking List" +msgstr "Zbirni seznam" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "Oskrba" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "Nabavni nalog" + +#. module: account_payment_purchase +#: help:purchase.order,supplier_partner_bank_id:0 +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the" +" supplier invoice." +msgstr "Izberite bančni račun dobavitelja, na katerega bo vaša družba izvedla nakazilo. To polje se kopira iz partnerja in bo kopirano na prejeti račun." + +#. module: account_payment_purchase +#: field:purchase.order,supplier_partner_bank_id:0 +msgid "Supplier Bank Account" +msgstr "Bančni račun dobavitelja" diff --git a/account_payment_purchase/i18n/zh_CN.po b/account_payment_purchase/i18n/zh_CN.po new file mode 100644 index 000000000..ed9bafe26 --- /dev/null +++ b/account_payment_purchase/i18n/zh_CN.po @@ -0,0 +1,51 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: bank-payment (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-10 17:00+0000\n" +"PO-Revision-Date: 2016-04-06 00:16+0000\n" +"Last-Translator: <>\n" +"Language-Team: Chinese (China) (http://www.transifex.com/oca/OCA-bank-payment-8-0/language/zh_CN/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: zh_CN\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: account_payment_purchase +#: field:purchase.order,payment_mode_id:0 +msgid "Payment Mode" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_stock_picking +msgid "Picking List" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "补货" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: account_payment_purchase +#: help:purchase.order,supplier_partner_bank_id:0 +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the" +" supplier invoice." +msgstr "" + +#. module: account_payment_purchase +#: field:purchase.order,supplier_partner_bank_id:0 +msgid "Supplier Bank Account" +msgstr "" diff --git a/account_payment_purchase/models/__init__.py b/account_payment_purchase/models/__init__.py new file mode 100644 index 000000000..29a6c4cc8 --- /dev/null +++ b/account_payment_purchase/models/__init__.py @@ -0,0 +1,7 @@ +# -*- coding: utf-8 -*- +# Copyright 2016 Akretion (). +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from . import procurement_order +from . import purchase_order +from . import account_invoice diff --git a/account_payment_purchase/models/account_invoice.py b/account_payment_purchase/models/account_invoice.py new file mode 100644 index 000000000..36b70aacb --- /dev/null +++ b/account_payment_purchase/models/account_invoice.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +# Copyright 2016 Akretion (). +# Copyright 2017 Tecnativa - Vicent Cubells. +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from openerp import _, api, models + + +class AccountInvoice(models.Model): + _inherit = "account.invoice" + + @api.onchange('purchase_id') + def purchase_order_change(self): + new_mode = self.purchase_id.payment_mode_id.id or False + new_bank = self.purchase_id.supplier_partner_bank_id.id or False + res = super(AccountInvoice, self).purchase_order_change() + if self.payment_mode_id and self.payment_mode_id.id != new_mode: + res['warning'] = { + 'title': _('Warning'), + 'message': _('Selected purchase order have different ' + 'payment mode.'), + } + return res + if self.partner_bank_id and self.partner_bank_id.id != new_bank: + res['warning'] = { + 'title': _('Warning'), + 'message': _('Selected purchase order have different ' + 'supplier bank.'), + } + return res + self.payment_mode_id = new_mode + self.partner_bank_id = new_bank diff --git a/account_payment_purchase/models/procurement_order.py b/account_payment_purchase/models/procurement_order.py index 2e685323e..e8fd073cf 100644 --- a/account_payment_purchase/models/procurement_order.py +++ b/account_payment_purchase/models/procurement_order.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# (c) 2015 Serv. Tecnol. Avanzados - Pedro M. Baeza +# Copyright 2015 Tecnativa - Pedro M. Baeza # License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html from openerp import api, models @@ -8,17 +8,14 @@ from openerp import api, models class ProcurementOrder(models.Model): _inherit = "procurement.order" - @api.model - def create_procurement_purchase_order(self, procurement, po_vals, - line_vals): + @api.multi + def _prepare_purchase_order(self, partner): """Propagate payment mode on MTO/drop shipping.""" - if po_vals.get('partner_id'): - partner = self.env['res.partner'].browse(po_vals['partner_id']) - po_vals['payment_mode_id'] = partner.with_context( - force_company=procurement.company_id.id).\ - supplier_payment_mode.id - po_vals['supplier_partner_bank_id'] = ( + values = super(ProcurementOrder, self)._prepare_purchase_order(partner) + if partner: + values['payment_mode_id'] = partner.with_context( + force_company=self.company_id.id).supplier_payment_mode_id.id + values['supplier_partner_bank_id'] = ( self.env['purchase.order']._get_default_supplier_partner_bank( partner)) - return super(ProcurementOrder, self).create_procurement_purchase_order( - procurement, po_vals, line_vals) + return values diff --git a/account_payment_purchase/models/purchase_order.py b/account_payment_purchase/models/purchase_order.py new file mode 100644 index 000000000..5cc4c8cb3 --- /dev/null +++ b/account_payment_purchase/models/purchase_order.py @@ -0,0 +1,40 @@ +# -*- coding: utf-8 -*- +# Copyright 2016 Akretion (). +# Copyright 2017 Tecnativa - Vicent Cubells. +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from openerp import api, fields, models + + +class PurchaseOrder(models.Model): + _inherit = "purchase.order" + + supplier_partner_bank_id = fields.Many2one( + comodel_name='res.partner.bank', + string='Supplier Bank Account', + domain="[('partner_id', '=', partner_id)]", + help="Select the bank account of your supplier on which your company " + "should send the payment. This field is copied from the partner " + "and will be copied to the supplier invoice.", + ) + payment_mode_id = fields.Many2one( + comodel_name='account.payment.mode', + string='Payment Mode', + domain="[('payment_type', '=', 'outbound')]", + ) + + @api.model + def _get_default_supplier_partner_bank(self, partner): + """This function is designed to be inherited""" + return partner.bank_ids and partner.bank_ids[0].id or False + + @api.onchange('partner_id') + def onchange_partner_id(self): + super(PurchaseOrder, self).onchange_partner_id() + if self.partner_id: + self.supplier_partner_bank_id = \ + self._get_default_supplier_partner_bank(self.partner_id) + self.payment_mode_id = self.partner_id.supplier_payment_mode_id + else: + self.supplier_partner_bank_id = False + self.payment_mode_id = False diff --git a/account_payment_purchase/static/description/icon.png b/account_payment_purchase/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<+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 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 Xviia!U7SGha1wx#SCgwmn*{w2TRX*I literal 0 HcmV?d00001 diff --git a/account_payment_purchase/tests/__init__.py b/account_payment_purchase/tests/__init__.py new file mode 100644 index 000000000..5af37be3f --- /dev/null +++ b/account_payment_purchase/tests/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# Copyright 2013-2015 Tecnativa - Pedro M. Baeza +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html + +from . import test_account_payment_purchase diff --git a/account_payment_purchase/tests/test_account_payment_purchase.py b/account_payment_purchase/tests/test_account_payment_purchase.py new file mode 100644 index 000000000..2235f3a68 --- /dev/null +++ b/account_payment_purchase/tests/test_account_payment_purchase.py @@ -0,0 +1,148 @@ +# -*- coding: utf-8 -*- +# Copyright 2013-2015 Tecnativa - Pedro M. Baeza +# Copyright 2017 Tecnativa - Vicent Cubells +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html + +from openerp import fields +from openerp.tests import common + + +class TestAccountPaymentPurchase(common.SavepointCase): + @classmethod + def setUpClass(cls): + super(TestAccountPaymentPurchase, cls).setUpClass() + cls.bank = cls.env['res.partner.bank'].create( + {'bank_name': 'Test bank', + 'acc_number': '1234567890'}) + cls.bank2 = cls.env['res.partner.bank'].create( + {'bank_name': 'Test bank #2', + 'acc_number': '0123456789'}) + cls.journal = cls.env['account.journal'].create( + {'name': 'Test journal', + 'code': 'TEST', + 'type': 'general'}) + cls.payment_mode = cls.env['account.payment.mode'].create( + {'name': 'Test payment mode', + 'fixed_journal_id': cls.journal.id, + 'bank_account_link': 'variable', + 'payment_method_id': cls.env.ref( + 'account.account_payment_method_manual_in').id}) + cls.partner = cls.env['res.partner'].create( + {'name': 'Test partner', + 'supplier_payment_mode_id': cls.payment_mode.id}) + cls.uom_id = cls.env.ref('product.product_uom_unit').id + cls.mto_product = cls.env['product.product'].create( + {'name': 'Test buy product', + 'type': 'product', + 'uom_id': cls.uom_id, + 'uom_po_id': cls.uom_id, + 'seller_ids': [(0, 0, {'name': cls.partner.id})]}) + cls.purchase = cls.env['purchase.order'].create( + {'partner_id': cls.partner.id, + 'payment_mode_id': cls.payment_mode.id, + 'order_line': [(0, 0, {'name': 'Test line', + 'product_qty': 1.0, + 'product_id': cls.mto_product.id, + 'product_uom': cls.uom_id, + 'date_planned': fields.Date.today(), + 'price_unit': 1.0})]}) + + def test_onchange_partner_id_purchase_order(self): + self.purchase.onchange_partner_id() + self.assertEqual(self.purchase.payment_mode_id, self.payment_mode) + + def test_purchase_order_invoicing(self): + self.purchase.button_confirm() + picking = self.purchase.picking_ids[0] + picking.force_assign() + picking.pack_operation_product_ids.write({'qty_done': 1.0}) + picking.do_new_transfer() + + invoice = self.env['account.invoice'].create({ + 'partner_id': self.partner.id, + 'purchase_id': self.purchase.id, + 'account_id': self.partner.property_account_payable_id.id, + }) + invoice.purchase_order_change() + self.assertEqual( + self.purchase.invoice_ids[0].payment_mode_id, self.payment_mode) + + def test_picking_from_purchase_order_invoicing(self): + # Test payment mode + stockable_product = self.env['product.product'].create( + {'name': 'Test stockable product', + 'type': 'product'}) + self.purchase.order_line[0].product_id = stockable_product.id + self.purchase.button_confirm() + picking = self.purchase.picking_ids[0] + picking.force_assign() + picking.pack_operation_product_ids.write({'qty_done': 1.0}) + picking.do_new_transfer() + + invoice = self.env['account.invoice'].create({ + 'partner_id': self.partner.id, + 'purchase_id': self.purchase.id, + 'account_id': self.partner.property_account_payable_id.id, + }) + invoice.purchase_order_change() + self.assertEqual(invoice.payment_mode_id, self.payment_mode) + purchase2 = self.purchase.copy() + payment_mode2 = self.payment_mode.copy() + purchase2.payment_mode_id = payment_mode2.id + purchase2.button_confirm() + picking = purchase2.picking_ids[0] + picking.force_assign() + picking.pack_operation_product_ids.write({'qty_done': 1.0}) + picking.do_new_transfer() + invoice.purchase_id = purchase2.id + result = invoice.purchase_order_change() + self.assertEqual(result['warning']['title'], 'Warning') + + def test_picking_from_purchase_order_invoicing_bank(self): + # Test patner_bank + stockable_product = self.env['product.product'].create( + {'name': 'Test stockable product', + 'type': 'product'}) + self.purchase.order_line[0].product_id = stockable_product.id + self.purchase.payment_mode_id = False + self.purchase.supplier_partner_bank_id = self.bank.id + self.purchase.button_confirm() + picking = self.purchase.picking_ids[0] + picking.force_assign() + picking.pack_operation_product_ids.write({'qty_done': 1.0}) + picking.do_new_transfer() + + invoice = self.env['account.invoice'].create({ + 'partner_id': self.partner.id, + 'purchase_id': self.purchase.id, + 'account_id': self.partner.property_account_payable_id.id, + }) + invoice.purchase_order_change() + self.assertEqual(invoice.partner_bank_id, self.bank) + purchase2 = self.purchase.copy() + purchase2.supplier_partner_bank_id = self.bank2.id + purchase2.button_confirm() + picking = purchase2.picking_ids[0] + picking.force_assign() + picking.pack_operation_product_ids.write({'qty_done': 1.0}) + picking.do_new_transfer() + invoice.purchase_id = purchase2.id + result = invoice.purchase_order_change() + self.assertEqual(result['warning']['title'], 'Warning') + + def test_procurement_buy_payment_mode(self): + route = self.env.ref('purchase.route_warehouse0_buy') + rule = self.env['procurement.rule'].search( + [('route_id', '=', route.id)], limit=1) + procurement_order = self.env['procurement.order'].create({ + 'product_id': self.mto_product.id, + 'rule_id': rule.id, + 'location_id': self.env['stock.location'].search([], limit=1).id, + 'warehouse_id': self.env['stock.warehouse'].search([], limit=1).id, + 'product_qty': 1, + 'product_uom': self.mto_product.uom_id.id, + 'name': 'Procurement order test', + }) + procurement_order.run() + self.assertEqual( + procurement_order.purchase_id.payment_mode_id, self.payment_mode) diff --git a/account_payment_purchase/views/purchase_order_view.xml b/account_payment_purchase/views/purchase_order_view.xml new file mode 100644 index 000000000..8f8713acc --- /dev/null +++ b/account_payment_purchase/views/purchase_order_view.xml @@ -0,0 +1,21 @@ + + + + + + account_payment_purchase.purchase_order.form + purchase.order + + + + + + + + + + From fe2fec7cee4f7b88d050464106d68eaa2173f772 Mon Sep 17 00:00:00 2001 From: OCA Transbot Date: Sat, 20 May 2017 02:17:27 +0200 Subject: [PATCH 29/35] OCA Transbot updated translations from Transifex --- .../i18n/account_payment_purchase.pot | 64 ++++++++++++++++ account_payment_purchase/i18n/ar.po | 72 ++++++++++++++++++ account_payment_purchase/i18n/bg.po | 71 ++++++++++++++++++ account_payment_purchase/i18n/bs.po | 72 ++++++++++++++++++ account_payment_purchase/i18n/ca.po | 72 ++++++++++++++++++ account_payment_purchase/i18n/cs.po | 71 ++++++++++++++++++ account_payment_purchase/i18n/cs_CZ.po | 73 +++++++++++++++++++ account_payment_purchase/i18n/de.po | 60 ++++++++++----- account_payment_purchase/i18n/el_GR.po | 73 +++++++++++++++++++ account_payment_purchase/i18n/en_GB.po | 72 ++++++++++++++++++ account_payment_purchase/i18n/es.po | 59 +++++++++------ account_payment_purchase/i18n/es_CR.po | 72 ++++++++++++++++++ account_payment_purchase/i18n/es_EC.po | 72 ++++++++++++++++++ account_payment_purchase/i18n/es_MX.po | 53 ++++++++++---- account_payment_purchase/i18n/es_PE.po | 72 ++++++++++++++++++ account_payment_purchase/i18n/et.po | 71 ++++++++++++++++++ account_payment_purchase/i18n/eu.po | 71 ++++++++++++++++++ account_payment_purchase/i18n/fi.po | 55 +++++++++----- account_payment_purchase/i18n/fr.po | 60 ++++++++++----- account_payment_purchase/i18n/fr_CA.po | 72 ++++++++++++++++++ account_payment_purchase/i18n/fr_CH.po | 72 ++++++++++++++++++ account_payment_purchase/i18n/fr_FR.po | 42 ++++++++--- account_payment_purchase/i18n/gl.po | 72 ++++++++++++++++++ account_payment_purchase/i18n/hr.po | 57 ++++++++++----- account_payment_purchase/i18n/hr_HR.po | 73 +++++++++++++++++++ account_payment_purchase/i18n/hu.po | 71 ++++++++++++++++++ account_payment_purchase/i18n/id.po | 71 ++++++++++++++++++ account_payment_purchase/i18n/it.po | 54 +++++++++----- account_payment_purchase/i18n/ja.po | 71 ++++++++++++++++++ account_payment_purchase/i18n/lt.po | 72 ++++++++++++++++++ account_payment_purchase/i18n/mk.po | 71 ++++++++++++++++++ account_payment_purchase/i18n/mn.po | 71 ++++++++++++++++++ account_payment_purchase/i18n/nb.po | 72 ++++++++++++++++++ account_payment_purchase/i18n/nb_NO.po | 72 ++++++++++++++++++ account_payment_purchase/i18n/nl.po | 63 +++++++++++----- account_payment_purchase/i18n/nl_BE.po | 72 ++++++++++++++++++ account_payment_purchase/i18n/nl_NL.po | 72 ++++++++++++++++++ account_payment_purchase/i18n/pl.po | 73 +++++++++++++++++++ account_payment_purchase/i18n/pt.po | 72 ++++++++++++++++++ account_payment_purchase/i18n/pt_BR.po | 66 +++++++++++------ account_payment_purchase/i18n/pt_PT.po | 54 ++++++++++---- account_payment_purchase/i18n/ro.po | 73 +++++++++++++++++++ account_payment_purchase/i18n/ru.po | 73 +++++++++++++++++++ account_payment_purchase/i18n/sk.po | 71 ++++++++++++++++++ account_payment_purchase/i18n/sk_SK.po | 72 ++++++++++++++++++ account_payment_purchase/i18n/sl.po | 65 +++++++++++------ account_payment_purchase/i18n/sv.po | 71 ++++++++++++++++++ account_payment_purchase/i18n/th.po | 71 ++++++++++++++++++ account_payment_purchase/i18n/tr.po | 55 +++++++++----- account_payment_purchase/i18n/tr_TR.po | 55 +++++++++----- account_payment_purchase/i18n/vi_VN.po | 72 ++++++++++++++++++ account_payment_purchase/i18n/zh_CN.po | 56 +++++++++----- account_payment_purchase/i18n/zh_TW.po | 72 ++++++++++++++++++ 53 files changed, 3309 insertions(+), 267 deletions(-) create mode 100644 account_payment_purchase/i18n/account_payment_purchase.pot create mode 100644 account_payment_purchase/i18n/ar.po create mode 100644 account_payment_purchase/i18n/bg.po create mode 100644 account_payment_purchase/i18n/bs.po create mode 100644 account_payment_purchase/i18n/ca.po create mode 100644 account_payment_purchase/i18n/cs.po create mode 100644 account_payment_purchase/i18n/cs_CZ.po create mode 100644 account_payment_purchase/i18n/el_GR.po create mode 100644 account_payment_purchase/i18n/en_GB.po create mode 100644 account_payment_purchase/i18n/es_CR.po create mode 100644 account_payment_purchase/i18n/es_EC.po create mode 100644 account_payment_purchase/i18n/es_PE.po create mode 100644 account_payment_purchase/i18n/et.po create mode 100644 account_payment_purchase/i18n/eu.po create mode 100644 account_payment_purchase/i18n/fr_CA.po create mode 100644 account_payment_purchase/i18n/fr_CH.po create mode 100644 account_payment_purchase/i18n/gl.po create mode 100644 account_payment_purchase/i18n/hr_HR.po create mode 100644 account_payment_purchase/i18n/hu.po create mode 100644 account_payment_purchase/i18n/id.po create mode 100644 account_payment_purchase/i18n/ja.po create mode 100644 account_payment_purchase/i18n/lt.po create mode 100644 account_payment_purchase/i18n/mk.po create mode 100644 account_payment_purchase/i18n/mn.po create mode 100644 account_payment_purchase/i18n/nb.po create mode 100644 account_payment_purchase/i18n/nb_NO.po create mode 100644 account_payment_purchase/i18n/nl_BE.po create mode 100644 account_payment_purchase/i18n/nl_NL.po create mode 100644 account_payment_purchase/i18n/pl.po create mode 100644 account_payment_purchase/i18n/pt.po create mode 100644 account_payment_purchase/i18n/ro.po create mode 100644 account_payment_purchase/i18n/ru.po create mode 100644 account_payment_purchase/i18n/sk.po create mode 100644 account_payment_purchase/i18n/sk_SK.po create mode 100644 account_payment_purchase/i18n/sv.po create mode 100644 account_payment_purchase/i18n/th.po create mode 100644 account_payment_purchase/i18n/vi_VN.po create mode 100644 account_payment_purchase/i18n/zh_TW.po diff --git a/account_payment_purchase/i18n/account_payment_purchase.pot b/account_payment_purchase/i18n/account_payment_purchase.pot new file mode 100644 index 000000000..cd760048d --- /dev/null +++ b/account_payment_purchase/i18n/account_payment_purchase.pot @@ -0,0 +1,64 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\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_purchase +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +msgid "Payment Mode" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "Select the bank account of your supplier on which your company should send the payment. This field is copied from the partner and will be copied to the supplier invoice." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#, python-format +msgid "Selected purchase order have different supplier bank." +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "Supplier Bank Account" +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "" + diff --git a/account_payment_purchase/i18n/ar.po b/account_payment_purchase/i18n/ar.po new file mode 100644 index 000000000..936bbc97b --- /dev/null +++ b/account_payment_purchase/i18n/ar.po @@ -0,0 +1,72 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 02:46+0000\n" +"PO-Revision-Date: 2017-05-17 02:46+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Arabic (https://www.transifex.com/oca/teams/23907/ar/)\n" +"Language: ar\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 " +"&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "فاتورة" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +msgid "Payment Mode" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#, python-format +msgid "Selected purchase order have different supplier bank." +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "Supplier Bank Account" +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "" diff --git a/account_payment_purchase/i18n/bg.po b/account_payment_purchase/i18n/bg.po new file mode 100644 index 000000000..7e23789c2 --- /dev/null +++ b/account_payment_purchase/i18n/bg.po @@ -0,0 +1,71 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 02:46+0000\n" +"PO-Revision-Date: 2017-05-17 02:46+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Bulgarian (https://www.transifex.com/oca/teams/23907/bg/)\n" +"Language: bg\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "Фактура" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +msgid "Payment Mode" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#, python-format +msgid "Selected purchase order have different supplier bank." +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "Supplier Bank Account" +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "" diff --git a/account_payment_purchase/i18n/bs.po b/account_payment_purchase/i18n/bs.po new file mode 100644 index 000000000..a9a2a3688 --- /dev/null +++ b/account_payment_purchase/i18n/bs.po @@ -0,0 +1,72 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 02:46+0000\n" +"PO-Revision-Date: 2017-05-17 02:46+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Bosnian (https://www.transifex.com/oca/teams/23907/bs/)\n" +"Language: bs\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "Faktura" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +msgid "Payment Mode" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#, python-format +msgid "Selected purchase order have different supplier bank." +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "Supplier Bank Account" +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "" diff --git a/account_payment_purchase/i18n/ca.po b/account_payment_purchase/i18n/ca.po new file mode 100644 index 000000000..4fd40a3a7 --- /dev/null +++ b/account_payment_purchase/i18n/ca.po @@ -0,0 +1,72 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +# OCA Transbot , 2017 +# Marc Tormo i Bochaca , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 02:46+0000\n" +"PO-Revision-Date: 2017-05-17 02:46+0000\n" +"Last-Translator: Marc Tormo i Bochaca , 2017\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" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "Factura" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +msgid "Payment Mode" +msgstr "Forma de pagament " + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#, python-format +msgid "Selected purchase order have different supplier bank." +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "Supplier Bank Account" +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "Warning" diff --git a/account_payment_purchase/i18n/cs.po b/account_payment_purchase/i18n/cs.po new file mode 100644 index 000000000..0ab7683b6 --- /dev/null +++ b/account_payment_purchase/i18n/cs.po @@ -0,0 +1,71 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 02:46+0000\n" +"PO-Revision-Date: 2017-05-17 02:46+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Czech (https://www.transifex.com/oca/teams/23907/cs/)\n" +"Language: cs\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "Faktura" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +msgid "Payment Mode" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#, python-format +msgid "Selected purchase order have different supplier bank." +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "Supplier Bank Account" +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "" diff --git a/account_payment_purchase/i18n/cs_CZ.po b/account_payment_purchase/i18n/cs_CZ.po new file mode 100644 index 000000000..a25a3ecce --- /dev/null +++ b/account_payment_purchase/i18n/cs_CZ.po @@ -0,0 +1,73 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +# Lukáš Spurný , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-05-23 08:41+0000\n" +"PO-Revision-Date: 2018-05-23 08:41+0000\n" +"Last-Translator: Lukáš Spurný , 2018\n" +"Language-Team: Czech (Czech Republic) (https://www.transifex.com/oca/" +"teams/23907/cs_CZ/)\n" +"Language: cs_CZ\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n " +"<= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;\n" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +msgid "Payment Mode" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "Nákupní objednávka" + +#. module: account_payment_purchase +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#, python-format +msgid "Selected purchase order have different supplier bank." +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "Supplier Bank Account" +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "" diff --git a/account_payment_purchase/i18n/de.po b/account_payment_purchase/i18n/de.po index 8a82c851b..7a681cfed 100644 --- a/account_payment_purchase/i18n/de.po +++ b/account_payment_purchase/i18n/de.po @@ -1,31 +1,33 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * account_payment_purchase -# +# # Translators: +# OCA Transbot , 2017 +# Rudolf Schnapka , 2017 msgid "" msgstr "" -"Project-Id-Version: bank-payment (8.0)\n" +"Project-Id-Version: Odoo Server 9.0c\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-12-10 17:00+0000\n" -"PO-Revision-Date: 2016-04-06 00:16+0000\n" -"Last-Translator: <>\n" -"Language-Team: German (http://www.transifex.com/oca/OCA-bank-payment-8-0/language/de/)\n" +"POT-Creation-Date: 2017-05-17 02:46+0000\n" +"PO-Revision-Date: 2017-05-17 02:46+0000\n" +"Last-Translator: Rudolf Schnapka , 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_purchase -#: field:purchase.order,payment_mode_id:0 -msgid "Payment Mode" -msgstr "Zahlweise" +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "Rechnung" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_picking -msgid "Picking List" -msgstr "Pickliste" +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +msgid "Payment Mode" +msgstr "Zahlweise" #. module: account_payment_purchase #: model:ir.model,name:account_payment_purchase.model_procurement_order @@ -38,14 +40,36 @@ msgid "Purchase Order" msgstr "Bestellauftrag" #. module: account_payment_purchase -#: help:purchase.order,supplier_partner_bank_id:0 +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id msgid "" "Select the bank account of your supplier on which your company should send " -"the payment. This field is copied from the partner and will be copied to the" -" supplier invoice." +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." +msgstr "" +"Das Bankkonto Ihres Lieferanten auswählen, an welches das Unternehmen " +"Zahlungen überweisen soll. Dieses Feld wird aus dem Partner in die Eingangs-" +"Rechnung übertragen." + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#, python-format +msgid "Selected purchase order have different payment mode." msgstr "" #. module: account_payment_purchase -#: field:purchase.order,supplier_partner_bank_id:0 -msgid "Supplier Bank Account" +#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#, python-format +msgid "Selected purchase order have different supplier bank." msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "Supplier Bank Account" +msgstr "Lieferanten-Bankkonto" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "Hinweis" diff --git a/account_payment_purchase/i18n/el_GR.po b/account_payment_purchase/i18n/el_GR.po new file mode 100644 index 000000000..d7a8b1d9d --- /dev/null +++ b/account_payment_purchase/i18n/el_GR.po @@ -0,0 +1,73 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +# OCA Transbot , 2017 +# Kostas Goutoudis , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 02:46+0000\n" +"PO-Revision-Date: 2017-05-17 02:46+0000\n" +"Last-Translator: Kostas Goutoudis , 2017\n" +"Language-Team: Greek (Greece) (https://www.transifex.com/oca/teams/23907/" +"el_GR/)\n" +"Language: el_GR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "Τιμολόγιο" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +msgid "Payment Mode" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#, python-format +msgid "Selected purchase order have different supplier bank." +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "Supplier Bank Account" +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "Προσοχή" diff --git a/account_payment_purchase/i18n/en_GB.po b/account_payment_purchase/i18n/en_GB.po new file mode 100644 index 000000000..e05692947 --- /dev/null +++ b/account_payment_purchase/i18n/en_GB.po @@ -0,0 +1,72 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 02:46+0000\n" +"PO-Revision-Date: 2017-05-17 02:46+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: English (United Kingdom) (https://www.transifex.com/oca/" +"teams/23907/en_GB/)\n" +"Language: en_GB\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "Invoice" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +msgid "Payment Mode" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#, python-format +msgid "Selected purchase order have different supplier bank." +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "Supplier Bank Account" +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "" diff --git a/account_payment_purchase/i18n/es.po b/account_payment_purchase/i18n/es.po index 4c48a59ed..020da7a1d 100644 --- a/account_payment_purchase/i18n/es.po +++ b/account_payment_purchase/i18n/es.po @@ -1,31 +1,33 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * account_payment_purchase -# +# # Translators: +# OCA Transbot , 2017 +# Pedro M. Baeza , 2017 msgid "" msgstr "" -"Project-Id-Version: bank-payment (8.0)\n" +"Project-Id-Version: Odoo Server 9.0c\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-11-20 00:07+0000\n" -"PO-Revision-Date: 2016-10-14 01:51+0000\n" -"Last-Translator: OCA Transbot \n" -"Language-Team: Spanish (http://www.transifex.com/oca/OCA-bank-payment-8-0/language/es/)\n" +"POT-Creation-Date: 2017-05-17 02:46+0000\n" +"PO-Revision-Date: 2017-05-17 02:46+0000\n" +"Last-Translator: Pedro M. Baeza , 2017\n" +"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n" +"Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: es\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: account_payment_purchase -#: field:purchase.order,payment_mode_id:0 -msgid "Payment Mode" -msgstr "Modo de pago" +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "Factura" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_picking -msgid "Picking List" -msgstr "Albarán" +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +msgid "Payment Mode" +msgstr "Modo de pago" #. module: account_payment_purchase #: model:ir.model,name:account_payment_purchase.model_procurement_order @@ -38,27 +40,36 @@ msgid "Purchase Order" msgstr "Pedido de compra" #. module: account_payment_purchase -#: help:purchase.order,supplier_partner_bank_id:0 +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id msgid "" "Select the bank account of your supplier on which your company should send " -"the payment. This field is copied from the partner and will be copied to the" -" supplier invoice." -msgstr "Seleccione la cuenta bancaria de su proveedor a la que la compañía debe enviar el pago. Este campo se copia del proveedor si está rellenado, y se trasladará a la factura de proveedor." +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." +msgstr "" +"Seleccione la cuenta bancaria de su proveedor a la que la compañía debe " +"enviar el pago. Este campo se copia del proveedor si está rellenado, y se " +"trasladará a la factura de proveedor." #. module: account_payment_purchase -#: field:purchase.order,supplier_partner_bank_id:0 -msgid "Supplier Bank Account" -msgstr "Cuenta bancaria del proveedor" - -#. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:22 +#: code:addons/account_payment_purchase/models/account_invoice.py:20 #, python-format msgid "Selected purchase order have different payment mode." msgstr "El pedido de compra tiene diferente modo de pago." #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:29 +#: code:addons/account_payment_purchase/models/account_invoice.py:27 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "El pedido de compra tiene diferente banco de proveedor." +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "Supplier Bank Account" +msgstr "Cuenta bancaria del proveedor" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "Aviso" diff --git a/account_payment_purchase/i18n/es_CR.po b/account_payment_purchase/i18n/es_CR.po new file mode 100644 index 000000000..918d4c166 --- /dev/null +++ b/account_payment_purchase/i18n/es_CR.po @@ -0,0 +1,72 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 02:46+0000\n" +"PO-Revision-Date: 2017-05-17 02:46+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Spanish (Costa Rica) (https://www.transifex.com/oca/" +"teams/23907/es_CR/)\n" +"Language: es_CR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "Factura" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +msgid "Payment Mode" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#, python-format +msgid "Selected purchase order have different supplier bank." +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "Supplier Bank Account" +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "" diff --git a/account_payment_purchase/i18n/es_EC.po b/account_payment_purchase/i18n/es_EC.po new file mode 100644 index 000000000..387c11004 --- /dev/null +++ b/account_payment_purchase/i18n/es_EC.po @@ -0,0 +1,72 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 02:46+0000\n" +"PO-Revision-Date: 2017-05-17 02:46+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Spanish (Ecuador) (https://www.transifex.com/oca/teams/23907/" +"es_EC/)\n" +"Language: es_EC\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "Factura" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +msgid "Payment Mode" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#, python-format +msgid "Selected purchase order have different supplier bank." +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "Supplier Bank Account" +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "" diff --git a/account_payment_purchase/i18n/es_MX.po b/account_payment_purchase/i18n/es_MX.po index 97e9e2e9d..2d60fec35 100644 --- a/account_payment_purchase/i18n/es_MX.po +++ b/account_payment_purchase/i18n/es_MX.po @@ -1,30 +1,32 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * account_payment_purchase -# +# # Translators: +# OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: bank-payment (8.0)\n" +"Project-Id-Version: Odoo Server 9.0c\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-12-01 18:13+0000\n" -"PO-Revision-Date: 2016-04-06 00:16+0000\n" -"Last-Translator: <>\n" -"Language-Team: Spanish (Mexico) (http://www.transifex.com/oca/OCA-bank-payment-8-0/language/es_MX/)\n" +"POT-Creation-Date: 2017-05-17 02:46+0000\n" +"PO-Revision-Date: 2017-05-17 02:46+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Spanish (Mexico) (https://www.transifex.com/oca/teams/23907/" +"es_MX/)\n" +"Language: es_MX\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: es_MX\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: account_payment_purchase -#: field:purchase.order,payment_mode_id:0 -msgid "Payment Mode" -msgstr "" +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "Factura" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_picking -msgid "Picking List" +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +msgid "Payment Mode" msgstr "" #. module: account_payment_purchase @@ -38,14 +40,33 @@ msgid "Purchase Order" msgstr "" #. module: account_payment_purchase -#: help:purchase.order,supplier_partner_bank_id:0 +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id msgid "" "Select the bank account of your supplier on which your company should send " -"the payment. This field is copied from the partner and will be copied to the" -" supplier invoice." +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." msgstr "" #. module: account_payment_purchase -#: field:purchase.order,supplier_partner_bank_id:0 +#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#, python-format +msgid "Selected purchase order have different supplier bank." +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id msgid "Supplier Bank Account" msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "" diff --git a/account_payment_purchase/i18n/es_PE.po b/account_payment_purchase/i18n/es_PE.po new file mode 100644 index 000000000..614ef398b --- /dev/null +++ b/account_payment_purchase/i18n/es_PE.po @@ -0,0 +1,72 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +# OCA Transbot , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-02-26 13:25+0000\n" +"PO-Revision-Date: 2018-02-26 13:25+0000\n" +"Last-Translator: OCA Transbot , 2018\n" +"Language-Team: Spanish (Peru) (https://www.transifex.com/oca/teams/23907/" +"es_PE/)\n" +"Language: es_PE\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "Factura" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +msgid "Payment Mode" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#, python-format +msgid "Selected purchase order have different supplier bank." +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "Supplier Bank Account" +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "" diff --git a/account_payment_purchase/i18n/et.po b/account_payment_purchase/i18n/et.po new file mode 100644 index 000000000..c9d00e420 --- /dev/null +++ b/account_payment_purchase/i18n/et.po @@ -0,0 +1,71 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 02:46+0000\n" +"PO-Revision-Date: 2017-05-17 02:46+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Estonian (https://www.transifex.com/oca/teams/23907/et/)\n" +"Language: et\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "Arve" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +msgid "Payment Mode" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#, python-format +msgid "Selected purchase order have different supplier bank." +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "Supplier Bank Account" +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "" diff --git a/account_payment_purchase/i18n/eu.po b/account_payment_purchase/i18n/eu.po new file mode 100644 index 000000000..7d801c0d8 --- /dev/null +++ b/account_payment_purchase/i18n/eu.po @@ -0,0 +1,71 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +# Esther Martín Menéndez , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 02:46+0000\n" +"PO-Revision-Date: 2017-05-17 02:46+0000\n" +"Last-Translator: Esther Martín Menéndez , 2017\n" +"Language-Team: Basque (https://www.transifex.com/oca/teams/23907/eu/)\n" +"Language: eu\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +msgid "Payment Mode" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#, python-format +msgid "Selected purchase order have different supplier bank." +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "Supplier Bank Account" +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "Kontuz" diff --git a/account_payment_purchase/i18n/fi.po b/account_payment_purchase/i18n/fi.po index 37b89e03d..542c4bb17 100644 --- a/account_payment_purchase/i18n/fi.po +++ b/account_payment_purchase/i18n/fi.po @@ -1,31 +1,33 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * account_payment_purchase -# +# # Translators: +# OCA Transbot , 2017 +# Jarmo Kortetjärvi , 2017 msgid "" msgstr "" -"Project-Id-Version: bank-payment (8.0)\n" +"Project-Id-Version: Odoo Server 9.0c\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-03-03 11:43+0000\n" -"PO-Revision-Date: 2016-04-06 00:16+0000\n" -"Last-Translator: <>\n" -"Language-Team: Finnish (http://www.transifex.com/oca/OCA-bank-payment-8-0/language/fi/)\n" +"POT-Creation-Date: 2017-05-17 02:46+0000\n" +"PO-Revision-Date: 2017-05-17 02:46+0000\n" +"Last-Translator: Jarmo Kortetjärvi , 2017\n" +"Language-Team: Finnish (https://www.transifex.com/oca/teams/23907/fi/)\n" +"Language: fi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: fi\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: account_payment_purchase -#: field:purchase.order,payment_mode_id:0 -msgid "Payment Mode" -msgstr "Maksutapa" +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "Lasku" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_picking -msgid "Picking List" -msgstr "Keräilylista" +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +msgid "Payment Mode" +msgstr "Maksutapa" #. module: account_payment_purchase #: model:ir.model,name:account_payment_purchase.model_procurement_order @@ -38,14 +40,33 @@ msgid "Purchase Order" msgstr "Ostotilaus" #. module: account_payment_purchase -#: help:purchase.order,supplier_partner_bank_id:0 +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id msgid "" "Select the bank account of your supplier on which your company should send " -"the payment. This field is copied from the partner and will be copied to the" -" supplier invoice." +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." msgstr "" #. module: account_payment_purchase -#: field:purchase.order,supplier_partner_bank_id:0 +#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#, python-format +msgid "Selected purchase order have different supplier bank." +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id msgid "Supplier Bank Account" msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "Varoitus" diff --git a/account_payment_purchase/i18n/fr.po b/account_payment_purchase/i18n/fr.po index 6a3d075ac..0bc0fce18 100644 --- a/account_payment_purchase/i18n/fr.po +++ b/account_payment_purchase/i18n/fr.po @@ -1,31 +1,33 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * account_payment_purchase -# +# # Translators: +# Quentin THEURET , 2018 +# OCA Transbot , 2018 msgid "" msgstr "" -"Project-Id-Version: bank-payment (8.0)\n" +"Project-Id-Version: Odoo Server 9.0c\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-12-10 17:00+0000\n" -"PO-Revision-Date: 2016-12-23 11:34+0000\n" -"Last-Translator: OCA Transbot \n" -"Language-Team: French (http://www.transifex.com/oca/OCA-bank-payment-8-0/language/fr/)\n" +"POT-Creation-Date: 2018-05-23 08:41+0000\n" +"PO-Revision-Date: 2018-05-23 08:41+0000\n" +"Last-Translator: OCA Transbot , 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_purchase -#: field:purchase.order,payment_mode_id:0 -msgid "Payment Mode" -msgstr "Mode de paiement" +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "Facture" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_picking -msgid "Picking List" -msgstr "Bon de livraison" +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +msgid "Payment Mode" +msgstr "Mode de paiement" #. module: account_payment_purchase #: model:ir.model,name:account_payment_purchase.model_procurement_order @@ -38,14 +40,36 @@ msgid "Purchase Order" msgstr "Bon de commande" #. module: account_payment_purchase -#: help:purchase.order,supplier_partner_bank_id:0 +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id msgid "" "Select the bank account of your supplier on which your company should send " -"the payment. This field is copied from the partner and will be copied to the" -" supplier invoice." -msgstr "Selectionnez le compte bancaire du fournisseur sur lequel votre société devra effectuer le règlement. Ce champ est copié depuis le partenaire et sera recopié sur la facture fournisseur." +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." +msgstr "" +"Selectionnez le compte bancaire du fournisseur sur lequel votre société " +"devra effectuer le règlement. Ce champ est copié depuis le partenaire et " +"sera recopié sur la facture fournisseur." #. module: account_payment_purchase -#: field:purchase.order,supplier_partner_bank_id:0 +#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "Le bon de commande sélectionné a un mode de paiement différente." + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#, python-format +msgid "Selected purchase order have different supplier bank." +msgstr "Le bon de commande sélectionné a une banque fournisseur différente." + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id msgid "Supplier Bank Account" msgstr "Compte bancaire du fournisseur" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "Avertissement " diff --git a/account_payment_purchase/i18n/fr_CA.po b/account_payment_purchase/i18n/fr_CA.po new file mode 100644 index 000000000..651b00d72 --- /dev/null +++ b/account_payment_purchase/i18n/fr_CA.po @@ -0,0 +1,72 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 02:46+0000\n" +"PO-Revision-Date: 2017-05-17 02:46+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: French (Canada) (https://www.transifex.com/oca/teams/23907/" +"fr_CA/)\n" +"Language: fr_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" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "Facture" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +msgid "Payment Mode" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#, python-format +msgid "Selected purchase order have different supplier bank." +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "Supplier Bank Account" +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "Avertissement" diff --git a/account_payment_purchase/i18n/fr_CH.po b/account_payment_purchase/i18n/fr_CH.po new file mode 100644 index 000000000..3450a234f --- /dev/null +++ b/account_payment_purchase/i18n/fr_CH.po @@ -0,0 +1,72 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 02:46+0000\n" +"PO-Revision-Date: 2017-05-17 02:46+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: French (Switzerland) (https://www.transifex.com/oca/" +"teams/23907/fr_CH/)\n" +"Language: fr_CH\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "Facture" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +msgid "Payment Mode" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#, python-format +msgid "Selected purchase order have different supplier bank." +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "Supplier Bank Account" +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "" diff --git a/account_payment_purchase/i18n/fr_FR.po b/account_payment_purchase/i18n/fr_FR.po index ac6fd345f..4bd77d067 100644 --- a/account_payment_purchase/i18n/fr_FR.po +++ b/account_payment_purchase/i18n/fr_FR.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * account_payment_purchase -# +# # Translators: msgid "" msgstr "" @@ -10,21 +10,22 @@ msgstr "" "POT-Creation-Date: 2017-01-21 01:10+0000\n" "PO-Revision-Date: 2016-04-06 00:16+0000\n" "Last-Translator: <>\n" -"Language-Team: French (France) (http://www.transifex.com/oca/OCA-bank-payment-8-0/language/fr_FR/)\n" +"Language-Team: French (France) (http://www.transifex.com/oca/OCA-bank-" +"payment-8-0/language/fr_FR/)\n" +"Language: fr_FR\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: fr_FR\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: account_payment_purchase -#: field:purchase.order,payment_mode_id:0 -msgid "Payment Mode" +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" msgstr "" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_picking -msgid "Picking List" +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +msgid "Payment Mode" msgstr "" #. module: account_payment_purchase @@ -38,14 +39,33 @@ msgid "Purchase Order" msgstr "Bon de commande" #. module: account_payment_purchase -#: help:purchase.order,supplier_partner_bank_id:0 +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id msgid "" "Select the bank account of your supplier on which your company should send " -"the payment. This field is copied from the partner and will be copied to the" -" supplier invoice." +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." msgstr "" #. module: account_payment_purchase -#: field:purchase.order,supplier_partner_bank_id:0 +#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#, python-format +msgid "Selected purchase order have different supplier bank." +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id msgid "Supplier Bank Account" msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "" diff --git a/account_payment_purchase/i18n/gl.po b/account_payment_purchase/i18n/gl.po new file mode 100644 index 000000000..297307bc7 --- /dev/null +++ b/account_payment_purchase/i18n/gl.po @@ -0,0 +1,72 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +# OCA Transbot , 2017 +# Alejandro Santana , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 02:46+0000\n" +"PO-Revision-Date: 2017-05-17 02:46+0000\n" +"Last-Translator: Alejandro Santana , 2017\n" +"Language-Team: Galician (https://www.transifex.com/oca/teams/23907/gl/)\n" +"Language: gl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "Factura" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +msgid "Payment Mode" +msgstr "Modo de pagamento" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "Orde de compra" + +#. module: account_payment_purchase +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#, python-format +msgid "Selected purchase order have different supplier bank." +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "Supplier Bank Account" +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "Aviso" diff --git a/account_payment_purchase/i18n/hr.po b/account_payment_purchase/i18n/hr.po index 30635dfed..ed92eab9f 100644 --- a/account_payment_purchase/i18n/hr.po +++ b/account_payment_purchase/i18n/hr.po @@ -1,32 +1,34 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * account_payment_purchase -# +# # Translators: +# OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: bank-payment (8.0)\n" +"Project-Id-Version: Odoo Server 9.0c\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-09-21 10:50+0000\n" -"PO-Revision-Date: 2016-04-06 00:16+0000\n" -"Last-Translator: <>\n" -"Language-Team: Croatian (http://www.transifex.com/oca/OCA-bank-payment-8-0/language/hr/)\n" +"POT-Creation-Date: 2017-05-17 02:46+0000\n" +"PO-Revision-Date: 2017-05-17 02:46+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_purchase -#: field:purchase.order,payment_mode_id:0 +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "Račun" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id msgid "Payment Mode" msgstr "" -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_picking -msgid "Picking List" -msgstr "" - #. module: account_payment_purchase #: model:ir.model,name:account_payment_purchase.model_procurement_order msgid "Procurement" @@ -38,14 +40,33 @@ msgid "Purchase Order" msgstr "" #. module: account_payment_purchase -#: help:purchase.order,supplier_partner_bank_id:0 +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id msgid "" "Select the bank account of your supplier on which your company should send " -"the payment. This field is copied from the partner and will be copied to the" -" supplier invoice." +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." msgstr "" #. module: account_payment_purchase -#: field:purchase.order,supplier_partner_bank_id:0 +#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#, python-format +msgid "Selected purchase order have different supplier bank." +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id msgid "Supplier Bank Account" msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "" diff --git a/account_payment_purchase/i18n/hr_HR.po b/account_payment_purchase/i18n/hr_HR.po new file mode 100644 index 000000000..5f4aea4ed --- /dev/null +++ b/account_payment_purchase/i18n/hr_HR.po @@ -0,0 +1,73 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 02:46+0000\n" +"PO-Revision-Date: 2017-05-17 02:46+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Croatian (Croatia) (https://www.transifex.com/oca/teams/23907/" +"hr_HR/)\n" +"Language: hr_HR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "Račun" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +msgid "Payment Mode" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#, python-format +msgid "Selected purchase order have different supplier bank." +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "Supplier Bank Account" +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "" diff --git a/account_payment_purchase/i18n/hu.po b/account_payment_purchase/i18n/hu.po new file mode 100644 index 000000000..71541d21f --- /dev/null +++ b/account_payment_purchase/i18n/hu.po @@ -0,0 +1,71 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 02:46+0000\n" +"PO-Revision-Date: 2017-05-17 02:46+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Hungarian (https://www.transifex.com/oca/teams/23907/hu/)\n" +"Language: hu\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "Számla" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +msgid "Payment Mode" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#, python-format +msgid "Selected purchase order have different supplier bank." +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "Supplier Bank Account" +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "" diff --git a/account_payment_purchase/i18n/id.po b/account_payment_purchase/i18n/id.po new file mode 100644 index 000000000..4177202c4 --- /dev/null +++ b/account_payment_purchase/i18n/id.po @@ -0,0 +1,71 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 02:46+0000\n" +"PO-Revision-Date: 2017-05-17 02:46+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Indonesian (https://www.transifex.com/oca/teams/23907/id/)\n" +"Language: id\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "Faktur" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +msgid "Payment Mode" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#, python-format +msgid "Selected purchase order have different supplier bank." +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "Supplier Bank Account" +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "" diff --git a/account_payment_purchase/i18n/it.po b/account_payment_purchase/i18n/it.po index 850d2a07f..825190bca 100644 --- a/account_payment_purchase/i18n/it.po +++ b/account_payment_purchase/i18n/it.po @@ -1,31 +1,32 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * account_payment_purchase -# +# # Translators: +# OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: bank-payment (8.0)\n" +"Project-Id-Version: Odoo Server 9.0c\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-11-20 00:07+0000\n" -"PO-Revision-Date: 2016-04-06 00:16+0000\n" -"Last-Translator: <>\n" -"Language-Team: Italian (http://www.transifex.com/oca/OCA-bank-payment-8-0/language/it/)\n" +"POT-Creation-Date: 2017-05-17 02:46+0000\n" +"PO-Revision-Date: 2017-05-17 02:46+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n" +"Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: it\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: account_payment_purchase -#: field:purchase.order,payment_mode_id:0 -msgid "Payment Mode" -msgstr "Modo di pagamento" +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "Fattura" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_picking -msgid "Picking List" -msgstr "Lista Picking" +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +msgid "Payment Mode" +msgstr "Modo di pagamento" #. module: account_payment_purchase #: model:ir.model,name:account_payment_purchase.model_procurement_order @@ -38,14 +39,33 @@ msgid "Purchase Order" msgstr "Ordine Acquisto" #. module: account_payment_purchase -#: help:purchase.order,supplier_partner_bank_id:0 +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id msgid "" "Select the bank account of your supplier on which your company should send " -"the payment. This field is copied from the partner and will be copied to the" -" supplier invoice." +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." msgstr "" #. module: account_payment_purchase -#: field:purchase.order,supplier_partner_bank_id:0 +#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#, python-format +msgid "Selected purchase order have different supplier bank." +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id msgid "Supplier Bank Account" msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "Warning" diff --git a/account_payment_purchase/i18n/ja.po b/account_payment_purchase/i18n/ja.po new file mode 100644 index 000000000..39d8b2706 --- /dev/null +++ b/account_payment_purchase/i18n/ja.po @@ -0,0 +1,71 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 02:46+0000\n" +"PO-Revision-Date: 2017-05-17 02:46+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Japanese (https://www.transifex.com/oca/teams/23907/ja/)\n" +"Language: ja\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "請求書" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +msgid "Payment Mode" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#, python-format +msgid "Selected purchase order have different supplier bank." +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "Supplier Bank Account" +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "" diff --git a/account_payment_purchase/i18n/lt.po b/account_payment_purchase/i18n/lt.po new file mode 100644 index 000000000..65e5d469d --- /dev/null +++ b/account_payment_purchase/i18n/lt.po @@ -0,0 +1,72 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 02:46+0000\n" +"PO-Revision-Date: 2017-05-17 02:46+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Lithuanian (https://www.transifex.com/oca/teams/23907/lt/)\n" +"Language: lt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n" +"%100<10 || n%100>=20) ? 1 : 2);\n" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "Sąskaita faktūra" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +msgid "Payment Mode" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#, python-format +msgid "Selected purchase order have different supplier bank." +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "Supplier Bank Account" +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "" diff --git a/account_payment_purchase/i18n/mk.po b/account_payment_purchase/i18n/mk.po new file mode 100644 index 000000000..222f2b6fd --- /dev/null +++ b/account_payment_purchase/i18n/mk.po @@ -0,0 +1,71 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 02:46+0000\n" +"PO-Revision-Date: 2017-05-17 02:46+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Macedonian (https://www.transifex.com/oca/teams/23907/mk/)\n" +"Language: mk\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n % 10 == 1 && n % 100 != 11) ? 0 : 1;\n" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "Фактура" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +msgid "Payment Mode" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#, python-format +msgid "Selected purchase order have different supplier bank." +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "Supplier Bank Account" +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "" diff --git a/account_payment_purchase/i18n/mn.po b/account_payment_purchase/i18n/mn.po new file mode 100644 index 000000000..9c560e4b3 --- /dev/null +++ b/account_payment_purchase/i18n/mn.po @@ -0,0 +1,71 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 02:46+0000\n" +"PO-Revision-Date: 2017-05-17 02:46+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Mongolian (https://www.transifex.com/oca/teams/23907/mn/)\n" +"Language: mn\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "Нэхэмжлэл" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +msgid "Payment Mode" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#, python-format +msgid "Selected purchase order have different supplier bank." +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "Supplier Bank Account" +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "" diff --git a/account_payment_purchase/i18n/nb.po b/account_payment_purchase/i18n/nb.po new file mode 100644 index 000000000..68c30f127 --- /dev/null +++ b/account_payment_purchase/i18n/nb.po @@ -0,0 +1,72 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 02:46+0000\n" +"PO-Revision-Date: 2017-05-17 02:46+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Norwegian Bokmål (https://www.transifex.com/oca/teams/23907/" +"nb/)\n" +"Language: nb\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "Faktura" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +msgid "Payment Mode" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#, python-format +msgid "Selected purchase order have different supplier bank." +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "Supplier Bank Account" +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "" diff --git a/account_payment_purchase/i18n/nb_NO.po b/account_payment_purchase/i18n/nb_NO.po new file mode 100644 index 000000000..50c21d58f --- /dev/null +++ b/account_payment_purchase/i18n/nb_NO.po @@ -0,0 +1,72 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 02:46+0000\n" +"PO-Revision-Date: 2017-05-17 02:46+0000\n" +"Last-Translator: OCA Transbot , 2017\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" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "Innmelding" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +msgid "Payment Mode" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#, python-format +msgid "Selected purchase order have different supplier bank." +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "Supplier Bank Account" +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "" diff --git a/account_payment_purchase/i18n/nl.po b/account_payment_purchase/i18n/nl.po index 07115b8af..408bf2461 100644 --- a/account_payment_purchase/i18n/nl.po +++ b/account_payment_purchase/i18n/nl.po @@ -1,31 +1,37 @@ -# 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_purchase # +# Translators: +# OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: banking-addons\n" -"Report-Msgid-Bugs-To: FULL NAME \n" -"POT-Creation-Date: 2014-06-09 23:23+0000\n" -"PO-Revision-Date: 2014-06-26 14:15+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: 2017-05-17 02:46+0000\n" +"PO-Revision-Date: 2017-05-17 02:46+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: 8bit\n" -"X-Launchpad-Export-Date: 2014-06-27 07:13+0000\n" -"X-Generator: Launchpad (build 17077)\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: account_payment_purchase -#: field:purchase.order,payment_mode_id:0 +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "Factuur" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id msgid "Payment Mode" msgstr "Betaalwijze" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_picking -msgid "Picking List" -msgstr "Verzamellijst" +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "" #. module: account_payment_purchase #: model:ir.model,name:account_payment_purchase.model_purchase_order @@ -33,7 +39,7 @@ msgid "Purchase Order" msgstr "Inkooporder" #. module: account_payment_purchase -#: help:purchase.order,supplier_partner_bank_id:0 +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id msgid "" "Select the bank account of your supplier on which your company should send " "the payment. This field is copied from the partner and will be copied to the " @@ -44,6 +50,25 @@ msgstr "" "gekopieerd naar de inkoopfactuur." #. module: account_payment_purchase -#: field:purchase.order,supplier_partner_bank_id:0 +#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#, python-format +msgid "Selected purchase order have different supplier bank." +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id msgid "Supplier Bank Account" msgstr "Bankrekening leverancier" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "" diff --git a/account_payment_purchase/i18n/nl_BE.po b/account_payment_purchase/i18n/nl_BE.po new file mode 100644 index 000000000..ec741fc0e --- /dev/null +++ b/account_payment_purchase/i18n/nl_BE.po @@ -0,0 +1,72 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 02:46+0000\n" +"PO-Revision-Date: 2017-05-17 02:46+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Dutch (Belgium) (https://www.transifex.com/oca/teams/23907/" +"nl_BE/)\n" +"Language: nl_BE\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "Factuur" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +msgid "Payment Mode" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#, python-format +msgid "Selected purchase order have different supplier bank." +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "Supplier Bank Account" +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "" diff --git a/account_payment_purchase/i18n/nl_NL.po b/account_payment_purchase/i18n/nl_NL.po new file mode 100644 index 000000000..9baa2e957 --- /dev/null +++ b/account_payment_purchase/i18n/nl_NL.po @@ -0,0 +1,72 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +# Peter Hageman , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-08-12 00:34+0000\n" +"PO-Revision-Date: 2017-08-12 00:34+0000\n" +"Last-Translator: Peter Hageman , 2017\n" +"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/" +"teams/23907/nl_NL/)\n" +"Language: nl_NL\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "Factuur" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +msgid "Payment Mode" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#, python-format +msgid "Selected purchase order have different supplier bank." +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "Supplier Bank Account" +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "" diff --git a/account_payment_purchase/i18n/pl.po b/account_payment_purchase/i18n/pl.po new file mode 100644 index 000000000..6aff7501e --- /dev/null +++ b/account_payment_purchase/i18n/pl.po @@ -0,0 +1,73 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 02:46+0000\n" +"PO-Revision-Date: 2017-05-17 02:46+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Polish (https://www.transifex.com/oca/teams/23907/pl/)\n" +"Language: pl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" +"%100<12 || n%100>=14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" +"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "Faktura" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +msgid "Payment Mode" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#, python-format +msgid "Selected purchase order have different supplier bank." +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "Supplier Bank Account" +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "" diff --git a/account_payment_purchase/i18n/pt.po b/account_payment_purchase/i18n/pt.po new file mode 100644 index 000000000..7036a6b8d --- /dev/null +++ b/account_payment_purchase/i18n/pt.po @@ -0,0 +1,72 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +# OCA Transbot , 2017 +# Pedro Castro Silva , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 02:46+0000\n" +"PO-Revision-Date: 2017-05-17 02:46+0000\n" +"Last-Translator: Pedro Castro Silva , 2017\n" +"Language-Team: Portuguese (https://www.transifex.com/oca/teams/23907/pt/)\n" +"Language: pt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "Fatura" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +msgid "Payment Mode" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#, python-format +msgid "Selected purchase order have different supplier bank." +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "Supplier Bank Account" +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "Aviso" diff --git a/account_payment_purchase/i18n/pt_BR.po b/account_payment_purchase/i18n/pt_BR.po index 1241e9a20..3cec35d92 100644 --- a/account_payment_purchase/i18n/pt_BR.po +++ b/account_payment_purchase/i18n/pt_BR.po @@ -1,52 +1,76 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * account_payment_purchase -# +# # Translators: -# danimaribeiro , 2016 +# OCA Transbot , 2018 +# Paulo Ricardo , 2018 msgid "" msgstr "" -"Project-Id-Version: bank-payment (8.0)\n" +"Project-Id-Version: Odoo Server 9.0c\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-04-08 00:46+0000\n" -"PO-Revision-Date: 2016-04-06 01:03+0000\n" -"Last-Translator: danimaribeiro \n" -"Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/OCA-bank-payment-8-0/language/pt_BR/)\n" +"POT-Creation-Date: 2018-05-23 08:41+0000\n" +"PO-Revision-Date: 2018-05-23 08:41+0000\n" +"Last-Translator: Paulo Ricardo , 2018\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_purchase -#: field:purchase.order,payment_mode_id:0 +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "Fatura" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id msgid "Payment Mode" msgstr "Modo de Pagamento" -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_picking -msgid "Picking List" -msgstr "Lista de Separação" - #. module: account_payment_purchase #: model:ir.model,name:account_payment_purchase.model_procurement_order msgid "Procurement" -msgstr "Aquisição" +msgstr "Aprovisionamento" #. module: account_payment_purchase #: model:ir.model,name:account_payment_purchase.model_purchase_order msgid "Purchase Order" -msgstr "Pedido de Compra" +msgstr "Pedido de compra" #. module: account_payment_purchase -#: help:purchase.order,supplier_partner_bank_id:0 +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id msgid "" "Select the bank account of your supplier on which your company should send " -"the payment. This field is copied from the partner and will be copied to the" -" supplier invoice." -msgstr "Selecione a conta bancária do seu fornecedor para a qual sua empresa deve mandar o pagamento. Este campo é copiado do parceiro e será copiado para a fatura do fornecedor." +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." +msgstr "" +"Selecione a conta bancária do seu fornecedor para a qual sua empresa deve " +"mandar o pagamento. Este campo é copiado do parceiro e será copiado para a " +"fatura do fornecedor." #. module: account_payment_purchase -#: field:purchase.order,supplier_partner_bank_id:0 +#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#, python-format +msgid "Selected purchase order have different supplier bank." +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id msgid "Supplier Bank Account" msgstr "Conta Bancária do Fornecedor" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "Avisos" diff --git a/account_payment_purchase/i18n/pt_PT.po b/account_payment_purchase/i18n/pt_PT.po index dbfa579db..8c88806ec 100644 --- a/account_payment_purchase/i18n/pt_PT.po +++ b/account_payment_purchase/i18n/pt_PT.po @@ -1,30 +1,33 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * account_payment_purchase -# +# # Translators: +# OCA Transbot , 2017 +# Pedro Castro Silva , 2017 msgid "" msgstr "" -"Project-Id-Version: bank-payment (8.0)\n" +"Project-Id-Version: Odoo Server 9.0c\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-12-31 01:24+0000\n" -"PO-Revision-Date: 2016-04-06 00:16+0000\n" -"Last-Translator: <>\n" -"Language-Team: Portuguese (Portugal) (http://www.transifex.com/oca/OCA-bank-payment-8-0/language/pt_PT/)\n" +"POT-Creation-Date: 2017-05-17 02:46+0000\n" +"PO-Revision-Date: 2017-05-17 02:46+0000\n" +"Last-Translator: Pedro Castro Silva , 2017\n" +"Language-Team: Portuguese (Portugal) (https://www.transifex.com/oca/" +"teams/23907/pt_PT/)\n" +"Language: pt_PT\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: pt_PT\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: account_payment_purchase -#: field:purchase.order,payment_mode_id:0 -msgid "Payment Mode" -msgstr "" +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "Fatura" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_picking -msgid "Picking List" +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +msgid "Payment Mode" msgstr "" #. module: account_payment_purchase @@ -38,14 +41,33 @@ msgid "Purchase Order" msgstr "" #. module: account_payment_purchase -#: help:purchase.order,supplier_partner_bank_id:0 +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id msgid "" "Select the bank account of your supplier on which your company should send " -"the payment. This field is copied from the partner and will be copied to the" -" supplier invoice." +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." msgstr "" #. module: account_payment_purchase -#: field:purchase.order,supplier_partner_bank_id:0 +#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#, python-format +msgid "Selected purchase order have different supplier bank." +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id msgid "Supplier Bank Account" msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "Aviso" diff --git a/account_payment_purchase/i18n/ro.po b/account_payment_purchase/i18n/ro.po new file mode 100644 index 000000000..a729e5e4b --- /dev/null +++ b/account_payment_purchase/i18n/ro.po @@ -0,0 +1,73 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +# OCA Transbot , 2017 +# Dorin Hongu , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 02:46+0000\n" +"PO-Revision-Date: 2017-05-17 02:46+0000\n" +"Last-Translator: Dorin Hongu , 2017\n" +"Language-Team: Romanian (https://www.transifex.com/oca/teams/23907/ro/)\n" +"Language: ro\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?" +"2:1));\n" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "Factura" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +msgid "Payment Mode" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "Aprovizionare" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "Comandă achiziție" + +#. module: account_payment_purchase +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#, python-format +msgid "Selected purchase order have different supplier bank." +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "Supplier Bank Account" +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "" diff --git a/account_payment_purchase/i18n/ru.po b/account_payment_purchase/i18n/ru.po new file mode 100644 index 000000000..9d6c9a56a --- /dev/null +++ b/account_payment_purchase/i18n/ru.po @@ -0,0 +1,73 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 02:46+0000\n" +"PO-Revision-Date: 2017-05-17 02:46+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Russian (https://www.transifex.com/oca/teams/23907/ru/)\n" +"Language: ru\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n" +"%100>=11 && n%100<=14)? 2 : 3);\n" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "Счет" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +msgid "Payment Mode" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#, python-format +msgid "Selected purchase order have different supplier bank." +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "Supplier Bank Account" +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "" diff --git a/account_payment_purchase/i18n/sk.po b/account_payment_purchase/i18n/sk.po new file mode 100644 index 000000000..a3e558986 --- /dev/null +++ b/account_payment_purchase/i18n/sk.po @@ -0,0 +1,71 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +# Jan Prokop , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-10-15 00:41+0000\n" +"PO-Revision-Date: 2017-10-15 00:41+0000\n" +"Last-Translator: Jan Prokop , 2017\n" +"Language-Team: Slovak (https://www.transifex.com/oca/teams/23907/sk/)\n" +"Language: sk\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +msgid "Payment Mode" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "Obstarávanie" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#, python-format +msgid "Selected purchase order have different supplier bank." +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "Supplier Bank Account" +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "" diff --git a/account_payment_purchase/i18n/sk_SK.po b/account_payment_purchase/i18n/sk_SK.po new file mode 100644 index 000000000..2014643e2 --- /dev/null +++ b/account_payment_purchase/i18n/sk_SK.po @@ -0,0 +1,72 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 02:46+0000\n" +"PO-Revision-Date: 2017-05-17 02:46+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Slovak (Slovakia) (https://www.transifex.com/oca/teams/23907/" +"sk_SK/)\n" +"Language: sk_SK\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "Faktúra" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +msgid "Payment Mode" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#, python-format +msgid "Selected purchase order have different supplier bank." +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "Supplier Bank Account" +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "" diff --git a/account_payment_purchase/i18n/sl.po b/account_payment_purchase/i18n/sl.po index f3b0b47dd..c56e636a5 100644 --- a/account_payment_purchase/i18n/sl.po +++ b/account_payment_purchase/i18n/sl.po @@ -1,37 +1,39 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * account_payment_purchase -# +# # Translators: -# Matjaž Mozetič , 2016 +# OCA Transbot , 2018 +# Matjaž Mozetič , 2018 msgid "" msgstr "" -"Project-Id-Version: bank-payment (8.0)\n" +"Project-Id-Version: Odoo Server 9.0c\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-04-08 00:46+0000\n" -"PO-Revision-Date: 2016-04-08 05:50+0000\n" -"Last-Translator: Matjaž Mozetič \n" -"Language-Team: Slovenian (http://www.transifex.com/oca/OCA-bank-payment-8-0/language/sl/)\n" +"POT-Creation-Date: 2018-05-23 08:41+0000\n" +"PO-Revision-Date: 2018-05-23 08:41+0000\n" +"Last-Translator: Matjaž Mozetič , 2018\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_purchase -#: field:purchase.order,payment_mode_id:0 +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "Račun" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id msgid "Payment Mode" msgstr "Metoda plačila" -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_picking -msgid "Picking List" -msgstr "Zbirni seznam" - #. module: account_payment_purchase #: model:ir.model,name:account_payment_purchase.model_procurement_order msgid "Procurement" -msgstr "Oskrba" +msgstr "Oskrbovanje" #. module: account_payment_purchase #: model:ir.model,name:account_payment_purchase.model_purchase_order @@ -39,14 +41,35 @@ msgid "Purchase Order" msgstr "Nabavni nalog" #. module: account_payment_purchase -#: help:purchase.order,supplier_partner_bank_id:0 +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id msgid "" "Select the bank account of your supplier on which your company should send " -"the payment. This field is copied from the partner and will be copied to the" -" supplier invoice." -msgstr "Izberite bančni račun dobavitelja, na katerega bo vaša družba izvedla nakazilo. To polje se kopira iz partnerja in bo kopirano na prejeti račun." +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." +msgstr "" +"Izberite bančni račun dobavitelja, na katerega bo vaša družba izvedla " +"nakazilo. To polje se kopira iz partnerja in bo kopirano na prejeti račun." #. module: account_payment_purchase -#: field:purchase.order,supplier_partner_bank_id:0 +#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#, python-format +msgid "Selected purchase order have different supplier bank." +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id msgid "Supplier Bank Account" msgstr "Bančni račun dobavitelja" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "Opozorilo" diff --git a/account_payment_purchase/i18n/sv.po b/account_payment_purchase/i18n/sv.po new file mode 100644 index 000000000..36e91394f --- /dev/null +++ b/account_payment_purchase/i18n/sv.po @@ -0,0 +1,71 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 02:46+0000\n" +"PO-Revision-Date: 2017-05-17 02:46+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Swedish (https://www.transifex.com/oca/teams/23907/sv/)\n" +"Language: sv\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "Faktura" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +msgid "Payment Mode" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#, python-format +msgid "Selected purchase order have different supplier bank." +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "Supplier Bank Account" +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "" diff --git a/account_payment_purchase/i18n/th.po b/account_payment_purchase/i18n/th.po new file mode 100644 index 000000000..eaf3a50cb --- /dev/null +++ b/account_payment_purchase/i18n/th.po @@ -0,0 +1,71 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 02:46+0000\n" +"PO-Revision-Date: 2017-05-17 02:46+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Thai (https://www.transifex.com/oca/teams/23907/th/)\n" +"Language: th\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "ใบแจ้งหนี้" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +msgid "Payment Mode" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#, python-format +msgid "Selected purchase order have different supplier bank." +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "Supplier Bank Account" +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "" diff --git a/account_payment_purchase/i18n/tr.po b/account_payment_purchase/i18n/tr.po index a8c9bdabb..313c6bb1a 100644 --- a/account_payment_purchase/i18n/tr.po +++ b/account_payment_purchase/i18n/tr.po @@ -1,31 +1,33 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * account_payment_purchase -# +# # Translators: +# OCA Transbot , 2017 +# Ahmet Altinisik , 2017 msgid "" msgstr "" -"Project-Id-Version: bank-payment (8.0)\n" +"Project-Id-Version: Odoo Server 9.0c\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-12-31 01:24+0000\n" -"PO-Revision-Date: 2016-04-06 00:16+0000\n" -"Last-Translator: <>\n" -"Language-Team: Turkish (http://www.transifex.com/oca/OCA-bank-payment-8-0/language/tr/)\n" +"POT-Creation-Date: 2017-05-17 02:46+0000\n" +"PO-Revision-Date: 2017-05-17 02:46+0000\n" +"Last-Translator: Ahmet Altinisik , 2017\n" +"Language-Team: Turkish (https://www.transifex.com/oca/teams/23907/tr/)\n" +"Language: tr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: tr\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: account_payment_purchase -#: field:purchase.order,payment_mode_id:0 -msgid "Payment Mode" -msgstr "" +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "Fatura" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_picking -msgid "Picking List" -msgstr "Toplama Listesi" +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +msgid "Payment Mode" +msgstr "" #. module: account_payment_purchase #: model:ir.model,name:account_payment_purchase.model_procurement_order @@ -38,14 +40,33 @@ msgid "Purchase Order" msgstr "" #. module: account_payment_purchase -#: help:purchase.order,supplier_partner_bank_id:0 +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id msgid "" "Select the bank account of your supplier on which your company should send " -"the payment. This field is copied from the partner and will be copied to the" -" supplier invoice." +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." msgstr "" #. module: account_payment_purchase -#: field:purchase.order,supplier_partner_bank_id:0 +#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#, python-format +msgid "Selected purchase order have different supplier bank." +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id msgid "Supplier Bank Account" msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "Uyarı" diff --git a/account_payment_purchase/i18n/tr_TR.po b/account_payment_purchase/i18n/tr_TR.po index 59d1d68ed..e89927a1d 100644 --- a/account_payment_purchase/i18n/tr_TR.po +++ b/account_payment_purchase/i18n/tr_TR.po @@ -1,31 +1,33 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * account_payment_purchase -# +# # Translators: +# OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: bank-payment (8.0)\n" +"Project-Id-Version: Odoo Server 9.0c\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-12-31 01:24+0000\n" -"PO-Revision-Date: 2016-04-06 00:16+0000\n" -"Last-Translator: <>\n" -"Language-Team: Turkish (Turkey) (http://www.transifex.com/oca/OCA-bank-payment-8-0/language/tr_TR/)\n" +"POT-Creation-Date: 2017-05-17 02:46+0000\n" +"PO-Revision-Date: 2017-05-17 02:46+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Turkish (Turkey) (https://www.transifex.com/oca/teams/23907/" +"tr_TR/)\n" +"Language: tr_TR\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: tr_TR\n" "Plural-Forms: nplurals=1; plural=0;\n" #. module: account_payment_purchase -#: field:purchase.order,payment_mode_id:0 -msgid "Payment Mode" -msgstr "" +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "Fatura" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_picking -msgid "Picking List" -msgstr "Seçim listesi" +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +msgid "Payment Mode" +msgstr "" #. module: account_payment_purchase #: model:ir.model,name:account_payment_purchase.model_procurement_order @@ -38,14 +40,33 @@ msgid "Purchase Order" msgstr "" #. module: account_payment_purchase -#: help:purchase.order,supplier_partner_bank_id:0 +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id msgid "" "Select the bank account of your supplier on which your company should send " -"the payment. This field is copied from the partner and will be copied to the" -" supplier invoice." +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." msgstr "" #. module: account_payment_purchase -#: field:purchase.order,supplier_partner_bank_id:0 +#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#, python-format +msgid "Selected purchase order have different supplier bank." +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id msgid "Supplier Bank Account" msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "" diff --git a/account_payment_purchase/i18n/vi_VN.po b/account_payment_purchase/i18n/vi_VN.po new file mode 100644 index 000000000..ec8175c83 --- /dev/null +++ b/account_payment_purchase/i18n/vi_VN.po @@ -0,0 +1,72 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 02:46+0000\n" +"PO-Revision-Date: 2017-05-17 02:46+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Vietnamese (Viet Nam) (https://www.transifex.com/oca/" +"teams/23907/vi_VN/)\n" +"Language: vi_VN\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +msgid "Payment Mode" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "Mua sắm / Cung ứng" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "Đơn hàng Mua" + +#. module: account_payment_purchase +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#, python-format +msgid "Selected purchase order have different supplier bank." +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "Supplier Bank Account" +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "" diff --git a/account_payment_purchase/i18n/zh_CN.po b/account_payment_purchase/i18n/zh_CN.po index ed9bafe26..7563a10ba 100644 --- a/account_payment_purchase/i18n/zh_CN.po +++ b/account_payment_purchase/i18n/zh_CN.po @@ -1,31 +1,34 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * account_payment_purchase -# +# # Translators: +# OCA Transbot , 2017 +# ITGeeker , 2017 msgid "" msgstr "" -"Project-Id-Version: bank-payment (8.0)\n" +"Project-Id-Version: Odoo Server 9.0c\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-12-10 17:00+0000\n" -"PO-Revision-Date: 2016-04-06 00:16+0000\n" -"Last-Translator: <>\n" -"Language-Team: Chinese (China) (http://www.transifex.com/oca/OCA-bank-payment-8-0/language/zh_CN/)\n" +"POT-Creation-Date: 2017-05-17 02:46+0000\n" +"PO-Revision-Date: 2017-05-17 02:46+0000\n" +"Last-Translator: ITGeeker , 2017\n" +"Language-Team: Chinese (China) (https://www.transifex.com/oca/teams/23907/" +"zh_CN/)\n" +"Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: zh_CN\n" "Plural-Forms: nplurals=1; plural=0;\n" #. module: account_payment_purchase -#: field:purchase.order,payment_mode_id:0 -msgid "Payment Mode" -msgstr "" +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "发票" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_picking -msgid "Picking List" -msgstr "" +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +msgid "Payment Mode" +msgstr "支付方式" #. module: account_payment_purchase #: model:ir.model,name:account_payment_purchase.model_procurement_order @@ -38,14 +41,33 @@ msgid "Purchase Order" msgstr "" #. module: account_payment_purchase -#: help:purchase.order,supplier_partner_bank_id:0 +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id msgid "" "Select the bank account of your supplier on which your company should send " -"the payment. This field is copied from the partner and will be copied to the" -" supplier invoice." +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." msgstr "" #. module: account_payment_purchase -#: field:purchase.order,supplier_partner_bank_id:0 +#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#, python-format +msgid "Selected purchase order have different supplier bank." +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id msgid "Supplier Bank Account" msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "警告" diff --git a/account_payment_purchase/i18n/zh_TW.po b/account_payment_purchase/i18n/zh_TW.po new file mode 100644 index 000000000..5e49cdb10 --- /dev/null +++ b/account_payment_purchase/i18n/zh_TW.po @@ -0,0 +1,72 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 02:46+0000\n" +"PO-Revision-Date: 2017-05-17 02:46+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Chinese (Taiwan) (https://www.transifex.com/oca/teams/23907/" +"zh_TW/)\n" +"Language: zh_TW\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "發票" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +msgid "Payment Mode" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "" +"Select the bank account of your supplier on which your company should send " +"the payment. This field is copied from the partner and will be copied to the " +"supplier invoice." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#, python-format +msgid "Selected purchase order have different supplier bank." +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +msgid "Supplier Bank Account" +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#, python-format +msgid "Warning" +msgstr "" From 0f0dfd9894ab38b3a221ac83688bc04dcc57e012 Mon Sep 17 00:00:00 2001 From: Abranes Date: Thu, 5 Jul 2018 16:16:58 +0200 Subject: [PATCH 30/35] account_payment_purchase: Migration to 10.0 --- account_payment_purchase/README.rst | 1 + account_payment_purchase/{__openerp__.py => __manifest__.py} | 2 +- account_payment_purchase/models/account_invoice.py | 2 +- account_payment_purchase/models/procurement_order.py | 2 +- account_payment_purchase/models/purchase_order.py | 2 +- .../tests/test_account_payment_purchase.py | 4 ++-- 6 files changed, 7 insertions(+), 6 deletions(-) rename account_payment_purchase/{__openerp__.py => __manifest__.py} (96%) diff --git a/account_payment_purchase/README.rst b/account_payment_purchase/README.rst index b5f403209..f5d7031e2 100644 --- a/account_payment_purchase/README.rst +++ b/account_payment_purchase/README.rst @@ -72,6 +72,7 @@ Contributors * Danimar Ribeiro * Raphaël Valyi * Vicent Cubells +* Abraham Anes Maintainer ---------- diff --git a/account_payment_purchase/__openerp__.py b/account_payment_purchase/__manifest__.py similarity index 96% rename from account_payment_purchase/__openerp__.py rename to account_payment_purchase/__manifest__.py index 089a02898..bd5c1ce5b 100644 --- a/account_payment_purchase/__openerp__.py +++ b/account_payment_purchase/__manifest__.py @@ -5,7 +5,7 @@ { 'name': 'Account Payment Purchase', - 'version': '9.0.1.0.0', + 'version': '10.0.1.0.0', 'category': 'Banking addons', 'license': 'AGPL-3', 'summary': "Adds Bank Account and Payment Mode on Purchase Orders", diff --git a/account_payment_purchase/models/account_invoice.py b/account_payment_purchase/models/account_invoice.py index 36b70aacb..98ebafee8 100644 --- a/account_payment_purchase/models/account_invoice.py +++ b/account_payment_purchase/models/account_invoice.py @@ -3,7 +3,7 @@ # Copyright 2017 Tecnativa - Vicent Cubells. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from openerp import _, api, models +from odoo import _, api, models class AccountInvoice(models.Model): diff --git a/account_payment_purchase/models/procurement_order.py b/account_payment_purchase/models/procurement_order.py index e8fd073cf..6d1aa687d 100644 --- a/account_payment_purchase/models/procurement_order.py +++ b/account_payment_purchase/models/procurement_order.py @@ -2,7 +2,7 @@ # Copyright 2015 Tecnativa - Pedro M. Baeza # License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html -from openerp import api, models +from odoo import api, models class ProcurementOrder(models.Model): diff --git a/account_payment_purchase/models/purchase_order.py b/account_payment_purchase/models/purchase_order.py index 5cc4c8cb3..07cbed0af 100644 --- a/account_payment_purchase/models/purchase_order.py +++ b/account_payment_purchase/models/purchase_order.py @@ -3,7 +3,7 @@ # Copyright 2017 Tecnativa - Vicent Cubells. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from openerp import api, fields, models +from odoo import api, fields, models class PurchaseOrder(models.Model): diff --git a/account_payment_purchase/tests/test_account_payment_purchase.py b/account_payment_purchase/tests/test_account_payment_purchase.py index 2235f3a68..c610daf56 100644 --- a/account_payment_purchase/tests/test_account_payment_purchase.py +++ b/account_payment_purchase/tests/test_account_payment_purchase.py @@ -3,8 +3,8 @@ # Copyright 2017 Tecnativa - Vicent Cubells # License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html -from openerp import fields -from openerp.tests import common +from odoo import fields +from odoo.tests import common class TestAccountPaymentPurchase(common.SavepointCase): From e7006ff443cdab87ddfa2683c9cfe8906612cd22 Mon Sep 17 00:00:00 2001 From: oca-travis Date: Tue, 17 Jul 2018 07:48:51 +0000 Subject: [PATCH 31/35] Update account_payment_purchase.pot --- .../i18n/account_payment_purchase.pot | 2 +- account_payment_purchase/i18n/nl_NL.po | 28 +++++++++++-------- 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/account_payment_purchase/i18n/account_payment_purchase.pot b/account_payment_purchase/i18n/account_payment_purchase.pot index cd760048d..df809223d 100644 --- a/account_payment_purchase/i18n/account_payment_purchase.pot +++ b/account_payment_purchase/i18n/account_payment_purchase.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: <>\n" "Language-Team: \n" diff --git a/account_payment_purchase/i18n/nl_NL.po b/account_payment_purchase/i18n/nl_NL.po index 9baa2e957..1e049efba 100644 --- a/account_payment_purchase/i18n/nl_NL.po +++ b/account_payment_purchase/i18n/nl_NL.po @@ -9,15 +9,16 @@ msgstr "" "Project-Id-Version: Odoo Server 9.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-08-12 00:34+0000\n" -"PO-Revision-Date: 2017-08-12 00:34+0000\n" -"Last-Translator: Peter Hageman , 2017\n" -"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/" -"teams/23907/nl_NL/)\n" +"PO-Revision-Date: 2018-07-17 19:53+0000\n" +"Last-Translator: Thomas Pot \n" +"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/teams/" +"23907/nl_NL/)\n" "Language: nl_NL\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 3.0.1\n" #. module: account_payment_purchase #: model:ir.model,name:account_payment_purchase.model_account_invoice @@ -27,17 +28,17 @@ msgstr "Factuur" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id msgid "Payment Mode" -msgstr "" +msgstr "Betaalwijze" #. module: account_payment_purchase #: model:ir.model,name:account_payment_purchase.model_procurement_order msgid "Procurement" -msgstr "" +msgstr "Verwerving" #. module: account_payment_purchase #: model:ir.model,name:account_payment_purchase.model_purchase_order msgid "Purchase Order" -msgstr "" +msgstr "Inkooporder" #. module: account_payment_purchase #: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id @@ -46,27 +47,30 @@ msgid "" "the payment. This field is copied from the partner and will be copied to the " "supplier invoice." msgstr "" +"Selecteer de bankrekening van uw leverancier waarnaar uw bedrijf de betaling " +"moet overmaken. Dit veld wordt gekopieerd vanaf de relatie naar de " +"leveranciersfactuur." #. module: account_payment_purchase #: code:addons/account_payment_purchase/models/account_invoice.py:20 #, python-format msgid "Selected purchase order have different payment mode." -msgstr "" +msgstr "Geselecteerde inkooporders hebben verschillende betaalwijzen." #. module: account_payment_purchase #: code:addons/account_payment_purchase/models/account_invoice.py:27 #, python-format msgid "Selected purchase order have different supplier bank." -msgstr "" +msgstr "Geselecteerde inkooporders hebben verschillende banken." #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_supplier_partner_bank_id msgid "Supplier Bank Account" -msgstr "" +msgstr "Bankrekening leverancier" #. module: account_payment_purchase #: code:addons/account_payment_purchase/models/account_invoice.py:19 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" -msgstr "" +msgstr "Waarschuwing" From 291328de9d69f76e3318df2d5f8f55633f2ef523 Mon Sep 17 00:00:00 2001 From: cubells Date: Fri, 5 Oct 2018 10:09:42 +0200 Subject: [PATCH 32/35] account_payment_purchase: Migration to 11.0 --- account_payment_purchase/README.rst | 85 ++-- account_payment_purchase/__init__.py | 1 - account_payment_purchase/__manifest__.py | 5 +- account_payment_purchase/models/__init__.py | 5 +- .../models/account_invoice.py | 3 +- ...ocurement_order.py => procurement_rule.py} | 14 +- .../models/purchase_order.py | 1 - .../readme/CONTRIBUTORS.rst | 9 + .../readme/DESCRIPTION.rst | 8 + account_payment_purchase/readme/INSTALL.rst | 6 + account_payment_purchase/readme/USAGE.rst | 10 + .../static/description/index.html | 457 ++++++++++++++++++ account_payment_purchase/tests/__init__.py | 1 - .../tests/test_account_payment_purchase.py | 49 +- 14 files changed, 582 insertions(+), 72 deletions(-) rename account_payment_purchase/models/{procurement_order.py => procurement_rule.py} (57%) create mode 100644 account_payment_purchase/readme/CONTRIBUTORS.rst create mode 100644 account_payment_purchase/readme/DESCRIPTION.rst create mode 100644 account_payment_purchase/readme/INSTALL.rst create mode 100644 account_payment_purchase/readme/USAGE.rst create mode 100644 account_payment_purchase/static/description/index.html diff --git a/account_payment_purchase/README.rst b/account_payment_purchase/README.rst index f5d7031e2..140059f7a 100644 --- a/account_payment_purchase/README.rst +++ b/account_payment_purchase/README.rst @@ -1,11 +1,30 @@ -.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg - :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html - :alt: License: AGPL-3 - ======================== Account Payment Purchase ======================== +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! 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/11.0/account_payment_purchase + :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-11-0/bank-payment-11-0-account_payment_purchase + :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/11.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + This module adds 2 fields on purchase orders: *Bank Account* and *Payment Mode*. These fields are copied from partner to purchase order and then from purchase order to supplier invoice. @@ -15,20 +34,21 @@ is that it doesn't depend on the *account_payment_extension* module (it's not the only module to conflict with *account_payment_extension*; all the SEPA modules in the banking addons conflict with *account_payment_extension*). +**Table of contents** + +.. contents:: + :local: + Installation ============ This module depends on : + - purchase - account_payment_partner This module is part of the OCA/bank-payment suite. -Configuration -============= - -There is nothing to configure. - Usage ===== @@ -43,48 +63,51 @@ Invoices without any payment mode are displayed too. This module doesn't add any feature, but it is used by several other modules. -.. 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. +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 * Alexandre Fayolle * Danimar Ribeiro * Raphaël Valyi -* Vicent Cubells * Abraham Anes +* `Tecnativa `_: -Maintainer ----------- + * Pedro M. Baeza + * Vicent Cubells + +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. -To contribute to this module, please visit https://odoo-community.org. +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_purchase/__init__.py b/account_payment_purchase/__init__.py index 59f15b0fb..af735bf88 100644 --- a/account_payment_purchase/__init__.py +++ b/account_payment_purchase/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2016 Akretion (). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). diff --git a/account_payment_purchase/__manifest__.py b/account_payment_purchase/__manifest__.py index bd5c1ce5b..0cb237613 100644 --- a/account_payment_purchase/__manifest__.py +++ b/account_payment_purchase/__manifest__.py @@ -1,18 +1,17 @@ -# -*- coding: utf-8 -*- # Copyright 2016 Akretion (). # Copyright 2017 Tecnativa - Vicent Cubells # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { 'name': 'Account Payment Purchase', - 'version': '10.0.1.0.0', + 'version': '11.0.1.0.0', 'category': 'Banking addons', 'license': 'AGPL-3', 'summary': "Adds Bank Account and Payment Mode on Purchase Orders", 'author': "Akretion, " "Tecnativa, " "Odoo Community Association (OCA)", - 'website': 'http://www.akretion.com', + 'website': 'https://github.com/OCA/bank-payment', 'depends': [ 'purchase', 'account_payment_partner' diff --git a/account_payment_purchase/models/__init__.py b/account_payment_purchase/models/__init__.py index 29a6c4cc8..8c3bb2f57 100644 --- a/account_payment_purchase/models/__init__.py +++ b/account_payment_purchase/models/__init__.py @@ -1,7 +1,6 @@ -# -*- coding: utf-8 -*- # Copyright 2016 Akretion (). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from . import procurement_order -from . import purchase_order from . import account_invoice +from . import purchase_order +from . import procurement_rule diff --git a/account_payment_purchase/models/account_invoice.py b/account_payment_purchase/models/account_invoice.py index 98ebafee8..03a793159 100644 --- a/account_payment_purchase/models/account_invoice.py +++ b/account_payment_purchase/models/account_invoice.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2016 Akretion (). # Copyright 2017 Tecnativa - Vicent Cubells. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). @@ -21,6 +20,7 @@ class AccountInvoice(models.Model): 'payment mode.'), } return res + self.payment_mode_id = new_mode if self.partner_bank_id and self.partner_bank_id.id != new_bank: res['warning'] = { 'title': _('Warning'), @@ -28,5 +28,4 @@ class AccountInvoice(models.Model): 'supplier bank.'), } return res - self.payment_mode_id = new_mode self.partner_bank_id = new_bank diff --git a/account_payment_purchase/models/procurement_order.py b/account_payment_purchase/models/procurement_rule.py similarity index 57% rename from account_payment_purchase/models/procurement_order.py rename to account_payment_purchase/models/procurement_rule.py index 6d1aa687d..a94adf3d4 100644 --- a/account_payment_purchase/models/procurement_order.py +++ b/account_payment_purchase/models/procurement_rule.py @@ -1,17 +1,17 @@ -# -*- coding: utf-8 -*- # Copyright 2015 Tecnativa - Pedro M. Baeza # License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html -from odoo import api, models +from odoo import models -class ProcurementOrder(models.Model): - _inherit = "procurement.order" +class ProcurementRule(models.Model): + _inherit = "procurement.rule" - @api.multi - def _prepare_purchase_order(self, partner): + def _prepare_purchase_order(self, product_id, product_qty, product_uom, + origin, values, partner): """Propagate payment mode on MTO/drop shipping.""" - values = super(ProcurementOrder, self)._prepare_purchase_order(partner) + values = super(ProcurementRule, self)._prepare_purchase_order( + product_id, product_qty, product_uom, origin, values, partner) if partner: values['payment_mode_id'] = partner.with_context( force_company=self.company_id.id).supplier_payment_mode_id.id diff --git a/account_payment_purchase/models/purchase_order.py b/account_payment_purchase/models/purchase_order.py index 07cbed0af..b61e2ac85 100644 --- a/account_payment_purchase/models/purchase_order.py +++ b/account_payment_purchase/models/purchase_order.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2016 Akretion (). # Copyright 2017 Tecnativa - Vicent Cubells. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). diff --git a/account_payment_purchase/readme/CONTRIBUTORS.rst b/account_payment_purchase/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..a4a055436 --- /dev/null +++ b/account_payment_purchase/readme/CONTRIBUTORS.rst @@ -0,0 +1,9 @@ +* Alexis de Lattre +* Alexandre Fayolle +* Danimar Ribeiro +* Raphaël Valyi +* Abraham Anes +* `Tecnativa `_: + + * Pedro M. Baeza + * Vicent Cubells diff --git a/account_payment_purchase/readme/DESCRIPTION.rst b/account_payment_purchase/readme/DESCRIPTION.rst new file mode 100644 index 000000000..8af2e48df --- /dev/null +++ b/account_payment_purchase/readme/DESCRIPTION.rst @@ -0,0 +1,8 @@ +This module adds 2 fields on purchase orders: *Bank Account* and *Payment +Mode*. These fields are copied from partner to purchase order and then from +purchase order to supplier invoice. + +This module is similar to the *purchase_payment* module; the main difference +is that it doesn't depend on the *account_payment_extension* module (it's not +the only module to conflict with *account_payment_extension*; all the SEPA +modules in the banking addons conflict with *account_payment_extension*). diff --git a/account_payment_purchase/readme/INSTALL.rst b/account_payment_purchase/readme/INSTALL.rst new file mode 100644 index 000000000..09b853841 --- /dev/null +++ b/account_payment_purchase/readme/INSTALL.rst @@ -0,0 +1,6 @@ +This module depends on : + +- purchase +- account_payment_partner + +This module is part of the OCA/bank-payment suite. diff --git a/account_payment_purchase/readme/USAGE.rst b/account_payment_purchase/readme/USAGE.rst new file mode 100644 index 000000000..82c03448a --- /dev/null +++ b/account_payment_purchase/readme/USAGE.rst @@ -0,0 +1,10 @@ +You are able to add a payment mode directly on a partner. +This payment mode is automatically associated to the purchase order, then on +related invoice. +This default value could be change in a draft purchase or 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. + + +This module doesn't add any feature, but it is used by several other modules. diff --git a/account_payment_purchase/static/description/index.html b/account_payment_purchase/static/description/index.html new file mode 100644 index 000000000..fd900a30f --- /dev/null +++ b/account_payment_purchase/static/description/index.html @@ -0,0 +1,457 @@ + + + + + + +Account Payment Purchase + + + +
+

Account Payment Purchase

+ + +

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

+

This module adds 2 fields on purchase orders: Bank Account and Payment +Mode. These fields are copied from partner to purchase order and then from +purchase order to supplier invoice.

+

This module is similar to the purchase_payment module; the main difference +is that it doesn’t depend on the account_payment_extension module (it’s not +the only module to conflict with account_payment_extension; all the SEPA +modules in the banking addons conflict with account_payment_extension).

+

Table of contents

+ +
+

Installation

+

This module depends on :

+
    +
  • purchase
  • +
  • account_payment_partner
  • +
+

This module is part of the OCA/bank-payment suite.

+
+
+

Usage

+

You are able to add a payment mode directly on a partner. +This payment mode is automatically associated to the purchase order, then on +related invoice. +This default value could be change in a draft purchase or 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.

+

This module doesn’t add any feature, but it is used by several other modules.

+
+
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +feedback.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Akretion
  • +
  • Tecnativa
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

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

+

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_purchase/tests/__init__.py b/account_payment_purchase/tests/__init__.py index 5af37be3f..172df56fa 100644 --- a/account_payment_purchase/tests/__init__.py +++ b/account_payment_purchase/tests/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2013-2015 Tecnativa - Pedro M. Baeza # License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html diff --git a/account_payment_purchase/tests/test_account_payment_purchase.py b/account_payment_purchase/tests/test_account_payment_purchase.py index c610daf56..2f28e48c4 100644 --- a/account_payment_purchase/tests/test_account_payment_purchase.py +++ b/account_payment_purchase/tests/test_account_payment_purchase.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2013-2015 Tecnativa - Pedro M. Baeza # Copyright 2017 Tecnativa - Vicent Cubells # License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html @@ -55,8 +54,8 @@ class TestAccountPaymentPurchase(common.SavepointCase): self.purchase.button_confirm() picking = self.purchase.picking_ids[0] picking.force_assign() - picking.pack_operation_product_ids.write({'qty_done': 1.0}) - picking.do_new_transfer() + picking.move_lines.write({'quantity_done': 1.0}) + picking.do_transfer() invoice = self.env['account.invoice'].create({ 'partner_id': self.partner.id, @@ -76,8 +75,8 @@ class TestAccountPaymentPurchase(common.SavepointCase): self.purchase.button_confirm() picking = self.purchase.picking_ids[0] picking.force_assign() - picking.pack_operation_product_ids.write({'qty_done': 1.0}) - picking.do_new_transfer() + picking.move_lines.write({'quantity_done': 1.0}) + picking.do_transfer() invoice = self.env['account.invoice'].create({ 'partner_id': self.partner.id, @@ -92,8 +91,8 @@ class TestAccountPaymentPurchase(common.SavepointCase): purchase2.button_confirm() picking = purchase2.picking_ids[0] picking.force_assign() - picking.pack_operation_product_ids.write({'qty_done': 1.0}) - picking.do_new_transfer() + picking.move_lines.write({'quantity_done': 1.0}) + picking.do_transfer() invoice.purchase_id = purchase2.id result = invoice.purchase_order_change() self.assertEqual(result['warning']['title'], 'Warning') @@ -109,14 +108,16 @@ class TestAccountPaymentPurchase(common.SavepointCase): self.purchase.button_confirm() picking = self.purchase.picking_ids[0] picking.force_assign() - picking.pack_operation_product_ids.write({'qty_done': 1.0}) - picking.do_new_transfer() + picking.move_lines.write({'quantity_done': 1.0}) + picking.do_transfer() invoice = self.env['account.invoice'].create({ 'partner_id': self.partner.id, 'purchase_id': self.purchase.id, 'account_id': self.partner.property_account_payable_id.id, }) + # Avoid bank company from default_get method + invoice.partner_bank_id = False invoice.purchase_order_change() self.assertEqual(invoice.partner_bank_id, self.bank) purchase2 = self.purchase.copy() @@ -124,8 +125,8 @@ class TestAccountPaymentPurchase(common.SavepointCase): purchase2.button_confirm() picking = purchase2.picking_ids[0] picking.force_assign() - picking.pack_operation_product_ids.write({'qty_done': 1.0}) - picking.do_new_transfer() + picking.move_lines.write({'quantity_done': 1.0}) + picking.do_transfer() invoice.purchase_id = purchase2.id result = invoice.purchase_order_change() self.assertEqual(result['warning']['title'], 'Warning') @@ -134,15 +135,17 @@ class TestAccountPaymentPurchase(common.SavepointCase): route = self.env.ref('purchase.route_warehouse0_buy') rule = self.env['procurement.rule'].search( [('route_id', '=', route.id)], limit=1) - procurement_order = self.env['procurement.order'].create({ - 'product_id': self.mto_product.id, - 'rule_id': rule.id, - 'location_id': self.env['stock.location'].search([], limit=1).id, - 'warehouse_id': self.env['stock.warehouse'].search([], limit=1).id, - 'product_qty': 1, - 'product_uom': self.mto_product.uom_id.id, - 'name': 'Procurement order test', - }) - procurement_order.run() - self.assertEqual( - procurement_order.purchase_id.payment_mode_id, self.payment_mode) + rule._run_buy( + product_id=self.mto_product, + product_qty=1, + product_uom=self.mto_product.uom_id, + location_id=self.env['stock.location'].search([], limit=1), + name='Procurement order test', + origin='Test', + values={ + 'company_id': self.env.user.company_id, + 'date_planned': fields.Datetime.now(), + }, + ) + purchase = self.env['purchase.order'].search([('origin', '=', 'Test')]) + self.assertEqual(purchase.payment_mode_id, self.payment_mode) From 4b5897f3c89d185ca292cac5d7b8eaddf640cd23 Mon Sep 17 00:00:00 2001 From: oca-travis Date: Thu, 11 Oct 2018 19:04:52 +0000 Subject: [PATCH 33/35] Update account_payment_purchase.pot --- .../i18n/account_payment_purchase.pot | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/account_payment_purchase/i18n/account_payment_purchase.pot b/account_payment_purchase/i18n/account_payment_purchase.pot index df809223d..d4cbc434c 100644 --- a/account_payment_purchase/i18n/account_payment_purchase.pot +++ b/account_payment_purchase/i18n/account_payment_purchase.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 10.0\n" +"Project-Id-Version: Odoo Server 11.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: <>\n" "Language-Team: \n" @@ -24,8 +24,8 @@ msgid "Payment Mode" msgstr "" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +msgid "Procurement Rule" msgstr "" #. module: account_payment_purchase @@ -39,7 +39,7 @@ msgid "Select the bank account of your supplier on which your company should sen msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" @@ -56,7 +56,7 @@ msgid "Supplier Bank Account" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" From 309e10532ab22969ac220b2de3868e82f421f25b Mon Sep 17 00:00:00 2001 From: OCA Transbot Date: Fri, 23 Nov 2018 20:12:18 +0000 Subject: [PATCH 34/35] Update translation files Updated by Update PO files to match POT (msgmerge) hook in Weblate. --- account_payment_purchase/i18n/ar.po | 8 ++++---- account_payment_purchase/i18n/bg.po | 8 ++++---- account_payment_purchase/i18n/bs.po | 8 ++++---- account_payment_purchase/i18n/ca.po | 8 ++++---- account_payment_purchase/i18n/cs.po | 8 ++++---- account_payment_purchase/i18n/cs_CZ.po | 8 ++++---- account_payment_purchase/i18n/de.po | 9 +++++---- account_payment_purchase/i18n/el_GR.po | 8 ++++---- account_payment_purchase/i18n/en_GB.po | 8 ++++---- account_payment_purchase/i18n/es.po | 9 +++++---- account_payment_purchase/i18n/es_CR.po | 8 ++++---- account_payment_purchase/i18n/es_EC.po | 8 ++++---- account_payment_purchase/i18n/es_MX.po | 9 +++++---- account_payment_purchase/i18n/es_PE.po | 8 ++++---- account_payment_purchase/i18n/et.po | 8 ++++---- account_payment_purchase/i18n/eu.po | 8 ++++---- account_payment_purchase/i18n/fi.po | 8 ++++---- account_payment_purchase/i18n/fr.po | 9 +++++---- account_payment_purchase/i18n/fr_CA.po | 8 ++++---- account_payment_purchase/i18n/fr_CH.po | 8 ++++---- account_payment_purchase/i18n/fr_FR.po | 8 ++++---- account_payment_purchase/i18n/gl.po | 8 ++++---- account_payment_purchase/i18n/hr.po | 9 +++++---- account_payment_purchase/i18n/hr_HR.po | 8 ++++---- account_payment_purchase/i18n/hu.po | 8 ++++---- account_payment_purchase/i18n/id.po | 8 ++++---- account_payment_purchase/i18n/it.po | 9 +++++---- account_payment_purchase/i18n/ja.po | 8 ++++---- account_payment_purchase/i18n/lt.po | 8 ++++---- account_payment_purchase/i18n/mk.po | 8 ++++---- account_payment_purchase/i18n/mn.po | 8 ++++---- account_payment_purchase/i18n/nb.po | 8 ++++---- account_payment_purchase/i18n/nb_NO.po | 8 ++++---- account_payment_purchase/i18n/nl.po | 8 ++++---- account_payment_purchase/i18n/nl_BE.po | 8 ++++---- account_payment_purchase/i18n/nl_NL.po | 13 +++++++------ account_payment_purchase/i18n/pl.po | 8 ++++---- account_payment_purchase/i18n/pt.po | 8 ++++---- account_payment_purchase/i18n/pt_BR.po | 9 +++++---- account_payment_purchase/i18n/pt_PT.po | 9 +++++---- account_payment_purchase/i18n/ro.po | 9 +++++---- account_payment_purchase/i18n/ru.po | 8 ++++---- account_payment_purchase/i18n/sk.po | 9 +++++---- account_payment_purchase/i18n/sk_SK.po | 8 ++++---- account_payment_purchase/i18n/sl.po | 9 +++++---- account_payment_purchase/i18n/sv.po | 8 ++++---- account_payment_purchase/i18n/th.po | 8 ++++---- account_payment_purchase/i18n/tr.po | 8 ++++---- account_payment_purchase/i18n/tr_TR.po | 9 +++++---- account_payment_purchase/i18n/vi_VN.po | 9 +++++---- account_payment_purchase/i18n/zh_CN.po | 9 +++++---- account_payment_purchase/i18n/zh_TW.po | 8 ++++---- 52 files changed, 225 insertions(+), 210 deletions(-) diff --git a/account_payment_purchase/i18n/ar.po b/account_payment_purchase/i18n/ar.po index 936bbc97b..adb26f0f7 100644 --- a/account_payment_purchase/i18n/ar.po +++ b/account_payment_purchase/i18n/ar.po @@ -30,8 +30,8 @@ msgid "Payment Mode" msgstr "" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +msgid "Procurement Rule" msgstr "" #. module: account_payment_purchase @@ -48,7 +48,7 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" @@ -65,7 +65,7 @@ msgid "Supplier Bank Account" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/i18n/bg.po b/account_payment_purchase/i18n/bg.po index 7e23789c2..e5c926a5f 100644 --- a/account_payment_purchase/i18n/bg.po +++ b/account_payment_purchase/i18n/bg.po @@ -29,8 +29,8 @@ msgid "Payment Mode" msgstr "" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +msgid "Procurement Rule" msgstr "" #. module: account_payment_purchase @@ -47,7 +47,7 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" @@ -64,7 +64,7 @@ msgid "Supplier Bank Account" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/i18n/bs.po b/account_payment_purchase/i18n/bs.po index a9a2a3688..89546ea18 100644 --- a/account_payment_purchase/i18n/bs.po +++ b/account_payment_purchase/i18n/bs.po @@ -30,8 +30,8 @@ msgid "Payment Mode" msgstr "" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +msgid "Procurement Rule" msgstr "" #. module: account_payment_purchase @@ -48,7 +48,7 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" @@ -65,7 +65,7 @@ msgid "Supplier Bank Account" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/i18n/ca.po b/account_payment_purchase/i18n/ca.po index 4fd40a3a7..6f8c620ea 100644 --- a/account_payment_purchase/i18n/ca.po +++ b/account_payment_purchase/i18n/ca.po @@ -30,8 +30,8 @@ msgid "Payment Mode" msgstr "Forma de pagament " #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +msgid "Procurement Rule" msgstr "" #. module: account_payment_purchase @@ -48,7 +48,7 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" @@ -65,7 +65,7 @@ msgid "Supplier Bank Account" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/i18n/cs.po b/account_payment_purchase/i18n/cs.po index 0ab7683b6..c9425f06e 100644 --- a/account_payment_purchase/i18n/cs.po +++ b/account_payment_purchase/i18n/cs.po @@ -29,8 +29,8 @@ msgid "Payment Mode" msgstr "" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +msgid "Procurement Rule" msgstr "" #. module: account_payment_purchase @@ -47,7 +47,7 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" @@ -64,7 +64,7 @@ msgid "Supplier Bank Account" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/i18n/cs_CZ.po b/account_payment_purchase/i18n/cs_CZ.po index a25a3ecce..cfc535723 100644 --- a/account_payment_purchase/i18n/cs_CZ.po +++ b/account_payment_purchase/i18n/cs_CZ.po @@ -31,8 +31,8 @@ msgid "Payment Mode" msgstr "" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +msgid "Procurement Rule" msgstr "" #. module: account_payment_purchase @@ -49,7 +49,7 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" @@ -66,7 +66,7 @@ msgid "Supplier Bank Account" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/i18n/de.po b/account_payment_purchase/i18n/de.po index 7a681cfed..911dac0c5 100644 --- a/account_payment_purchase/i18n/de.po +++ b/account_payment_purchase/i18n/de.po @@ -30,8 +30,9 @@ msgid "Payment Mode" msgstr "Zahlweise" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +#, fuzzy +msgid "Procurement Rule" msgstr "Beschaffung" #. module: account_payment_purchase @@ -51,7 +52,7 @@ msgstr "" "Rechnung übertragen." #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" @@ -68,7 +69,7 @@ msgid "Supplier Bank Account" msgstr "Lieferanten-Bankkonto" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/i18n/el_GR.po b/account_payment_purchase/i18n/el_GR.po index d7a8b1d9d..649b30197 100644 --- a/account_payment_purchase/i18n/el_GR.po +++ b/account_payment_purchase/i18n/el_GR.po @@ -31,8 +31,8 @@ msgid "Payment Mode" msgstr "" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +msgid "Procurement Rule" msgstr "" #. module: account_payment_purchase @@ -49,7 +49,7 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" @@ -66,7 +66,7 @@ msgid "Supplier Bank Account" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/i18n/en_GB.po b/account_payment_purchase/i18n/en_GB.po index e05692947..2a2749b77 100644 --- a/account_payment_purchase/i18n/en_GB.po +++ b/account_payment_purchase/i18n/en_GB.po @@ -30,8 +30,8 @@ msgid "Payment Mode" msgstr "" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +msgid "Procurement Rule" msgstr "" #. module: account_payment_purchase @@ -48,7 +48,7 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" @@ -65,7 +65,7 @@ msgid "Supplier Bank Account" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/i18n/es.po b/account_payment_purchase/i18n/es.po index 020da7a1d..ed9e5c21d 100644 --- a/account_payment_purchase/i18n/es.po +++ b/account_payment_purchase/i18n/es.po @@ -30,8 +30,9 @@ msgid "Payment Mode" msgstr "Modo de pago" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +#, fuzzy +msgid "Procurement Rule" msgstr "Abastecimiento" #. module: account_payment_purchase @@ -51,7 +52,7 @@ msgstr "" "trasladará a la factura de proveedor." #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "El pedido de compra tiene diferente modo de pago." @@ -68,7 +69,7 @@ msgid "Supplier Bank Account" msgstr "Cuenta bancaria del proveedor" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/i18n/es_CR.po b/account_payment_purchase/i18n/es_CR.po index 918d4c166..fbdc28616 100644 --- a/account_payment_purchase/i18n/es_CR.po +++ b/account_payment_purchase/i18n/es_CR.po @@ -30,8 +30,8 @@ msgid "Payment Mode" msgstr "" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +msgid "Procurement Rule" msgstr "" #. module: account_payment_purchase @@ -48,7 +48,7 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" @@ -65,7 +65,7 @@ msgid "Supplier Bank Account" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/i18n/es_EC.po b/account_payment_purchase/i18n/es_EC.po index 387c11004..c76bc10af 100644 --- a/account_payment_purchase/i18n/es_EC.po +++ b/account_payment_purchase/i18n/es_EC.po @@ -30,8 +30,8 @@ msgid "Payment Mode" msgstr "" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +msgid "Procurement Rule" msgstr "" #. module: account_payment_purchase @@ -48,7 +48,7 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" @@ -65,7 +65,7 @@ msgid "Supplier Bank Account" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/i18n/es_MX.po b/account_payment_purchase/i18n/es_MX.po index 2d60fec35..dacf1223a 100644 --- a/account_payment_purchase/i18n/es_MX.po +++ b/account_payment_purchase/i18n/es_MX.po @@ -30,8 +30,9 @@ msgid "Payment Mode" msgstr "" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +#, fuzzy +msgid "Procurement Rule" msgstr "Contratación" #. module: account_payment_purchase @@ -48,7 +49,7 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" @@ -65,7 +66,7 @@ msgid "Supplier Bank Account" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/i18n/es_PE.po b/account_payment_purchase/i18n/es_PE.po index 614ef398b..55622cd83 100644 --- a/account_payment_purchase/i18n/es_PE.po +++ b/account_payment_purchase/i18n/es_PE.po @@ -30,8 +30,8 @@ msgid "Payment Mode" msgstr "" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +msgid "Procurement Rule" msgstr "" #. module: account_payment_purchase @@ -48,7 +48,7 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" @@ -65,7 +65,7 @@ msgid "Supplier Bank Account" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/i18n/et.po b/account_payment_purchase/i18n/et.po index c9d00e420..8e8e04330 100644 --- a/account_payment_purchase/i18n/et.po +++ b/account_payment_purchase/i18n/et.po @@ -29,8 +29,8 @@ msgid "Payment Mode" msgstr "" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +msgid "Procurement Rule" msgstr "" #. module: account_payment_purchase @@ -47,7 +47,7 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" @@ -64,7 +64,7 @@ msgid "Supplier Bank Account" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/i18n/eu.po b/account_payment_purchase/i18n/eu.po index 7d801c0d8..34ff52b8f 100644 --- a/account_payment_purchase/i18n/eu.po +++ b/account_payment_purchase/i18n/eu.po @@ -29,8 +29,8 @@ msgid "Payment Mode" msgstr "" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +msgid "Procurement Rule" msgstr "" #. module: account_payment_purchase @@ -47,7 +47,7 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" @@ -64,7 +64,7 @@ msgid "Supplier Bank Account" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/i18n/fi.po b/account_payment_purchase/i18n/fi.po index 542c4bb17..f9edc7da2 100644 --- a/account_payment_purchase/i18n/fi.po +++ b/account_payment_purchase/i18n/fi.po @@ -30,8 +30,8 @@ msgid "Payment Mode" msgstr "Maksutapa" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +msgid "Procurement Rule" msgstr "" #. module: account_payment_purchase @@ -48,7 +48,7 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" @@ -65,7 +65,7 @@ msgid "Supplier Bank Account" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/i18n/fr.po b/account_payment_purchase/i18n/fr.po index 0bc0fce18..6c7d85e8b 100644 --- a/account_payment_purchase/i18n/fr.po +++ b/account_payment_purchase/i18n/fr.po @@ -30,8 +30,9 @@ msgid "Payment Mode" msgstr "Mode de paiement" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +#, fuzzy +msgid "Procurement Rule" msgstr "Procurement" #. module: account_payment_purchase @@ -51,7 +52,7 @@ msgstr "" "sera recopié sur la facture fournisseur." #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "Le bon de commande sélectionné a un mode de paiement différente." @@ -68,7 +69,7 @@ msgid "Supplier Bank Account" msgstr "Compte bancaire du fournisseur" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/i18n/fr_CA.po b/account_payment_purchase/i18n/fr_CA.po index 651b00d72..47513e3b4 100644 --- a/account_payment_purchase/i18n/fr_CA.po +++ b/account_payment_purchase/i18n/fr_CA.po @@ -30,8 +30,8 @@ msgid "Payment Mode" msgstr "" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +msgid "Procurement Rule" msgstr "" #. module: account_payment_purchase @@ -48,7 +48,7 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" @@ -65,7 +65,7 @@ msgid "Supplier Bank Account" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/i18n/fr_CH.po b/account_payment_purchase/i18n/fr_CH.po index 3450a234f..f62b4a22d 100644 --- a/account_payment_purchase/i18n/fr_CH.po +++ b/account_payment_purchase/i18n/fr_CH.po @@ -30,8 +30,8 @@ msgid "Payment Mode" msgstr "" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +msgid "Procurement Rule" msgstr "" #. module: account_payment_purchase @@ -48,7 +48,7 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" @@ -65,7 +65,7 @@ msgid "Supplier Bank Account" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/i18n/fr_FR.po b/account_payment_purchase/i18n/fr_FR.po index 4bd77d067..2612ea30e 100644 --- a/account_payment_purchase/i18n/fr_FR.po +++ b/account_payment_purchase/i18n/fr_FR.po @@ -29,8 +29,8 @@ msgid "Payment Mode" msgstr "" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +msgid "Procurement Rule" msgstr "" #. module: account_payment_purchase @@ -47,7 +47,7 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" @@ -64,7 +64,7 @@ msgid "Supplier Bank Account" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/i18n/gl.po b/account_payment_purchase/i18n/gl.po index 297307bc7..584e7b8a3 100644 --- a/account_payment_purchase/i18n/gl.po +++ b/account_payment_purchase/i18n/gl.po @@ -30,8 +30,8 @@ msgid "Payment Mode" msgstr "Modo de pagamento" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +msgid "Procurement Rule" msgstr "" #. module: account_payment_purchase @@ -48,7 +48,7 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" @@ -65,7 +65,7 @@ msgid "Supplier Bank Account" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/i18n/hr.po b/account_payment_purchase/i18n/hr.po index ed92eab9f..37d084195 100644 --- a/account_payment_purchase/i18n/hr.po +++ b/account_payment_purchase/i18n/hr.po @@ -30,8 +30,9 @@ msgid "Payment Mode" msgstr "" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +#, fuzzy +msgid "Procurement Rule" msgstr "Nabava" #. module: account_payment_purchase @@ -48,7 +49,7 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" @@ -65,7 +66,7 @@ msgid "Supplier Bank Account" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/i18n/hr_HR.po b/account_payment_purchase/i18n/hr_HR.po index 5f4aea4ed..d66097e05 100644 --- a/account_payment_purchase/i18n/hr_HR.po +++ b/account_payment_purchase/i18n/hr_HR.po @@ -31,8 +31,8 @@ msgid "Payment Mode" msgstr "" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +msgid "Procurement Rule" msgstr "" #. module: account_payment_purchase @@ -49,7 +49,7 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" @@ -66,7 +66,7 @@ msgid "Supplier Bank Account" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/i18n/hu.po b/account_payment_purchase/i18n/hu.po index 71541d21f..14f9b9252 100644 --- a/account_payment_purchase/i18n/hu.po +++ b/account_payment_purchase/i18n/hu.po @@ -29,8 +29,8 @@ msgid "Payment Mode" msgstr "" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +msgid "Procurement Rule" msgstr "" #. module: account_payment_purchase @@ -47,7 +47,7 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" @@ -64,7 +64,7 @@ msgid "Supplier Bank Account" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/i18n/id.po b/account_payment_purchase/i18n/id.po index 4177202c4..10eadd7c3 100644 --- a/account_payment_purchase/i18n/id.po +++ b/account_payment_purchase/i18n/id.po @@ -29,8 +29,8 @@ msgid "Payment Mode" msgstr "" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +msgid "Procurement Rule" msgstr "" #. module: account_payment_purchase @@ -47,7 +47,7 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" @@ -64,7 +64,7 @@ msgid "Supplier Bank Account" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/i18n/it.po b/account_payment_purchase/i18n/it.po index 825190bca..c5c158f6f 100644 --- a/account_payment_purchase/i18n/it.po +++ b/account_payment_purchase/i18n/it.po @@ -29,8 +29,9 @@ msgid "Payment Mode" msgstr "Modo di pagamento" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +#, fuzzy +msgid "Procurement Rule" msgstr "Approvvigionamento" #. module: account_payment_purchase @@ -47,7 +48,7 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" @@ -64,7 +65,7 @@ msgid "Supplier Bank Account" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/i18n/ja.po b/account_payment_purchase/i18n/ja.po index 39d8b2706..7a09a0a5a 100644 --- a/account_payment_purchase/i18n/ja.po +++ b/account_payment_purchase/i18n/ja.po @@ -29,8 +29,8 @@ msgid "Payment Mode" msgstr "" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +msgid "Procurement Rule" msgstr "" #. module: account_payment_purchase @@ -47,7 +47,7 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" @@ -64,7 +64,7 @@ msgid "Supplier Bank Account" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/i18n/lt.po b/account_payment_purchase/i18n/lt.po index 65e5d469d..f6ceef838 100644 --- a/account_payment_purchase/i18n/lt.po +++ b/account_payment_purchase/i18n/lt.po @@ -30,8 +30,8 @@ msgid "Payment Mode" msgstr "" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +msgid "Procurement Rule" msgstr "" #. module: account_payment_purchase @@ -48,7 +48,7 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" @@ -65,7 +65,7 @@ msgid "Supplier Bank Account" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/i18n/mk.po b/account_payment_purchase/i18n/mk.po index 222f2b6fd..b09b267db 100644 --- a/account_payment_purchase/i18n/mk.po +++ b/account_payment_purchase/i18n/mk.po @@ -29,8 +29,8 @@ msgid "Payment Mode" msgstr "" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +msgid "Procurement Rule" msgstr "" #. module: account_payment_purchase @@ -47,7 +47,7 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" @@ -64,7 +64,7 @@ msgid "Supplier Bank Account" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/i18n/mn.po b/account_payment_purchase/i18n/mn.po index 9c560e4b3..48965f45d 100644 --- a/account_payment_purchase/i18n/mn.po +++ b/account_payment_purchase/i18n/mn.po @@ -29,8 +29,8 @@ msgid "Payment Mode" msgstr "" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +msgid "Procurement Rule" msgstr "" #. module: account_payment_purchase @@ -47,7 +47,7 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" @@ -64,7 +64,7 @@ msgid "Supplier Bank Account" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/i18n/nb.po b/account_payment_purchase/i18n/nb.po index 68c30f127..a04deb089 100644 --- a/account_payment_purchase/i18n/nb.po +++ b/account_payment_purchase/i18n/nb.po @@ -30,8 +30,8 @@ msgid "Payment Mode" msgstr "" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +msgid "Procurement Rule" msgstr "" #. module: account_payment_purchase @@ -48,7 +48,7 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" @@ -65,7 +65,7 @@ msgid "Supplier Bank Account" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/i18n/nb_NO.po b/account_payment_purchase/i18n/nb_NO.po index 50c21d58f..cd5bf85e6 100644 --- a/account_payment_purchase/i18n/nb_NO.po +++ b/account_payment_purchase/i18n/nb_NO.po @@ -30,8 +30,8 @@ msgid "Payment Mode" msgstr "" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +msgid "Procurement Rule" msgstr "" #. module: account_payment_purchase @@ -48,7 +48,7 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" @@ -65,7 +65,7 @@ msgid "Supplier Bank Account" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/i18n/nl.po b/account_payment_purchase/i18n/nl.po index 408bf2461..3caaee4de 100644 --- a/account_payment_purchase/i18n/nl.po +++ b/account_payment_purchase/i18n/nl.po @@ -29,8 +29,8 @@ msgid "Payment Mode" msgstr "Betaalwijze" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +msgid "Procurement Rule" msgstr "" #. module: account_payment_purchase @@ -50,7 +50,7 @@ msgstr "" "gekopieerd naar de inkoopfactuur." #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" @@ -67,7 +67,7 @@ msgid "Supplier Bank Account" msgstr "Bankrekening leverancier" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/i18n/nl_BE.po b/account_payment_purchase/i18n/nl_BE.po index ec741fc0e..4703bad0d 100644 --- a/account_payment_purchase/i18n/nl_BE.po +++ b/account_payment_purchase/i18n/nl_BE.po @@ -30,8 +30,8 @@ msgid "Payment Mode" msgstr "" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +msgid "Procurement Rule" msgstr "" #. module: account_payment_purchase @@ -48,7 +48,7 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" @@ -65,7 +65,7 @@ msgid "Supplier Bank Account" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/i18n/nl_NL.po b/account_payment_purchase/i18n/nl_NL.po index 1e049efba..917a94cc8 100644 --- a/account_payment_purchase/i18n/nl_NL.po +++ b/account_payment_purchase/i18n/nl_NL.po @@ -11,8 +11,8 @@ msgstr "" "POT-Creation-Date: 2017-08-12 00:34+0000\n" "PO-Revision-Date: 2018-07-17 19:53+0000\n" "Last-Translator: Thomas Pot \n" -"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/teams/" -"23907/nl_NL/)\n" +"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/" +"teams/23907/nl_NL/)\n" "Language: nl_NL\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -31,8 +31,9 @@ msgid "Payment Mode" msgstr "Betaalwijze" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +#, fuzzy +msgid "Procurement Rule" msgstr "Verwerving" #. module: account_payment_purchase @@ -52,7 +53,7 @@ msgstr "" "leveranciersfactuur." #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "Geselecteerde inkooporders hebben verschillende betaalwijzen." @@ -69,7 +70,7 @@ msgid "Supplier Bank Account" msgstr "Bankrekening leverancier" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/i18n/pl.po b/account_payment_purchase/i18n/pl.po index 6aff7501e..7155ec5ad 100644 --- a/account_payment_purchase/i18n/pl.po +++ b/account_payment_purchase/i18n/pl.po @@ -31,8 +31,8 @@ msgid "Payment Mode" msgstr "" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +msgid "Procurement Rule" msgstr "" #. module: account_payment_purchase @@ -49,7 +49,7 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" @@ -66,7 +66,7 @@ msgid "Supplier Bank Account" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/i18n/pt.po b/account_payment_purchase/i18n/pt.po index 7036a6b8d..c0e554e5a 100644 --- a/account_payment_purchase/i18n/pt.po +++ b/account_payment_purchase/i18n/pt.po @@ -30,8 +30,8 @@ msgid "Payment Mode" msgstr "" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +msgid "Procurement Rule" msgstr "" #. module: account_payment_purchase @@ -48,7 +48,7 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" @@ -65,7 +65,7 @@ msgid "Supplier Bank Account" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/i18n/pt_BR.po b/account_payment_purchase/i18n/pt_BR.po index 3cec35d92..87488e27e 100644 --- a/account_payment_purchase/i18n/pt_BR.po +++ b/account_payment_purchase/i18n/pt_BR.po @@ -31,8 +31,9 @@ msgid "Payment Mode" msgstr "Modo de Pagamento" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +#, fuzzy +msgid "Procurement Rule" msgstr "Aprovisionamento" #. module: account_payment_purchase @@ -52,7 +53,7 @@ msgstr "" "fatura do fornecedor." #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" @@ -69,7 +70,7 @@ msgid "Supplier Bank Account" msgstr "Conta Bancária do Fornecedor" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/i18n/pt_PT.po b/account_payment_purchase/i18n/pt_PT.po index 8c88806ec..00e6135f0 100644 --- a/account_payment_purchase/i18n/pt_PT.po +++ b/account_payment_purchase/i18n/pt_PT.po @@ -31,8 +31,9 @@ msgid "Payment Mode" msgstr "" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +#, fuzzy +msgid "Procurement Rule" msgstr "Aquisições" #. module: account_payment_purchase @@ -49,7 +50,7 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" @@ -66,7 +67,7 @@ msgid "Supplier Bank Account" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/i18n/ro.po b/account_payment_purchase/i18n/ro.po index a729e5e4b..20642c017 100644 --- a/account_payment_purchase/i18n/ro.po +++ b/account_payment_purchase/i18n/ro.po @@ -31,8 +31,9 @@ msgid "Payment Mode" msgstr "" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +#, fuzzy +msgid "Procurement Rule" msgstr "Aprovizionare" #. module: account_payment_purchase @@ -49,7 +50,7 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" @@ -66,7 +67,7 @@ msgid "Supplier Bank Account" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/i18n/ru.po b/account_payment_purchase/i18n/ru.po index 9d6c9a56a..c05daf5a6 100644 --- a/account_payment_purchase/i18n/ru.po +++ b/account_payment_purchase/i18n/ru.po @@ -31,8 +31,8 @@ msgid "Payment Mode" msgstr "" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +msgid "Procurement Rule" msgstr "" #. module: account_payment_purchase @@ -49,7 +49,7 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" @@ -66,7 +66,7 @@ msgid "Supplier Bank Account" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/i18n/sk.po b/account_payment_purchase/i18n/sk.po index a3e558986..40b5611fd 100644 --- a/account_payment_purchase/i18n/sk.po +++ b/account_payment_purchase/i18n/sk.po @@ -29,8 +29,9 @@ msgid "Payment Mode" msgstr "" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +#, fuzzy +msgid "Procurement Rule" msgstr "Obstarávanie" #. module: account_payment_purchase @@ -47,7 +48,7 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" @@ -64,7 +65,7 @@ msgid "Supplier Bank Account" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/i18n/sk_SK.po b/account_payment_purchase/i18n/sk_SK.po index 2014643e2..1611ef707 100644 --- a/account_payment_purchase/i18n/sk_SK.po +++ b/account_payment_purchase/i18n/sk_SK.po @@ -30,8 +30,8 @@ msgid "Payment Mode" msgstr "" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +msgid "Procurement Rule" msgstr "" #. module: account_payment_purchase @@ -48,7 +48,7 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" @@ -65,7 +65,7 @@ msgid "Supplier Bank Account" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/i18n/sl.po b/account_payment_purchase/i18n/sl.po index c56e636a5..1b01daf6a 100644 --- a/account_payment_purchase/i18n/sl.po +++ b/account_payment_purchase/i18n/sl.po @@ -31,8 +31,9 @@ msgid "Payment Mode" msgstr "Metoda plačila" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +#, fuzzy +msgid "Procurement Rule" msgstr "Oskrbovanje" #. module: account_payment_purchase @@ -51,7 +52,7 @@ msgstr "" "nakazilo. To polje se kopira iz partnerja in bo kopirano na prejeti račun." #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" @@ -68,7 +69,7 @@ msgid "Supplier Bank Account" msgstr "Bančni račun dobavitelja" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/i18n/sv.po b/account_payment_purchase/i18n/sv.po index 36e91394f..5d4b1149e 100644 --- a/account_payment_purchase/i18n/sv.po +++ b/account_payment_purchase/i18n/sv.po @@ -29,8 +29,8 @@ msgid "Payment Mode" msgstr "" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +msgid "Procurement Rule" msgstr "" #. module: account_payment_purchase @@ -47,7 +47,7 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" @@ -64,7 +64,7 @@ msgid "Supplier Bank Account" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/i18n/th.po b/account_payment_purchase/i18n/th.po index eaf3a50cb..255b81d1f 100644 --- a/account_payment_purchase/i18n/th.po +++ b/account_payment_purchase/i18n/th.po @@ -29,8 +29,8 @@ msgid "Payment Mode" msgstr "" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +msgid "Procurement Rule" msgstr "" #. module: account_payment_purchase @@ -47,7 +47,7 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" @@ -64,7 +64,7 @@ msgid "Supplier Bank Account" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/i18n/tr.po b/account_payment_purchase/i18n/tr.po index 313c6bb1a..8b1899020 100644 --- a/account_payment_purchase/i18n/tr.po +++ b/account_payment_purchase/i18n/tr.po @@ -30,8 +30,8 @@ msgid "Payment Mode" msgstr "" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +msgid "Procurement Rule" msgstr "" #. module: account_payment_purchase @@ -48,7 +48,7 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" @@ -65,7 +65,7 @@ msgid "Supplier Bank Account" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/i18n/tr_TR.po b/account_payment_purchase/i18n/tr_TR.po index e89927a1d..aab0e5547 100644 --- a/account_payment_purchase/i18n/tr_TR.po +++ b/account_payment_purchase/i18n/tr_TR.po @@ -30,8 +30,9 @@ msgid "Payment Mode" msgstr "" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +#, fuzzy +msgid "Procurement Rule" msgstr "Satın alma" #. module: account_payment_purchase @@ -48,7 +49,7 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" @@ -65,7 +66,7 @@ msgid "Supplier Bank Account" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/i18n/vi_VN.po b/account_payment_purchase/i18n/vi_VN.po index ec8175c83..048169b9b 100644 --- a/account_payment_purchase/i18n/vi_VN.po +++ b/account_payment_purchase/i18n/vi_VN.po @@ -30,8 +30,9 @@ msgid "Payment Mode" msgstr "" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +#, fuzzy +msgid "Procurement Rule" msgstr "Mua sắm / Cung ứng" #. module: account_payment_purchase @@ -48,7 +49,7 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" @@ -65,7 +66,7 @@ msgid "Supplier Bank Account" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/i18n/zh_CN.po b/account_payment_purchase/i18n/zh_CN.po index 7563a10ba..5ec201e09 100644 --- a/account_payment_purchase/i18n/zh_CN.po +++ b/account_payment_purchase/i18n/zh_CN.po @@ -31,8 +31,9 @@ msgid "Payment Mode" msgstr "支付方式" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +#, fuzzy +msgid "Procurement Rule" msgstr "补货" #. module: account_payment_purchase @@ -49,7 +50,7 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" @@ -66,7 +67,7 @@ msgid "Supplier Bank Account" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/i18n/zh_TW.po b/account_payment_purchase/i18n/zh_TW.po index 5e49cdb10..9f1db0a1b 100644 --- a/account_payment_purchase/i18n/zh_TW.po +++ b/account_payment_purchase/i18n/zh_TW.po @@ -30,8 +30,8 @@ msgid "Payment Mode" msgstr "" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_procurement_order -msgid "Procurement" +#: model:ir.model,name:account_payment_purchase.model_procurement_rule +msgid "Procurement Rule" msgstr "" #. module: account_payment_purchase @@ -48,7 +48,7 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:20 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" @@ -65,7 +65,7 @@ msgid "Supplier Bank Account" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" From e5c1a548daa656350ef2297e3520bc2d5e8de67c Mon Sep 17 00:00:00 2001 From: Nikul-Chaudhary Date: Sat, 19 Jan 2019 16:55:49 +0530 Subject: [PATCH 35/35] [MIG] account_payment_purchase v11 to v12 --- account_payment_purchase/README.rst | 2 + account_payment_purchase/__manifest__.py | 6 +-- account_payment_purchase/models/__init__.py | 3 +- .../{procurement_rule.py => stock_rule.py} | 6 +-- .../readme/CONTRIBUTORS.rst | 2 + account_payment_purchase/tests/__init__.py | 1 - .../tests/test_account_payment_purchase.py | 42 ++++++++++--------- 7 files changed, 34 insertions(+), 28 deletions(-) rename account_payment_purchase/models/{procurement_rule.py => stock_rule.py} (84%) diff --git a/account_payment_purchase/README.rst b/account_payment_purchase/README.rst index 140059f7a..5d4c8f2ba 100644 --- a/account_payment_purchase/README.rst +++ b/account_payment_purchase/README.rst @@ -95,6 +95,8 @@ Contributors * Pedro M. Baeza * Vicent Cubells +* Nikul Chaudhary + Maintainers ~~~~~~~~~~~ diff --git a/account_payment_purchase/__manifest__.py b/account_payment_purchase/__manifest__.py index 0cb237613..83e6bd9a5 100644 --- a/account_payment_purchase/__manifest__.py +++ b/account_payment_purchase/__manifest__.py @@ -4,7 +4,7 @@ { 'name': 'Account Payment Purchase', - 'version': '11.0.1.0.0', + 'version': '12.0.1.0.0', 'category': 'Banking addons', 'license': 'AGPL-3', 'summary': "Adds Bank Account and Payment Mode on Purchase Orders", @@ -13,8 +13,8 @@ "Odoo Community Association (OCA)", 'website': 'https://github.com/OCA/bank-payment', 'depends': [ - 'purchase', - 'account_payment_partner' + 'account_payment_partner', + 'purchase_stock', ], 'data': [ 'views/purchase_order_view.xml', diff --git a/account_payment_purchase/models/__init__.py b/account_payment_purchase/models/__init__.py index 8c3bb2f57..5488e5828 100644 --- a/account_payment_purchase/models/__init__.py +++ b/account_payment_purchase/models/__init__.py @@ -1,6 +1,5 @@ -# Copyright 2016 Akretion (). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from . import account_invoice from . import purchase_order -from . import procurement_rule +from . import stock_rule diff --git a/account_payment_purchase/models/procurement_rule.py b/account_payment_purchase/models/stock_rule.py similarity index 84% rename from account_payment_purchase/models/procurement_rule.py rename to account_payment_purchase/models/stock_rule.py index a94adf3d4..07701cd09 100644 --- a/account_payment_purchase/models/procurement_rule.py +++ b/account_payment_purchase/models/stock_rule.py @@ -4,13 +4,13 @@ from odoo import models -class ProcurementRule(models.Model): - _inherit = "procurement.rule" +class StockRule(models.Model): + _inherit = "stock.rule" def _prepare_purchase_order(self, product_id, product_qty, product_uom, origin, values, partner): """Propagate payment mode on MTO/drop shipping.""" - values = super(ProcurementRule, self)._prepare_purchase_order( + values = super(StockRule, self)._prepare_purchase_order( product_id, product_qty, product_uom, origin, values, partner) if partner: values['payment_mode_id'] = partner.with_context( diff --git a/account_payment_purchase/readme/CONTRIBUTORS.rst b/account_payment_purchase/readme/CONTRIBUTORS.rst index a4a055436..5121c0e9a 100644 --- a/account_payment_purchase/readme/CONTRIBUTORS.rst +++ b/account_payment_purchase/readme/CONTRIBUTORS.rst @@ -7,3 +7,5 @@ * Pedro M. Baeza * Vicent Cubells + +* Nikul Chaudhary diff --git a/account_payment_purchase/tests/__init__.py b/account_payment_purchase/tests/__init__.py index 172df56fa..578d2d96b 100644 --- a/account_payment_purchase/tests/__init__.py +++ b/account_payment_purchase/tests/__init__.py @@ -1,4 +1,3 @@ -# Copyright 2013-2015 Tecnativa - Pedro M. Baeza # License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html from . import test_account_payment_purchase diff --git a/account_payment_purchase/tests/test_account_payment_purchase.py b/account_payment_purchase/tests/test_account_payment_purchase.py index 2f28e48c4..8939c48aa 100644 --- a/account_payment_purchase/tests/test_account_payment_purchase.py +++ b/account_payment_purchase/tests/test_account_payment_purchase.py @@ -10,12 +10,6 @@ class TestAccountPaymentPurchase(common.SavepointCase): @classmethod def setUpClass(cls): super(TestAccountPaymentPurchase, cls).setUpClass() - cls.bank = cls.env['res.partner.bank'].create( - {'bank_name': 'Test bank', - 'acc_number': '1234567890'}) - cls.bank2 = cls.env['res.partner.bank'].create( - {'bank_name': 'Test bank #2', - 'acc_number': '0123456789'}) cls.journal = cls.env['account.journal'].create( {'name': 'Test journal', 'code': 'TEST', @@ -29,7 +23,17 @@ class TestAccountPaymentPurchase(common.SavepointCase): cls.partner = cls.env['res.partner'].create( {'name': 'Test partner', 'supplier_payment_mode_id': cls.payment_mode.id}) - cls.uom_id = cls.env.ref('product.product_uom_unit').id + cls.bank = cls.env['res.partner.bank'].create( + {'bank_name': 'Test bank', + 'acc_number': '1234567890', + 'partner_id': cls.partner.id, + }) + cls.bank2 = cls.env['res.partner.bank'].create( + {'bank_name': 'Test bank #2', + 'acc_number': '0123456789', + 'partner_id': cls.partner.id, + }) + cls.uom_id = cls.env.ref('uom.product_uom_unit').id cls.mto_product = cls.env['product.product'].create( {'name': 'Test buy product', 'type': 'product', @@ -53,9 +57,9 @@ class TestAccountPaymentPurchase(common.SavepointCase): def test_purchase_order_invoicing(self): self.purchase.button_confirm() picking = self.purchase.picking_ids[0] - picking.force_assign() + picking.action_confirm() picking.move_lines.write({'quantity_done': 1.0}) - picking.do_transfer() + picking.button_validate() invoice = self.env['account.invoice'].create({ 'partner_id': self.partner.id, @@ -74,9 +78,9 @@ class TestAccountPaymentPurchase(common.SavepointCase): self.purchase.order_line[0].product_id = stockable_product.id self.purchase.button_confirm() picking = self.purchase.picking_ids[0] - picking.force_assign() + picking.action_confirm() picking.move_lines.write({'quantity_done': 1.0}) - picking.do_transfer() + picking.button_validate() invoice = self.env['account.invoice'].create({ 'partner_id': self.partner.id, @@ -90,9 +94,9 @@ class TestAccountPaymentPurchase(common.SavepointCase): purchase2.payment_mode_id = payment_mode2.id purchase2.button_confirm() picking = purchase2.picking_ids[0] - picking.force_assign() + picking.action_confirm() picking.move_lines.write({'quantity_done': 1.0}) - picking.do_transfer() + picking.button_validate() invoice.purchase_id = purchase2.id result = invoice.purchase_order_change() self.assertEqual(result['warning']['title'], 'Warning') @@ -107,9 +111,9 @@ class TestAccountPaymentPurchase(common.SavepointCase): self.purchase.supplier_partner_bank_id = self.bank.id self.purchase.button_confirm() picking = self.purchase.picking_ids[0] - picking.force_assign() + picking.action_confirm() picking.move_lines.write({'quantity_done': 1.0}) - picking.do_transfer() + picking.button_validate() invoice = self.env['account.invoice'].create({ 'partner_id': self.partner.id, @@ -124,16 +128,16 @@ class TestAccountPaymentPurchase(common.SavepointCase): purchase2.supplier_partner_bank_id = self.bank2.id purchase2.button_confirm() picking = purchase2.picking_ids[0] - picking.force_assign() + picking.action_confirm() picking.move_lines.write({'quantity_done': 1.0}) - picking.do_transfer() + picking.button_validate() invoice.purchase_id = purchase2.id result = invoice.purchase_order_change() self.assertEqual(result['warning']['title'], 'Warning') def test_procurement_buy_payment_mode(self): - route = self.env.ref('purchase.route_warehouse0_buy') - rule = self.env['procurement.rule'].search( + route = self.env.ref('purchase_stock.route_warehouse0_buy') + rule = self.env['stock.rule'].search( [('route_id', '=', route.id)], limit=1) rule._run_buy( product_id=self.mto_product,