From da3c4ee3f18687e17cd4c7a76537b63c27157356 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Tue, 25 Feb 2014 00:19:57 +0100 Subject: [PATCH 01/45] 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 000000000000..59199014fc55 --- /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 000000000000..e2fc219eb0dc --- /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 000000000000..49f775a6e368 --- /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 000000000000..54d2b3b2a9b1 --- /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 000000000000..fe39c636609f --- /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 000000000000..639fdce6d8b3 --- /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 000000000000..e2f83663bb85 --- /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 000000000000..3875fefdae25 --- /dev/null +++ b/account_payment_purchase/view/purchase.xml @@ -0,0 +1,26 @@ + + + + + + + + + account_payment_purchase.purchase_order.form + purchase.order + + + + + + + + + + + From df5758fbad594492c0223c83a16bbdc97efc113e 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/45] 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 e2fc219eb0dc..76a89589b420 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 794886b749b6621e65653cd09a4cdf2e7ba59f50 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Tue, 10 Jun 2014 01:25:34 +0200 Subject: [PATCH 03/45] 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 76a89589b420..c8d28debbbee 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 49f775a6e368..17ed963d50c6 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 639fdce6d8b3..f397a6a618f4 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 @@ def onchange_partner_id(self, cr, uid, ids, partner_id): 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 @@ def action_invoice_create(self, cr, uid, ids, context=None): 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 3875fefdae25..f6b2cffeca68 100644 --- a/account_payment_purchase/view/purchase.xml +++ b/account_payment_purchase/view/purchase.xml @@ -15,8 +15,8 @@ - - + From 09e507a358e631b08804f0469beb43eb14a7bea4 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/45] 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 54d2b3b2a9b1..48596ceec9e1 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 0b08ee17ab726cd110d56366635fc5f33be5fae8 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/45] 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 000000000000..07115b8afab1 --- /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 9f1c8d372294984354af6b446db904b0347bd407 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Wed, 10 Sep 2014 12:19:20 +0200 Subject: [PATCH 06/45] 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 59199014fc55..000000000000 --- 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 c8d28debbbee..000000000000 --- 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 17ed963d50c6..000000000000 --- 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 48596ceec9e1..000000000000 --- 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 07115b8afab1..000000000000 --- 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 fe39c636609f..000000000000 --- 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 f397a6a618f4..000000000000 --- 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 e2f83663bb85..000000000000 --- 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 f6b2cffeca68..000000000000 --- a/account_payment_purchase/view/purchase.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - account_payment_purchase.purchase_order.form - purchase.order - - - - - - - - - - - From 6b1d85a90ff9e8547fcc4062a031e7a935ba32b2 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Wed, 10 Sep 2014 12:48:09 +0200 Subject: [PATCH 07/45] 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 000000000000..b21037b9fc8f --- /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 000000000000..e7c258f73ef4 --- /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 000000000000..17ed963d50c6 --- /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 000000000000..48596ceec9e1 --- /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 000000000000..07115b8afab1 --- /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 000000000000..fe39c636609f --- /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 000000000000..f397a6a618f4 --- /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 000000000000..e2f83663bb85 --- /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 000000000000..3d13bc0e4151 --- /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 000000000000..e1ca139ff7b4 --- /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 000000000000..2ab8c6073be5 --- /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 000000000000..f6b2cffeca68 --- /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 000000000000..0e25c175e740 --- /dev/null +++ b/account_payment_purchase/views/purchase_order_view.xml @@ -0,0 +1,25 @@ + + + + + + + + + account_payment_purchase.purchase_order.form + purchase.order + + + + + + + + + + + From 8352563a5d30259515f1857f4b45b857b1f0aff8 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Tue, 7 Oct 2014 00:09:26 +0200 Subject: [PATCH 08/45] 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 fe39c636609f..000000000000 --- 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 f397a6a618f4..000000000000 --- 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 e2f83663bb85..000000000000 --- 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 5b62e5310e376cf724599f1c05d7d0c669d53b0e Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Fri, 31 Oct 2014 23:54:24 +0100 Subject: [PATCH 09/45] 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 e7c258f73ef4..283d67477cf6 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 @@ 'contributors': ['Pedro M. Baeza '], 'depends': [ 'purchase', - 'stock_account', 'account_payment_partner' ], 'conflicts': ['purchase_payment'], @@ -52,5 +51,5 @@ '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 17ed963d50c6..000000000000 --- 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 e1ca139ff7b4..a8d73c235b9e 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 f6b2cffeca68..000000000000 --- a/account_payment_purchase/view/purchase.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - account_payment_purchase.purchase_order.form - purchase.order - - - - - - - - - - - From 29c2aca7d612cdf3a2f34c1078a3285a997431f7 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Sat, 1 Nov 2014 01:48:26 +0100 Subject: [PATCH 10/45] 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 000000000000..a00a36e87c1c --- /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 000000000000..b170125d9514 --- /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 88d729051ba3a505fbb3a4f935262e8c7cdd4ccc Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Fri, 7 Nov 2014 23:00:34 +0100 Subject: [PATCH 11/45] 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 a8d73c235b9e..26d08dd23f81 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 20ee1b94dec463f7a3ce87f6d031679150826724 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Mon, 19 Jan 2015 22:52:38 +0100 Subject: [PATCH 12/45] 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 0e25c175e740..ae5d62110aa5 100644 --- a/account_payment_purchase/views/purchase_order_view.xml +++ b/account_payment_purchase/views/purchase_order_view.xml @@ -15,7 +15,9 @@ - + From 125bae14b1063f8f08da06afda9b8228f8f9d2ea Mon Sep 17 00:00:00 2001 From: Danimar Ribeiro Date: Fri, 13 Feb 2015 19:18:41 -0200 Subject: [PATCH 13/45] 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 000000000000..2818e149ade7 --- /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 5e3b618a0b0ebddb998967595bc6657ac66e7559 Mon Sep 17 00:00:00 2001 From: Alexandre Fayolle Date: Mon, 2 Mar 2015 17:23:15 +0100 Subject: [PATCH 14/45] 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 283d67477cf6..52d588a05fa3 100644 --- a/account_payment_purchase/__openerp__.py +++ b/account_payment_purchase/__openerp__.py @@ -39,7 +39,7 @@ 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 216920b4235b34dc08eda838a8b1761eed8aea32 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Mon, 25 May 2015 17:14:05 +0200 Subject: [PATCH 15/45] 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 52d588a05fa3..056b789a296a 100644 --- a/account_payment_purchase/__openerp__.py +++ b/account_payment_purchase/__openerp__.py @@ -39,9 +39,10 @@ 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 50a8d2dd12ca0c13ea01582e4b0f48d135c588a3 Mon Sep 17 00:00:00 2001 From: Philippe Schmidt Date: Mon, 1 Jun 2015 17:10:58 +0200 Subject: [PATCH 16/45] 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 000000000000..d299f5b01dcd --- /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 056b789a296a..af6bd78332cc 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 f086d10be47a5f82ec6dd6d178823ecee123d953 Mon Sep 17 00:00:00 2001 From: Philippe Schmidt Date: Fri, 5 Jun 2015 12:31:00 +0200 Subject: [PATCH 17/45] 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 d299f5b01dcd..a6213ba2bffa 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 963aa7c64fb8c2ef00aaa4a5463930cc3457aea6 Mon Sep 17 00:00:00 2001 From: Yannick Vaucher Date: Tue, 18 Aug 2015 11:10:50 +0200 Subject: [PATCH 18/45] 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 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 z?n?eq1XP>p-IM$Z^C;2L3itnbJZAip*Zo0aw2bs8@(s^~*8T9go!%dHcAz2lM;`yp zD=7&xjFV$S&5uDaiScyD?B-i1ze`+CoRtz`Wn+Zl&#s4&}MO{@N!ufrzjG$B79)Y2d3tBk&)TxUTw@QS0TEL_?njX|@vq?Uz(nBFK5Pq7*xj#u*R&i|?7+6# z+|r_n#SW&LXhtheZdah{ZVoqwyT{D>MC3nkFF#N)xLi{p7J1jXlmVeb;cP5?e(=f# zuT7fvjSbjS781v?7{)-X3*?>tq?)Yd)~|1{BDS(pqC zC}~H#WXlkUW*H5CDOo<)#x7%RY)A;ShGhI5s*#cRDA8YgqG(HeKDx+#(ZQ?386dv! zlXCO)w91~Vw4AmOcATuV653fa9R$fyK8ul%rG z-wfS zihugoZyr38Im?Zuh6@RcF~t1anQu7>#lPpb#}4cOA!EM11`%f*07RqOVkmX{p~KJ9 z^zP;K#|)$`^Rb{rnHGH{~>1(fawV0*Z#)}M`m8-?ZJV<+e}s9wE# z)l&az?w^5{)`S(%MRzxdNqrs1n*-=jS^_jqE*5XDrA0+VE`5^*p3CuM<&dZEeCjoz zR;uu_H9ZPZV|fQq`Cyw4nscrVwi!fE6ciMmX$!_hN7uF;jjKG)d2@aC4ropY)8etW=xJvni)8eHi`H$%#zn^WJ5NLc-rqk|u&&4Z6fD_m&JfSI1Bvb?b<*n&sfl0^t z=HnmRl`XrFvMKB%9}>PaA`m-fK6a0(8=qPkWS5bb4=v?XcWi&hRY?O5HdulRi4?fN zlsJ*N-0Qw+Yic@s0(2uy%F@ib;GjXt01Fmx5XbRo6+n|pP(&nodMoap^z{~q ziEeaUT@Mxe3vJSfI6?uLND(CNr=#^W<1b}jzW58bIfyWTDle$mmS(|x-0|2UlX+9k zQ^EX7Nw}?EzVoBfT(-LT|=9N@^hcn-_p&sqG z&*oVs2JSU+N4ZD`FhCAWaS;>|wH2G*Id|?pa#@>tyxX`+4HyIArWDvVrX)2WAOQff z0qyHu&-S@i^MS-+j--!pr4fPBj~_8({~e1bfcl0wI1kaoN>mJL6KUPQm5N7lB(ui1 zE-o%kq)&djzWJ}ob<-GfDlkB;F31j-VHKvQUGQ3sp`CwyGJk_i!y^sD0fqC@$9|jO zOqN!r!8-p==F@ZVP=U$qSpY(gQ0)59P1&t@y?5rvg<}E+GB}26NYPp4f2YFQrQtot5mn3wu_qprZ=>Ig-$ zbW26Ws~IgY>}^5w`vTB(G`PTZaDiGBo5o(tp)qli|NeV( z@H_=R8V39rt5J5YB2Ky?4eJJ#b`_iBe2ot~6%7mLt5t8Vwi^Jy7|jWXqa3amOIoRb zOr}WVFP--DsS`1WpN%~)t3R!arKF^Q$e12KEqU36AWwnCBICpH4XCsfnyrHr>$I$4 z!DpKX$OKLWarN7nv@!uIA+~RNO)l$$w}p(;b>mx8pwYvu;dD_unryX_NhT8*Tj>BTrTTL&!?O+%Rv;b?B??gSzdp?6Uug9{ zd@V08Z$BdI?fpoCS$)t4mg4rT8Q_I}h`0d-vYZ^|dOB*Q^S|xqTV*vIg?@fVFSmMpaw0qtTRbx} z({Pg?#{2`sc9)M5N$*N|4;^t$+QP?#mov zGVC@I*lBVrOU-%2y!7%)fAKjpEFsgQc4{amtiHb95KQEwvf<(3T<9-Zm$xIew#P22 zc2Ix|App^>v6(3L_MCU0d3W##AB0M~3D00EWoKZqsJYT(#@w$Y_H7G22M~ApVFTRHMI_3be)Lkn#0F*V8Pq zc}`Cjy$bE;FJ6H7p=0y#R>`}-m4(0F>%@P|?7fx{=R^uFdISRnZ2W_xQhD{YuR3t< z{6yxu=4~JkeA;|(J6_nv#>Nvs&FuLA&PW^he@t(UwFFE8)|a!R{`E`K`i^ZnyE4$k z;(749Ix|oi$c3QbEJ3b~D_kQsPz~fIUKym($a_7dJ?o+40*OLl^{=&oq$<#Q(yyrp z{J-FAniyAw9tPbe&IhQ|a`DqFTVQGQ&Gq3!C2==4x{6EJwiPZ8zub-iXoUtkJiG{} zPaR&}_fn8_z~(=;5lD-aPWD3z8PZS@AaUiomF!G8I}Mf>e~0g#BelA-5#`cj;O5>N Xviia!U7SGha1wx#SCgwmn*{w2TRX*I literal 0 HcmV?d00001 From d0f679dd8126a00094bea634a59f49202a9529fc 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/45] 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 af6bd78332cc..4aab2dcebeef 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 949485447da891acdd6bd19d5e33bbf6d1fd7f86 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Wed, 14 Oct 2015 03:03:12 +0200 Subject: [PATCH 20/45] 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 4aab2dcebeef..24cfb7cd32e1 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 6939b277fd567eefaa7e1a65ae7696ac5d95b37c Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Wed, 25 Nov 2015 22:22:50 +0100 Subject: [PATCH 21/45] 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 3d13bc0e4151..0175eecffa80 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 000000000000..236ec611a7c1 --- /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 000000000000..d44894fb239b --- /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 000000000000..7a70294aba73 --- /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 f5bcc2c4e21b86b1d6e231219fe5f46683dc30e9 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Mon, 25 Jan 2016 05:58:43 +0100 Subject: [PATCH 22/45] 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/i18n/fr.po | 39 +++++++------- account_payment_purchase/i18n/pt_BR.po | 30 +++++++---- account_payment_purchase/i18n/sl.po | 52 +++++++++++++++++++ .../models/stock_picking.py | 10 ++-- 4 files changed, 99 insertions(+), 32 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 48596ceec9e1..ba2ba9f8990d 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 2818e149ade7..1241e9a20635 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 000000000000..f3b0b47ddacc --- /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/models/stock_picking.py b/account_payment_purchase/models/stock_picking.py index 2ab8c6073be5..28d30e057c30 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 8d2f8c0f7332c4ddf51039ee9a3db2278c2f2305 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Fri, 6 May 2016 01:16:20 +0200 Subject: [PATCH 23/45] 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 24cfb7cd32e1..02476ae4fe88 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 b3c160823bdf2ca84288aef9a913e8d8bbfad55a Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Sat, 7 May 2016 00:33:18 +0200 Subject: [PATCH 24/45] 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 a6213ba2bffa..000000000000 --- 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 b21037b9fc8f..000000000000 --- 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 02476ae4fe88..000000000000 --- 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 a00a36e87c1c..000000000000 --- 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 b170125d9514..000000000000 --- 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 ba2ba9f8990d..000000000000 --- 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 07115b8afab1..000000000000 --- 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 1241e9a20635..000000000000 --- 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 f3b0b47ddacc..000000000000 --- 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 0175eecffa80..000000000000 --- 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 236ec611a7c1..000000000000 --- 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 26d08dd23f81..000000000000 --- 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 28d30e057c30..000000000000 --- 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 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 z?n?eq1XP>p-IM$Z^C;2L3itnbJZAip*Zo0aw2bs8@(s^~*8T9go!%dHcAz2lM;`yp zD=7&xjFV$S&5uDaiScyD?B-i1ze`+CoRtz`Wn+Zl&#s4&}MO{@N!ufrzjG$B79)Y2d3tBk&)TxUTw@QS0TEL_?njX|@vq?Uz(nBFK5Pq7*xj#u*R&i|?7+6# z+|r_n#SW&LXhtheZdah{ZVoqwyT{D>MC3nkFF#N)xLi{p7J1jXlmVeb;cP5?e(=f# zuT7fvjSbjS781v?7{)-X3*?>tq?)Yd)~|1{BDS(pqC zC}~H#WXlkUW*H5CDOo<)#x7%RY)A;ShGhI5s*#cRDA8YgqG(HeKDx+#(ZQ?386dv! zlXCO)w91~Vw4AmOcATuV653fa9R$fyK8ul%rG z-wfS zihugoZyr38Im?Zuh6@RcF~t1anQu7>#lPpb#}4cOA!EM11`%f*07RqOVkmX{p~KJ9 z^zP;K#|)$`^Rb{rnHGH{~>1(fawV0*Z#)}M`m8-?ZJV<+e}s9wE# z)l&az?w^5{)`S(%MRzxdNqrs1n*-=jS^_jqE*5XDrA0+VE`5^*p3CuM<&dZEeCjoz zR;uu_H9ZPZV|fQq`Cyw4nscrVwi!fE6ciMmX$!_hN7uF;jjKG)d2@aC4ropY)8etW=xJvni)8eHi`H$%#zn^WJ5NLc-rqk|u&&4Z6fD_m&JfSI1Bvb?b<*n&sfl0^t z=HnmRl`XrFvMKB%9}>PaA`m-fK6a0(8=qPkWS5bb4=v?XcWi&hRY?O5HdulRi4?fN zlsJ*N-0Qw+Yic@s0(2uy%F@ib;GjXt01Fmx5XbRo6+n|pP(&nodMoap^z{~q ziEeaUT@Mxe3vJSfI6?uLND(CNr=#^W<1b}jzW58bIfyWTDle$mmS(|x-0|2UlX+9k zQ^EX7Nw}?EzVoBfT(-LT|=9N@^hcn-_p&sqG z&*oVs2JSU+N4ZD`FhCAWaS;>|wH2G*Id|?pa#@>tyxX`+4HyIArWDvVrX)2WAOQff z0qyHu&-S@i^MS-+j--!pr4fPBj~_8({~e1bfcl0wI1kaoN>mJL6KUPQm5N7lB(ui1 zE-o%kq)&djzWJ}ob<-GfDlkB;F31j-VHKvQUGQ3sp`CwyGJk_i!y^sD0fqC@$9|jO zOqN!r!8-p==F@ZVP=U$qSpY(gQ0)59P1&t@y?5rvg<}E+GB}26NYPp4f2YFQrQtot5mn3wu_qprZ=>Ig-$ zbW26Ws~IgY>}^5w`vTB(G`PTZaDiGBo5o(tp)qli|NeV( z@H_=R8V39rt5J5YB2Ky?4eJJ#b`_iBe2ot~6%7mLt5t8Vwi^Jy7|jWXqa3amOIoRb zOr}WVFP--DsS`1WpN%~)t3R!arKF^Q$e12KEqU36AWwnCBICpH4XCsfnyrHr>$I$4 z!DpKX$OKLWarN7nv@!uIA+~RNO)l$$w}p(;b>mx8pwYvu;dD_unryX_NhT8*Tj>BTrTTL&!?O+%Rv;b?B??gSzdp?6Uug9{ zd@V08Z$BdI?fpoCS$)t4mg4rT8Q_I}h`0d-vYZ^|dOB*Q^S|xqTV*vIg?@fVFSmMpaw0qtTRbx} z({Pg?#{2`sc9)M5N$*N|4;^t$+QP?#mov zGVC@I*lBVrOU-%2y!7%)fAKjpEFsgQc4{amtiHb95KQEwvf<(3T<9-Zm$xIew#P22 zc2Ix|App^>v6(3L_MCU0d3W##AB0M~3D00EWoKZqsJYT(#@w$Y_H7G22M~ApVFTRHMI_3be)Lkn#0F*V8Pq zc}`Cjy$bE;FJ6H7p=0y#R>`}-m4(0F>%@P|?7fx{=R^uFdISRnZ2W_xQhD{YuR3t< z{6yxu=4~JkeA;|(J6_nv#>Nvs&FuLA&PW^he@t(UwFFE8)|a!R{`E`K`i^ZnyE4$k z;(749Ix|oi$c3QbEJ3b~D_kQsPz~fIUKym($a_7dJ?o+40*OLl^{=&oq$<#Q(yyrp z{J-FAniyAw9tPbe&IhQ|a`DqFTVQGQ&Gq3!C2==4x{6EJwiPZ8zub-iXoUtkJiG{} zPaR&}_fn8_z~(=;5lD-aPWD3z8PZS@AaUiomF!G8I}Mf>e~0g#BelA-5#`cj;O5>N Xviia!U7SGha1wx#SCgwmn*{w2TRX*I diff --git a/account_payment_purchase/tests/__init__.py b/account_payment_purchase/tests/__init__.py deleted file mode 100644 index d44894fb239b..000000000000 --- 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 7a70294aba73..000000000000 --- 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 ae5d62110aa5..000000000000 --- a/account_payment_purchase/views/purchase_order_view.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - account_payment_purchase.purchase_order.form - purchase.order - - - - - - - - - - - From 59f1c30f9e606dcc5d3dc03fc916ae2ed3e2ad5c Mon Sep 17 00:00:00 2001 From: jesusVMayor Date: Thu, 4 Aug 2016 10:36:44 +0200 Subject: [PATCH 25/45] account_payment_purchase: set correctly payment mode in purchases created from procurement. --- 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 +++++++++++++++++++ .../models/procurement_order.py | 24 +++++++++ 9 files changed, 432 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 create mode 100644 account_payment_purchase/models/procurement_order.py diff --git a/account_payment_purchase/i18n/es_MX.po b/account_payment_purchase/i18n/es_MX.po new file mode 100644 index 000000000000..97e9e2e9d015 --- /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 000000000000..37b89e03d1b4 --- /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 000000000000..ac6fd345f3ac --- /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 000000000000..30635dfed911 --- /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 000000000000..bdb4f7703cf7 --- /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 000000000000..dbfa579dbd01 --- /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 000000000000..a8c9bdabb646 --- /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 000000000000..59d1d68edc2d --- /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 "" diff --git a/account_payment_purchase/models/procurement_order.py b/account_payment_purchase/models/procurement_order.py new file mode 100644 index 000000000000..2e685323e200 --- /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 090dc8440d95f3632f3e913d5fc70962d8dea27b Mon Sep 17 00:00:00 2001 From: cubells Date: Mon, 10 Apr 2017 18:35:20 +0200 Subject: [PATCH 26/45] account_payment_purchase module --- account_payment_purchase/README.rst | 89 +++++++++++ account_payment_purchase/__init__.py | 5 + account_payment_purchase/__openerp__.py | 25 +++ .../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 | 75 +++++++++ account_payment_purchase/i18n/el_GR.po | 73 +++++++++ account_payment_purchase/i18n/en_GB.po | 72 +++++++++ account_payment_purchase/i18n/es.po | 75 +++++++++ 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 | 75 +++++++++ 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 | 55 +++++-- 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 | 56 ++++--- 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 | 74 +++++++++ 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 | 76 +++++++++ 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 | 75 +++++++++ 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 | 73 +++++++++ account_payment_purchase/i18n/zh_TW.po | 72 +++++++++ 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 +++ 64 files changed, 3922 insertions(+), 141 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/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/de.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.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.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.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/pt_BR.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/sl.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_CN.po create mode 100644 account_payment_purchase/i18n/zh_TW.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 000000000000..b5f4032092c9 --- /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 000000000000..59f15b0fb35b --- /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 000000000000..089a0289866c --- /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/account_payment_purchase.pot b/account_payment_purchase/i18n/account_payment_purchase.pot new file mode 100644 index 000000000000..cd760048dc9b --- /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 000000000000..936bbc97b821 --- /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 000000000000..7e23789c2332 --- /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 000000000000..a9a2a3688ff3 --- /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 000000000000..4fd40a3a74d0 --- /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 000000000000..0ab7683b6fa5 --- /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 000000000000..a25a3ecce4db --- /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 new file mode 100644 index 000000000000..7a681cfed592 --- /dev/null +++ b/account_payment_purchase/i18n/de.po @@ -0,0 +1,75 @@ +# 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: 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: 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" +"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 "Rechnung" + +#. module: account_payment_purchase +#: 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 +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 +#: 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 "" +"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 +#: 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 000000000000..d7a8b1d9def5 --- /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 000000000000..e0569294727a --- /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 new file mode 100644 index 000000000000..020da7a1df5d --- /dev/null +++ b/account_payment_purchase/i18n/es.po @@ -0,0 +1,75 @@ +# 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: 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 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" +"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 pago" + +#. 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 +#: 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." + +#. 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 "El pedido de compra tiene diferente modo de pago." + +#. 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 "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 000000000000..918d4c1666b2 --- /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 000000000000..387c11004d62 --- /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 97e9e2e9d015..2d60fec35da2 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 +#: 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 -#: field:purchase.order,supplier_partner_bank_id:0 +#: 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 000000000000..614ef398bc8f --- /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 000000000000..c9d00e420728 --- /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 000000000000..7d801c0d8713 --- /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 37b89e03d1b4..542c4bb17212 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 +#: 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 +#: 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 new file mode 100644 index 000000000000..0bc0fce1826b --- /dev/null +++ b/account_payment_purchase/i18n/fr.po @@ -0,0 +1,75 @@ +# 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: 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: 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" +"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 "Mode de paiement" + +#. 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 +#: 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." + +#. 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 "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 000000000000..651b00d7225c --- /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 000000000000..3450a234f246 --- /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 ac6fd345f3ac..4bd77d067480 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 +#: 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 +#: 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 000000000000..297307bc7e32 --- /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 30635dfed911..ed92eab9f690 100644 --- a/account_payment_purchase/i18n/hr.po +++ b/account_payment_purchase/i18n/hr.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-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 -msgid "Payment Mode" -msgstr "" +#: model:ir.model,name:account_payment_purchase.model_account_invoice +msgid "Invoice" +msgstr "Račun" #. 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 +#: 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 -#: field:purchase.order,supplier_partner_bank_id:0 +#: 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 000000000000..5f4aea4ed049 --- /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 000000000000..71541d21f9d2 --- /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 000000000000..4177202c4113 --- /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 bdb4f7703cf7..825190bca9bf 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-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" +"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 "" +#: 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 @@ -35,17 +36,36 @@ 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 +#: 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 000000000000..39d8b2706fcc --- /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 000000000000..65e5d469d3a1 --- /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 000000000000..222f2b6fd8d2 --- /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 000000000000..9c560e4b360c --- /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 000000000000..68c30f127007 --- /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 000000000000..50c21d58f7e3 --- /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 new file mode 100644 index 000000000000..408bf246110e --- /dev/null +++ b/account_payment_purchase/i18n/nl.po @@ -0,0 +1,74 @@ +# 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 (https://www.transifex.com/oca/teams/23907/nl/)\n" +"Language: nl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: account_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 "Betaalwijze" + +#. 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 "Inkooporder" + +#. 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 "" +"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 +#: 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 000000000000..ec741fc0e78f --- /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 000000000000..9baa2e9570e8 --- /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 000000000000..6aff7501e27c --- /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 000000000000..7036a6b8d236 --- /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 new file mode 100644 index 000000000000..3cec35d92204 --- /dev/null +++ b/account_payment_purchase/i18n/pt_BR.po @@ -0,0 +1,76 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +# OCA Transbot , 2018 +# Paulo Ricardo , 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: 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" +"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 "Modo de Pagamento" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_procurement_order +msgid "Procurement" +msgstr "Aprovisionamento" + +#. 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 +#: 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." + +#. 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 "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 dbfa579dbd01..8c88806eccd6 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 000000000000..a729e5e4b492 --- /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 000000000000..9d6c9a56a41f --- /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 000000000000..a3e558986cc1 --- /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 000000000000..2014643e253f --- /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 new file mode 100644 index 000000000000..c56e636a562e --- /dev/null +++ b/account_payment_purchase/i18n/sl.po @@ -0,0 +1,75 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +# Translators: +# OCA Transbot , 2018 +# Matjaž Mozetič , 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: 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" +"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 +#: 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_procurement_order +msgid "Procurement" +msgstr "Oskrbovanje" + +#. module: account_payment_purchase +#: model:ir.model,name:account_payment_purchase.model_purchase_order +msgid "Purchase Order" +msgstr "Nabavni nalog" + +#. 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 "" +"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 +#: 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 000000000000..36e91394f08a --- /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 000000000000..eaf3a50cbc3c --- /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 a8c9bdabb646..313c6bb1a30e 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 +#: 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 +#: 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 59d1d68edc2d..e89927a1dcd9 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 000000000000..ec8175c83bba --- /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 new file mode 100644 index 000000000000..7563a10ba3d8 --- /dev/null +++ b/account_payment_purchase/i18n/zh_CN.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 +# ITGeeker , 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: 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" +"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/zh_TW.po b/account_payment_purchase/i18n/zh_TW.po new file mode 100644 index 000000000000..5e49cdb10c9d --- /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 "" diff --git a/account_payment_purchase/models/__init__.py b/account_payment_purchase/models/__init__.py new file mode 100644 index 000000000000..29a6c4cc8a93 --- /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 000000000000..36b70aacb36c --- /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 2e685323e200..e8fd073cf313 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 @@ 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 000000000000..5cc4c8cb3d68 --- /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 z?n?eq1XP>p-IM$Z^C;2L3itnbJZAip*Zo0aw2bs8@(s^~*8T9go!%dHcAz2lM;`yp zD=7&xjFV$S&5uDaiScyD?B-i1ze`+CoRtz`Wn+Zl&#s4&}MO{@N!ufrzjG$B79)Y2d3tBk&)TxUTw@QS0TEL_?njX|@vq?Uz(nBFK5Pq7*xj#u*R&i|?7+6# z+|r_n#SW&LXhtheZdah{ZVoqwyT{D>MC3nkFF#N)xLi{p7J1jXlmVeb;cP5?e(=f# zuT7fvjSbjS781v?7{)-X3*?>tq?)Yd)~|1{BDS(pqC zC}~H#WXlkUW*H5CDOo<)#x7%RY)A;ShGhI5s*#cRDA8YgqG(HeKDx+#(ZQ?386dv! zlXCO)w91~Vw4AmOcATuV653fa9R$fyK8ul%rG z-wfS zihugoZyr38Im?Zuh6@RcF~t1anQu7>#lPpb#}4cOA!EM11`%f*07RqOVkmX{p~KJ9 z^zP;K#|)$`^Rb{rnHGH{~>1(fawV0*Z#)}M`m8-?ZJV<+e}s9wE# z)l&az?w^5{)`S(%MRzxdNqrs1n*-=jS^_jqE*5XDrA0+VE`5^*p3CuM<&dZEeCjoz zR;uu_H9ZPZV|fQq`Cyw4nscrVwi!fE6ciMmX$!_hN7uF;jjKG)d2@aC4ropY)8etW=xJvni)8eHi`H$%#zn^WJ5NLc-rqk|u&&4Z6fD_m&JfSI1Bvb?b<*n&sfl0^t z=HnmRl`XrFvMKB%9}>PaA`m-fK6a0(8=qPkWS5bb4=v?XcWi&hRY?O5HdulRi4?fN zlsJ*N-0Qw+Yic@s0(2uy%F@ib;GjXt01Fmx5XbRo6+n|pP(&nodMoap^z{~q ziEeaUT@Mxe3vJSfI6?uLND(CNr=#^W<1b}jzW58bIfyWTDle$mmS(|x-0|2UlX+9k zQ^EX7Nw}?EzVoBfT(-LT|=9N@^hcn-_p&sqG z&*oVs2JSU+N4ZD`FhCAWaS;>|wH2G*Id|?pa#@>tyxX`+4HyIArWDvVrX)2WAOQff z0qyHu&-S@i^MS-+j--!pr4fPBj~_8({~e1bfcl0wI1kaoN>mJL6KUPQm5N7lB(ui1 zE-o%kq)&djzWJ}ob<-GfDlkB;F31j-VHKvQUGQ3sp`CwyGJk_i!y^sD0fqC@$9|jO zOqN!r!8-p==F@ZVP=U$qSpY(gQ0)59P1&t@y?5rvg<}E+GB}26NYPp4f2YFQrQtot5mn3wu_qprZ=>Ig-$ zbW26Ws~IgY>}^5w`vTB(G`PTZaDiGBo5o(tp)qli|NeV( z@H_=R8V39rt5J5YB2Ky?4eJJ#b`_iBe2ot~6%7mLt5t8Vwi^Jy7|jWXqa3amOIoRb zOr}WVFP--DsS`1WpN%~)t3R!arKF^Q$e12KEqU36AWwnCBICpH4XCsfnyrHr>$I$4 z!DpKX$OKLWarN7nv@!uIA+~RNO)l$$w}p(;b>mx8pwYvu;dD_unryX_NhT8*Tj>BTrTTL&!?O+%Rv;b?B??gSzdp?6Uug9{ zd@V08Z$BdI?fpoCS$)t4mg4rT8Q_I}h`0d-vYZ^|dOB*Q^S|xqTV*vIg?@fVFSmMpaw0qtTRbx} z({Pg?#{2`sc9)M5N$*N|4;^t$+QP?#mov zGVC@I*lBVrOU-%2y!7%)fAKjpEFsgQc4{amtiHb95KQEwvf<(3T<9-Zm$xIew#P22 zc2Ix|App^>v6(3L_MCU0d3W##AB0M~3D00EWoKZqsJYT(#@w$Y_H7G22M~ApVFTRHMI_3be)Lkn#0F*V8Pq zc}`Cjy$bE;FJ6H7p=0y#R>`}-m4(0F>%@P|?7fx{=R^uFdISRnZ2W_xQhD{YuR3t< z{6yxu=4~JkeA;|(J6_nv#>Nvs&FuLA&PW^he@t(UwFFE8)|a!R{`E`K`i^ZnyE4$k z;(749Ix|oi$c3QbEJ3b~D_kQsPz~fIUKym($a_7dJ?o+40*OLl^{=&oq$<#Q(yyrp z{J-FAniyAw9tPbe&IhQ|a`DqFTVQGQ&Gq3!C2==4x{6EJwiPZ8zub-iXoUtkJiG{} zPaR&}_fn8_z~(=;5lD-aPWD3z8PZS@AaUiomF!G8I}Mf>e~0g#BelA-5#`cj;O5>N Xviia!U7SGha1wx#SCgwmn*{w2TRX*I literal 0 HcmV?d00001 diff --git a/account_payment_purchase/tests/__init__.py b/account_payment_purchase/tests/__init__.py new file mode 100644 index 000000000000..5af37be3f00c --- /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 000000000000..2235f3a6809e --- /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 000000000000..8f8713accb57 --- /dev/null +++ b/account_payment_purchase/views/purchase_order_view.xml @@ -0,0 +1,21 @@ + + + + + + account_payment_purchase.purchase_order.form + purchase.order + + + + + + + + + + From ec61427e4e7708d62cfa5f2f1da57d85498c1f98 Mon Sep 17 00:00:00 2001 From: Abranes Date: Thu, 5 Jul 2018 16:16:58 +0200 Subject: [PATCH 27/45] account_payment_purchase: Migration to 10.0 --- account_payment_purchase/README.rst | 1 + .../{__openerp__.py => __manifest__.py} | 2 +- .../i18n/account_payment_purchase.pot | 2 +- account_payment_purchase/i18n/nl_NL.po | 28 +++++++++++-------- .../models/account_invoice.py | 2 +- .../models/procurement_order.py | 2 +- .../models/purchase_order.py | 2 +- .../tests/test_account_payment_purchase.py | 4 +-- 8 files changed, 24 insertions(+), 19 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 b5f4032092c9..f5d7031e2f02 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 089a0289866c..bd5c1ce5b5c4 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/i18n/account_payment_purchase.pot b/account_payment_purchase/i18n/account_payment_purchase.pot index cd760048dc9b..df809223d734 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 9baa2e9570e8..1e049efba4b0 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" diff --git a/account_payment_purchase/models/account_invoice.py b/account_payment_purchase/models/account_invoice.py index 36b70aacb36c..98ebafee8219 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 e8fd073cf313..6d1aa687d10e 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 5cc4c8cb3d68..07cbed0af14f 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 2235f3a6809e..c610daf56131 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 850663b898295aa37cb7064127be91233866ace6 Mon Sep 17 00:00:00 2001 From: cubells Date: Fri, 5 Oct 2018 10:09:42 +0200 Subject: [PATCH 28/45] account_payment_purchase: Migration to 11.0 --- account_payment_purchase/README.rst | 85 ++-- account_payment_purchase/__init__.py | 1 - account_payment_purchase/__manifest__.py | 9 +- .../i18n/account_payment_purchase.pot | 22 +- account_payment_purchase/i18n/ar.po | 20 +- account_payment_purchase/i18n/bg.po | 20 +- account_payment_purchase/i18n/bs.po | 20 +- account_payment_purchase/i18n/ca.po | 20 +- account_payment_purchase/i18n/cs.po | 20 +- account_payment_purchase/i18n/cs_CZ.po | 20 +- account_payment_purchase/i18n/de.po | 24 +- account_payment_purchase/i18n/el_GR.po | 20 +- account_payment_purchase/i18n/en_GB.po | 20 +- account_payment_purchase/i18n/es.po | 24 +- account_payment_purchase/i18n/es_CR.po | 20 +- account_payment_purchase/i18n/es_EC.po | 20 +- account_payment_purchase/i18n/es_MX.po | 24 +- account_payment_purchase/i18n/es_PE.po | 20 +- account_payment_purchase/i18n/et.po | 20 +- account_payment_purchase/i18n/eu.po | 20 +- account_payment_purchase/i18n/fi.po | 20 +- account_payment_purchase/i18n/fr.po | 24 +- account_payment_purchase/i18n/fr_CA.po | 20 +- account_payment_purchase/i18n/fr_CH.po | 20 +- account_payment_purchase/i18n/fr_FR.po | 20 +- account_payment_purchase/i18n/gl.po | 20 +- account_payment_purchase/i18n/hr.po | 24 +- account_payment_purchase/i18n/hr_HR.po | 20 +- account_payment_purchase/i18n/hu.po | 20 +- account_payment_purchase/i18n/id.po | 20 +- account_payment_purchase/i18n/it.po | 24 +- account_payment_purchase/i18n/ja.po | 20 +- account_payment_purchase/i18n/lt.po | 20 +- account_payment_purchase/i18n/mk.po | 20 +- account_payment_purchase/i18n/mn.po | 20 +- account_payment_purchase/i18n/nb.po | 20 +- account_payment_purchase/i18n/nb_NO.po | 20 +- account_payment_purchase/i18n/nl.po | 20 +- account_payment_purchase/i18n/nl_BE.po | 20 +- account_payment_purchase/i18n/nl_NL.po | 28 +- account_payment_purchase/i18n/pl.po | 20 +- account_payment_purchase/i18n/pt.po | 20 +- account_payment_purchase/i18n/pt_BR.po | 24 +- account_payment_purchase/i18n/pt_PT.po | 24 +- account_payment_purchase/i18n/ro.po | 24 +- account_payment_purchase/i18n/ru.po | 20 +- account_payment_purchase/i18n/sk.po | 24 +- account_payment_purchase/i18n/sk_SK.po | 20 +- account_payment_purchase/i18n/sl.po | 24 +- account_payment_purchase/i18n/sv.po | 20 +- account_payment_purchase/i18n/th.po | 20 +- account_payment_purchase/i18n/tr.po | 20 +- account_payment_purchase/i18n/tr_TR.po | 24 +- account_payment_purchase/i18n/vi_VN.po | 24 +- account_payment_purchase/i18n/zh_CN.po | 24 +- account_payment_purchase/i18n/zh_TW.po | 20 +- account_payment_purchase/models/__init__.py | 6 +- .../models/account_invoice.py | 3 +- .../models/purchase_order.py | 1 - .../{procurement_order.py => stock_rule.py} | 14 +- .../readme/CONTRIBUTORS.rst | 11 + .../readme/DESCRIPTION.rst | 8 + account_payment_purchase/readme/INSTALL.rst | 6 + account_payment_purchase/readme/USAGE.rst | 10 + .../static/description/index.html | 458 ++++++++++++++++++ account_payment_purchase/tests/__init__.py | 2 - .../tests/test_account_payment_purchase.py | 81 ++-- 67 files changed, 1199 insertions(+), 622 deletions(-) rename account_payment_purchase/models/{procurement_order.py => stock_rule.py} (59%) 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 f5d7031e2f02..99b201444e2b 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/12.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-12-0/bank-payment-12-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/173/12.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,53 @@ 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 ======= +Authors +~~~~~~~ + +* Akretion +* Tecnativa + Contributors ------------- +~~~~~~~~~~~~ -* Pedro M. Baeza * Alexis de Lattre * Alexandre Fayolle * Danimar Ribeiro * Raphaël Valyi -* Vicent Cubells * Abraham Anes +* `Tecnativa `_: + + * Pedro M. Baeza + * Vicent Cubells + +* Nikul Chaudhary -Maintainer ----------- +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 59f15b0fb35b..af735bf882ad 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 bd5c1ce5b5c4..83e6bd9a5467 100644 --- a/account_payment_purchase/__manifest__.py +++ b/account_payment_purchase/__manifest__.py @@ -1,21 +1,20 @@ -# -*- 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': '12.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' + 'account_payment_partner', + 'purchase_stock', ], 'data': [ 'views/purchase_order_view.xml', diff --git a/account_payment_purchase/i18n/account_payment_purchase.pot b/account_payment_purchase/i18n/account_payment_purchase.pot index df809223d734..040bb631dc86 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 12.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: <>\n" "Language-Team: \n" @@ -19,27 +19,22 @@ msgid "Invoice" msgstr "" #. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +#: 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 +#: 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 +#: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" @@ -51,12 +46,17 @@ 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/i18n/ar.po b/account_payment_purchase/i18n/ar.po index 936bbc97b821..4b789f257946 100644 --- a/account_payment_purchase/i18n/ar.po +++ b/account_payment_purchase/i18n/ar.po @@ -25,22 +25,17 @@ msgid "Invoice" msgstr "فاتورة" #. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +#: 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 +#: 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 " @@ -48,7 +43,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 "" @@ -60,12 +55,17 @@ 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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: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 7e23789c2332..64346b0991b6 100644 --- a/account_payment_purchase/i18n/bg.po +++ b/account_payment_purchase/i18n/bg.po @@ -24,22 +24,17 @@ msgid "Invoice" msgstr "Фактура" #. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +#: 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 +#: 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 " @@ -47,7 +42,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 "" @@ -59,12 +54,17 @@ 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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: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 a9a2a3688ff3..12d3bae7ed4c 100644 --- a/account_payment_purchase/i18n/bs.po +++ b/account_payment_purchase/i18n/bs.po @@ -25,22 +25,17 @@ msgid "Invoice" msgstr "Faktura" #. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +#: 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 +#: 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 " @@ -48,7 +43,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 "" @@ -60,12 +55,17 @@ 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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: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 4fd40a3a74d0..e435adfd8db6 100644 --- a/account_payment_purchase/i18n/ca.po +++ b/account_payment_purchase/i18n/ca.po @@ -25,22 +25,17 @@ msgid "Invoice" msgstr "Factura" #. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +#: 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 +#: 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 " @@ -48,7 +43,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 "" @@ -60,12 +55,17 @@ 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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: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 0ab7683b6fa5..14fa03724e31 100644 --- a/account_payment_purchase/i18n/cs.po +++ b/account_payment_purchase/i18n/cs.po @@ -24,22 +24,17 @@ msgid "Invoice" msgstr "Faktura" #. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +#: 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 +#: 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 " @@ -47,7 +42,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 "" @@ -59,12 +54,17 @@ 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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: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 a25a3ecce4db..499e95ded009 100644 --- a/account_payment_purchase/i18n/cs_CZ.po +++ b/account_payment_purchase/i18n/cs_CZ.po @@ -26,22 +26,17 @@ msgid "Invoice" msgstr "" #. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +#: 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 +#: 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 " @@ -49,7 +44,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 "" @@ -61,12 +56,17 @@ 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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: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 7a681cfed592..c9209400d561 100644 --- a/account_payment_purchase/i18n/de.po +++ b/account_payment_purchase/i18n/de.po @@ -25,22 +25,17 @@ msgid "Invoice" msgstr "Rechnung" #. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +#: 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 -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 -#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +#: 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 " @@ -51,7 +46,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 "" @@ -63,13 +58,22 @@ 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" msgstr "Hinweis" + +#, fuzzy +#~ msgid "Procurement Rule" +#~ msgstr "Beschaffung" diff --git a/account_payment_purchase/i18n/el_GR.po b/account_payment_purchase/i18n/el_GR.po index d7a8b1d9def5..2070c40b2281 100644 --- a/account_payment_purchase/i18n/el_GR.po +++ b/account_payment_purchase/i18n/el_GR.po @@ -26,22 +26,17 @@ msgid "Invoice" msgstr "Τιμολόγιο" #. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +#: 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 +#: 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 " @@ -49,7 +44,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 "" @@ -61,12 +56,17 @@ 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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: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 e0569294727a..602ab9e09232 100644 --- a/account_payment_purchase/i18n/en_GB.po +++ b/account_payment_purchase/i18n/en_GB.po @@ -25,22 +25,17 @@ msgid "Invoice" msgstr "Invoice" #. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +#: 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 +#: 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 " @@ -48,7 +43,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 "" @@ -60,12 +55,17 @@ 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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: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 020da7a1df5d..c9051d1989da 100644 --- a/account_payment_purchase/i18n/es.po +++ b/account_payment_purchase/i18n/es.po @@ -25,22 +25,17 @@ msgid "Invoice" msgstr "Factura" #. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +#: 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 -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 -#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +#: 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 " @@ -51,7 +46,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." @@ -63,13 +58,22 @@ 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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 "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" msgstr "Aviso" + +#, fuzzy +#~ msgid "Procurement Rule" +#~ msgstr "Abastecimiento" diff --git a/account_payment_purchase/i18n/es_CR.po b/account_payment_purchase/i18n/es_CR.po index 918d4c1666b2..2952776cf1f0 100644 --- a/account_payment_purchase/i18n/es_CR.po +++ b/account_payment_purchase/i18n/es_CR.po @@ -25,22 +25,17 @@ msgid "Invoice" msgstr "Factura" #. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +#: 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 +#: 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 " @@ -48,7 +43,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 "" @@ -60,12 +55,17 @@ 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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: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 387c11004d62..35ebbc19fc60 100644 --- a/account_payment_purchase/i18n/es_EC.po +++ b/account_payment_purchase/i18n/es_EC.po @@ -25,22 +25,17 @@ msgid "Invoice" msgstr "Factura" #. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +#: 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 +#: 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 " @@ -48,7 +43,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 "" @@ -60,12 +55,17 @@ 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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: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 2d60fec35da2..942dc9e7298e 100644 --- a/account_payment_purchase/i18n/es_MX.po +++ b/account_payment_purchase/i18n/es_MX.po @@ -25,22 +25,17 @@ msgid "Invoice" msgstr "Factura" #. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +#: 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 "Contratación" - #. 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 +#: 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 " @@ -48,7 +43,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 "" @@ -60,13 +55,22 @@ 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" msgstr "" + +#, fuzzy +#~ msgid "Procurement Rule" +#~ msgstr "Contratación" diff --git a/account_payment_purchase/i18n/es_PE.po b/account_payment_purchase/i18n/es_PE.po index 614ef398bc8f..4d8180c37197 100644 --- a/account_payment_purchase/i18n/es_PE.po +++ b/account_payment_purchase/i18n/es_PE.po @@ -25,22 +25,17 @@ msgid "Invoice" msgstr "Factura" #. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +#: 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 +#: 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 " @@ -48,7 +43,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 "" @@ -60,12 +55,17 @@ 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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: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 c9d00e420728..0727a4d6af79 100644 --- a/account_payment_purchase/i18n/et.po +++ b/account_payment_purchase/i18n/et.po @@ -24,22 +24,17 @@ msgid "Invoice" msgstr "Arve" #. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +#: 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 +#: 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 " @@ -47,7 +42,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 "" @@ -59,12 +54,17 @@ 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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: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 7d801c0d8713..5f5831bb95ac 100644 --- a/account_payment_purchase/i18n/eu.po +++ b/account_payment_purchase/i18n/eu.po @@ -24,22 +24,17 @@ msgid "Invoice" msgstr "" #. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +#: 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 +#: 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 " @@ -47,7 +42,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 "" @@ -59,12 +54,17 @@ 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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: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 542c4bb17212..76ac608382f8 100644 --- a/account_payment_purchase/i18n/fi.po +++ b/account_payment_purchase/i18n/fi.po @@ -25,22 +25,17 @@ msgid "Invoice" msgstr "Lasku" #. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +#: 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 -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 -#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +#: 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 " @@ -48,7 +43,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 "" @@ -60,12 +55,17 @@ 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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: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 0bc0fce1826b..bb6195d454ab 100644 --- a/account_payment_purchase/i18n/fr.po +++ b/account_payment_purchase/i18n/fr.po @@ -25,22 +25,17 @@ msgid "Invoice" msgstr "Facture" #. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +#: 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 -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 -#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +#: 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 " @@ -51,7 +46,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." @@ -63,13 +58,22 @@ 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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 "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" msgstr "Avertissement " + +#, fuzzy +#~ msgid "Procurement Rule" +#~ msgstr "Procurement" diff --git a/account_payment_purchase/i18n/fr_CA.po b/account_payment_purchase/i18n/fr_CA.po index 651b00d7225c..b6f03151f71c 100644 --- a/account_payment_purchase/i18n/fr_CA.po +++ b/account_payment_purchase/i18n/fr_CA.po @@ -25,22 +25,17 @@ msgid "Invoice" msgstr "Facture" #. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +#: 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 +#: 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 " @@ -48,7 +43,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 "" @@ -60,12 +55,17 @@ 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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: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 3450a234f246..f499373fff56 100644 --- a/account_payment_purchase/i18n/fr_CH.po +++ b/account_payment_purchase/i18n/fr_CH.po @@ -25,22 +25,17 @@ msgid "Invoice" msgstr "Facture" #. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +#: 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 +#: 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 " @@ -48,7 +43,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 "" @@ -60,12 +55,17 @@ 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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: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 4bd77d067480..259c332ee75e 100644 --- a/account_payment_purchase/i18n/fr_FR.po +++ b/account_payment_purchase/i18n/fr_FR.po @@ -24,22 +24,17 @@ msgid "Invoice" msgstr "" #. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +#: 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 "Bon de commande" #. module: account_payment_purchase -#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +#: 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 " @@ -47,7 +42,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 "" @@ -59,12 +54,17 @@ 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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: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 297307bc7e32..a6819bd23184 100644 --- a/account_payment_purchase/i18n/gl.po +++ b/account_payment_purchase/i18n/gl.po @@ -25,22 +25,17 @@ msgid "Invoice" msgstr "Factura" #. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +#: 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 +#: 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 " @@ -48,7 +43,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 "" @@ -60,12 +55,17 @@ 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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: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 ed92eab9f690..0c6610bf484a 100644 --- a/account_payment_purchase/i18n/hr.po +++ b/account_payment_purchase/i18n/hr.po @@ -25,22 +25,17 @@ msgid "Invoice" msgstr "Račun" #. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +#: 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 "Nabava" - #. 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 +#: 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 " @@ -48,7 +43,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 "" @@ -60,13 +55,22 @@ 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" msgstr "" + +#, fuzzy +#~ msgid "Procurement Rule" +#~ msgstr "Nabava" diff --git a/account_payment_purchase/i18n/hr_HR.po b/account_payment_purchase/i18n/hr_HR.po index 5f4aea4ed049..748608510005 100644 --- a/account_payment_purchase/i18n/hr_HR.po +++ b/account_payment_purchase/i18n/hr_HR.po @@ -26,22 +26,17 @@ msgid "Invoice" msgstr "Račun" #. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +#: 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 +#: 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 " @@ -49,7 +44,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 "" @@ -61,12 +56,17 @@ 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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: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 71541d21f9d2..d7d62a77c558 100644 --- a/account_payment_purchase/i18n/hu.po +++ b/account_payment_purchase/i18n/hu.po @@ -24,22 +24,17 @@ msgid "Invoice" msgstr "Számla" #. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +#: 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 +#: 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 " @@ -47,7 +42,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 "" @@ -59,12 +54,17 @@ 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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: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 4177202c4113..7ff5ede95e4e 100644 --- a/account_payment_purchase/i18n/id.po +++ b/account_payment_purchase/i18n/id.po @@ -24,22 +24,17 @@ msgid "Invoice" msgstr "Faktur" #. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +#: 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 +#: 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 " @@ -47,7 +42,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 "" @@ -59,12 +54,17 @@ 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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: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 825190bca9bf..348b6faadcbe 100644 --- a/account_payment_purchase/i18n/it.po +++ b/account_payment_purchase/i18n/it.po @@ -24,22 +24,17 @@ msgid "Invoice" msgstr "Fattura" #. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +#: 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 -msgid "Procurement" -msgstr "Approvvigionamento" - #. module: account_payment_purchase #: model:ir.model,name:account_payment_purchase.model_purchase_order msgid "Purchase Order" msgstr "Ordine Acquisto" #. module: account_payment_purchase -#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +#: 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 " @@ -47,7 +42,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 "" @@ -59,13 +54,22 @@ 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" msgstr "Warning" + +#, fuzzy +#~ msgid "Procurement Rule" +#~ msgstr "Approvvigionamento" diff --git a/account_payment_purchase/i18n/ja.po b/account_payment_purchase/i18n/ja.po index 39d8b2706fcc..113c39a1c6cd 100644 --- a/account_payment_purchase/i18n/ja.po +++ b/account_payment_purchase/i18n/ja.po @@ -24,22 +24,17 @@ msgid "Invoice" msgstr "請求書" #. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +#: 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 +#: 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 " @@ -47,7 +42,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 "" @@ -59,12 +54,17 @@ 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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: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 65e5d469d3a1..27495e743ca4 100644 --- a/account_payment_purchase/i18n/lt.po +++ b/account_payment_purchase/i18n/lt.po @@ -25,22 +25,17 @@ 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 +#: 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 +#: 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 " @@ -48,7 +43,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 "" @@ -60,12 +55,17 @@ 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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: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 222f2b6fd8d2..95fa9202abfa 100644 --- a/account_payment_purchase/i18n/mk.po +++ b/account_payment_purchase/i18n/mk.po @@ -24,22 +24,17 @@ msgid "Invoice" msgstr "Фактура" #. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +#: 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 +#: 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 " @@ -47,7 +42,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 "" @@ -59,12 +54,17 @@ 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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: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 9c560e4b360c..e3af6ddcbcb4 100644 --- a/account_payment_purchase/i18n/mn.po +++ b/account_payment_purchase/i18n/mn.po @@ -24,22 +24,17 @@ msgid "Invoice" msgstr "Нэхэмжлэл" #. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +#: 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 +#: 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 " @@ -47,7 +42,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 "" @@ -59,12 +54,17 @@ 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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: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 68c30f127007..b7c8d038f0dc 100644 --- a/account_payment_purchase/i18n/nb.po +++ b/account_payment_purchase/i18n/nb.po @@ -25,22 +25,17 @@ msgid "Invoice" msgstr "Faktura" #. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +#: 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 +#: 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 " @@ -48,7 +43,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 "" @@ -60,12 +55,17 @@ 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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: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 50c21d58f7e3..9b8f9a85ba23 100644 --- a/account_payment_purchase/i18n/nb_NO.po +++ b/account_payment_purchase/i18n/nb_NO.po @@ -25,22 +25,17 @@ msgid "Invoice" msgstr "Innmelding" #. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +#: 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 +#: 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 " @@ -48,7 +43,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 "" @@ -60,12 +55,17 @@ 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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: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 408bf246110e..dc13d3852810 100644 --- a/account_payment_purchase/i18n/nl.po +++ b/account_payment_purchase/i18n/nl.po @@ -24,22 +24,17 @@ msgid "Invoice" msgstr "Factuur" #. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +#: 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_procurement_order -msgid "Procurement" -msgstr "" - #. module: account_payment_purchase #: model:ir.model,name:account_payment_purchase.model_purchase_order msgid "Purchase Order" msgstr "Inkooporder" #. module: account_payment_purchase -#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +#: 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 " @@ -50,7 +45,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 "" @@ -62,12 +57,17 @@ 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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: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 ec741fc0e78f..202acb33a902 100644 --- a/account_payment_purchase/i18n/nl_BE.po +++ b/account_payment_purchase/i18n/nl_BE.po @@ -25,22 +25,17 @@ msgid "Invoice" msgstr "Factuur" #. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +#: 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 +#: 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 " @@ -48,7 +43,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 "" @@ -60,12 +55,17 @@ 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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: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 1e049efba4b0..e8296951f9a9 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" @@ -26,22 +26,17 @@ msgid "Invoice" msgstr "Factuur" #. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +#: 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_procurement_order -msgid "Procurement" -msgstr "Verwerving" - #. module: account_payment_purchase #: model:ir.model,name:account_payment_purchase.model_purchase_order msgid "Purchase Order" msgstr "Inkooporder" #. module: account_payment_purchase -#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +#: 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 " @@ -52,7 +47,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." @@ -64,13 +59,22 @@ msgid "Selected purchase order have different supplier bank." 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" msgstr "Waarschuwing" + +#, fuzzy +#~ msgid "Procurement Rule" +#~ msgstr "Verwerving" diff --git a/account_payment_purchase/i18n/pl.po b/account_payment_purchase/i18n/pl.po index 6aff7501e27c..27e20f3a5f5b 100644 --- a/account_payment_purchase/i18n/pl.po +++ b/account_payment_purchase/i18n/pl.po @@ -26,22 +26,17 @@ msgid "Invoice" msgstr "Faktura" #. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +#: 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 +#: 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 " @@ -49,7 +44,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 "" @@ -61,12 +56,17 @@ 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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: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 7036a6b8d236..e354b76b7daf 100644 --- a/account_payment_purchase/i18n/pt.po +++ b/account_payment_purchase/i18n/pt.po @@ -25,22 +25,17 @@ msgid "Invoice" msgstr "Fatura" #. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +#: 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 +#: 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 " @@ -48,7 +43,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 "" @@ -60,12 +55,17 @@ 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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: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 3cec35d92204..c0c8331db276 100644 --- a/account_payment_purchase/i18n/pt_BR.po +++ b/account_payment_purchase/i18n/pt_BR.po @@ -26,22 +26,17 @@ msgid "Invoice" msgstr "Fatura" #. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +#: 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 "Aprovisionamento" - #. 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 -#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +#: 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 " @@ -52,7 +47,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 "" @@ -64,13 +59,22 @@ 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" msgstr "Avisos" + +#, fuzzy +#~ msgid "Procurement Rule" +#~ msgstr "Aprovisionamento" diff --git a/account_payment_purchase/i18n/pt_PT.po b/account_payment_purchase/i18n/pt_PT.po index 8c88806eccd6..17fe45a4629e 100644 --- a/account_payment_purchase/i18n/pt_PT.po +++ b/account_payment_purchase/i18n/pt_PT.po @@ -26,22 +26,17 @@ msgid "Invoice" msgstr "Fatura" #. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +#: 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 "Aquisições" - #. 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 +#: 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 " @@ -49,7 +44,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 "" @@ -61,13 +56,22 @@ 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" msgstr "Aviso" + +#, fuzzy +#~ msgid "Procurement Rule" +#~ msgstr "Aquisições" diff --git a/account_payment_purchase/i18n/ro.po b/account_payment_purchase/i18n/ro.po index a729e5e4b492..7afce17d6056 100644 --- a/account_payment_purchase/i18n/ro.po +++ b/account_payment_purchase/i18n/ro.po @@ -26,22 +26,17 @@ msgid "Invoice" msgstr "Factura" #. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +#: 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 +#: 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 " @@ -49,7 +44,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 "" @@ -61,13 +56,22 @@ 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" msgstr "" + +#, fuzzy +#~ msgid "Procurement Rule" +#~ msgstr "Aprovizionare" diff --git a/account_payment_purchase/i18n/ru.po b/account_payment_purchase/i18n/ru.po index 9d6c9a56a41f..945c60d7a598 100644 --- a/account_payment_purchase/i18n/ru.po +++ b/account_payment_purchase/i18n/ru.po @@ -26,22 +26,17 @@ msgid "Invoice" msgstr "Счет" #. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +#: 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 +#: 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 " @@ -49,7 +44,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 "" @@ -61,12 +56,17 @@ 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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: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 a3e558986cc1..342f3c44ef7a 100644 --- a/account_payment_purchase/i18n/sk.po +++ b/account_payment_purchase/i18n/sk.po @@ -24,22 +24,17 @@ msgid "Invoice" msgstr "" #. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +#: 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 +#: 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 " @@ -47,7 +42,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 "" @@ -59,13 +54,22 @@ 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" msgstr "" + +#, fuzzy +#~ msgid "Procurement Rule" +#~ msgstr "Obstarávanie" diff --git a/account_payment_purchase/i18n/sk_SK.po b/account_payment_purchase/i18n/sk_SK.po index 2014643e253f..f2218dbcee92 100644 --- a/account_payment_purchase/i18n/sk_SK.po +++ b/account_payment_purchase/i18n/sk_SK.po @@ -25,22 +25,17 @@ msgid "Invoice" msgstr "Faktúra" #. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +#: 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 +#: 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 " @@ -48,7 +43,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 "" @@ -60,12 +55,17 @@ 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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: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 c56e636a562e..7feee227caa3 100644 --- a/account_payment_purchase/i18n/sl.po +++ b/account_payment_purchase/i18n/sl.po @@ -26,22 +26,17 @@ msgid "Invoice" msgstr "Račun" #. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +#: 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_procurement_order -msgid "Procurement" -msgstr "Oskrbovanje" - #. module: account_payment_purchase #: model:ir.model,name:account_payment_purchase.model_purchase_order msgid "Purchase Order" msgstr "Nabavni nalog" #. module: account_payment_purchase -#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +#: 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 " @@ -51,7 +46,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 "" @@ -63,13 +58,22 @@ 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" msgstr "Opozorilo" + +#, fuzzy +#~ msgid "Procurement Rule" +#~ msgstr "Oskrbovanje" diff --git a/account_payment_purchase/i18n/sv.po b/account_payment_purchase/i18n/sv.po index 36e91394f08a..bd3e0df6102c 100644 --- a/account_payment_purchase/i18n/sv.po +++ b/account_payment_purchase/i18n/sv.po @@ -24,22 +24,17 @@ msgid "Invoice" msgstr "Faktura" #. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +#: 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 +#: 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 " @@ -47,7 +42,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 "" @@ -59,12 +54,17 @@ 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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: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 eaf3a50cbc3c..53e7295d47c3 100644 --- a/account_payment_purchase/i18n/th.po +++ b/account_payment_purchase/i18n/th.po @@ -24,22 +24,17 @@ msgid "Invoice" msgstr "ใบแจ้งหนี้" #. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +#: 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 +#: 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 " @@ -47,7 +42,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 "" @@ -59,12 +54,17 @@ 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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: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 313c6bb1a30e..0d6ac22b74a9 100644 --- a/account_payment_purchase/i18n/tr.po +++ b/account_payment_purchase/i18n/tr.po @@ -25,22 +25,17 @@ msgid "Invoice" msgstr "Fatura" #. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +#: 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 +#: 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 " @@ -48,7 +43,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 "" @@ -60,12 +55,17 @@ 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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: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 e89927a1dcd9..8b0b33242357 100644 --- a/account_payment_purchase/i18n/tr_TR.po +++ b/account_payment_purchase/i18n/tr_TR.po @@ -25,22 +25,17 @@ msgid "Invoice" msgstr "Fatura" #. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +#: 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 "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 -#: model:ir.model.fields,help:account_payment_purchase.field_purchase_order_supplier_partner_bank_id +#: 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 " @@ -48,7 +43,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 "" @@ -60,13 +55,22 @@ 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" msgstr "" + +#, fuzzy +#~ msgid "Procurement Rule" +#~ msgstr "Satın alma" diff --git a/account_payment_purchase/i18n/vi_VN.po b/account_payment_purchase/i18n/vi_VN.po index ec8175c83bba..1ddb30c17978 100644 --- a/account_payment_purchase/i18n/vi_VN.po +++ b/account_payment_purchase/i18n/vi_VN.po @@ -25,22 +25,17 @@ msgid "Invoice" msgstr "" #. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +#: 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 +#: 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 " @@ -48,7 +43,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 "" @@ -60,13 +55,22 @@ 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" msgstr "" + +#, fuzzy +#~ msgid "Procurement Rule" +#~ msgstr "Mua sắm / Cung ứng" diff --git a/account_payment_purchase/i18n/zh_CN.po b/account_payment_purchase/i18n/zh_CN.po index 7563a10ba3d8..1cf3adafca19 100644 --- a/account_payment_purchase/i18n/zh_CN.po +++ b/account_payment_purchase/i18n/zh_CN.po @@ -26,22 +26,17 @@ msgid "Invoice" msgstr "发票" #. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +#: 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 +#: 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 " @@ -49,7 +44,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 "" @@ -61,13 +56,22 @@ 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" msgstr "警告" + +#, fuzzy +#~ msgid "Procurement Rule" +#~ msgstr "补货" diff --git a/account_payment_purchase/i18n/zh_TW.po b/account_payment_purchase/i18n/zh_TW.po index 5e49cdb10c9d..c5837f91656c 100644 --- a/account_payment_purchase/i18n/zh_TW.po +++ b/account_payment_purchase/i18n/zh_TW.po @@ -25,22 +25,17 @@ msgid "Invoice" msgstr "發票" #. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order_payment_mode_id +#: 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 +#: 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 " @@ -48,7 +43,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 "" @@ -60,12 +55,17 @@ 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 +#: model:ir.model,name:account_payment_purchase.model_stock_rule +msgid "Stock Rule" +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:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" diff --git a/account_payment_purchase/models/__init__.py b/account_payment_purchase/models/__init__.py index 29a6c4cc8a93..5488e58282f9 100644 --- a/account_payment_purchase/models/__init__.py +++ b/account_payment_purchase/models/__init__.py @@ -1,7 +1,5 @@ -# -*- 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 stock_rule diff --git a/account_payment_purchase/models/account_invoice.py b/account_payment_purchase/models/account_invoice.py index 98ebafee8219..03a793159ca1 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 @@ def purchase_order_change(self): '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 @@ def purchase_order_change(self): 'supplier bank.'), } return res - self.payment_mode_id = new_mode self.partner_bank_id = new_bank diff --git a/account_payment_purchase/models/purchase_order.py b/account_payment_purchase/models/purchase_order.py index 07cbed0af14f..b61e2ac85c4f 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/models/procurement_order.py b/account_payment_purchase/models/stock_rule.py similarity index 59% rename from account_payment_purchase/models/procurement_order.py rename to account_payment_purchase/models/stock_rule.py index 6d1aa687d10e..07701cd09c94 100644 --- a/account_payment_purchase/models/procurement_order.py +++ b/account_payment_purchase/models/stock_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 StockRule(models.Model): + _inherit = "stock.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(StockRule, 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/readme/CONTRIBUTORS.rst b/account_payment_purchase/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000000..5121c0e9accb --- /dev/null +++ b/account_payment_purchase/readme/CONTRIBUTORS.rst @@ -0,0 +1,11 @@ +* Alexis de Lattre +* Alexandre Fayolle +* Danimar Ribeiro +* Raphaël Valyi +* Abraham Anes +* `Tecnativa `_: + + * Pedro M. Baeza + * Vicent Cubells + +* Nikul Chaudhary diff --git a/account_payment_purchase/readme/DESCRIPTION.rst b/account_payment_purchase/readme/DESCRIPTION.rst new file mode 100644 index 000000000000..8af2e48dfbcc --- /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 000000000000..09b85384186b --- /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 000000000000..82c03448ac8b --- /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 000000000000..4d30dae9af94 --- /dev/null +++ b/account_payment_purchase/static/description/index.html @@ -0,0 +1,458 @@ + + + + + + +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 5af37be3f00c..578d2d96b823 100644 --- a/account_payment_purchase/tests/__init__.py +++ b/account_payment_purchase/tests/__init__.py @@ -1,5 +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 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 c610daf56131..8939c48aa7a9 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 @@ -11,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', @@ -30,7 +23,17 @@ def setUpClass(cls): 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', @@ -54,9 +57,9 @@ def test_onchange_partner_id_purchase_order(self): 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() + picking.action_confirm() + picking.move_lines.write({'quantity_done': 1.0}) + picking.button_validate() invoice = self.env['account.invoice'].create({ 'partner_id': self.partner.id, @@ -75,9 +78,9 @@ def test_picking_from_purchase_order_invoicing(self): 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() + picking.action_confirm() + picking.move_lines.write({'quantity_done': 1.0}) + picking.button_validate() invoice = self.env['account.invoice'].create({ 'partner_id': self.partner.id, @@ -91,9 +94,9 @@ def test_picking_from_purchase_order_invoicing(self): 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() + picking.action_confirm() + picking.move_lines.write({'quantity_done': 1.0}) + picking.button_validate() invoice.purchase_id = purchase2.id result = invoice.purchase_order_change() self.assertEqual(result['warning']['title'], 'Warning') @@ -108,41 +111,45 @@ def test_picking_from_purchase_order_invoicing_bank(self): 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() + picking.action_confirm() + picking.move_lines.write({'quantity_done': 1.0}) + picking.button_validate() 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() 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() + picking.action_confirm() + picking.move_lines.write({'quantity_done': 1.0}) + 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) - 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 6521a7abfe90e9f2a275c9fadc05e79112db4d4d Mon Sep 17 00:00:00 2001 From: Rodrigo Macedo Date: Mon, 26 Aug 2019 12:09:20 +0000 Subject: [PATCH 29/45] Translated using Weblate (Portuguese (Brazil)) Currently translated at 100.0% (9 of 9 strings) Translation: bank-payment-12.0/bank-payment-12.0-account_payment_purchase Translate-URL: https://translation.odoo-community.org/projects/bank-payment-12-0/bank-payment-12-0-account_payment_purchase/pt_BR/ --- account_payment_purchase/i18n/pt_BR.po | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/account_payment_purchase/i18n/pt_BR.po b/account_payment_purchase/i18n/pt_BR.po index c0c8331db276..129df3c5a283 100644 --- a/account_payment_purchase/i18n/pt_BR.po +++ b/account_payment_purchase/i18n/pt_BR.po @@ -10,15 +10,16 @@ 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: Paulo Ricardo , 2018\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/" -"teams/23907/pt_BR/)\n" +"PO-Revision-Date: 2019-08-26 15:01+0000\n" +"Last-Translator: Rodrigo Macedo \n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/teams/" +"23907/pt_BR/)\n" "Language: pt_BR\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Plural-Forms: nplurals=2; plural=(n > 1);\n" +"Plural-Forms: nplurals=2; plural=n > 1;\n" +"X-Generator: Weblate 3.8\n" #. module: account_payment_purchase #: model:ir.model,name:account_payment_purchase.model_account_invoice @@ -50,18 +51,18 @@ msgstr "" #: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." -msgstr "" +msgstr "O pedido de compra selecionado tem um modo de pagamento diferente." #. 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 "O pedido de compra selecionado tem um banco fornecedor diferente." #. module: account_payment_purchase #: model:ir.model,name:account_payment_purchase.model_stock_rule msgid "Stock Rule" -msgstr "" +msgstr "Regra de Estoque" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__supplier_partner_bank_id From fd134bff304dfbb7b22acbf8a356f2a72117513f Mon Sep 17 00:00:00 2001 From: Jaume Planas Date: Mon, 7 Oct 2019 07:15:07 +0000 Subject: [PATCH 30/45] Translated using Weblate (Catalan) Currently translated at 100.0% (9 of 9 strings) Translation: bank-payment-12.0/bank-payment-12.0-account_payment_purchase Translate-URL: https://translation.odoo-community.org/projects/bank-payment-12-0/bank-payment-12-0-account_payment_purchase/ca/ --- account_payment_purchase/i18n/ca.po | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/account_payment_purchase/i18n/ca.po b/account_payment_purchase/i18n/ca.po index e435adfd8db6..3b0964cdb0cf 100644 --- a/account_payment_purchase/i18n/ca.po +++ b/account_payment_purchase/i18n/ca.po @@ -10,14 +10,15 @@ 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" +"PO-Revision-Date: 2019-10-07 09:24+0000\n" +"Last-Translator: Jaume Planas \n" "Language-Team: Catalan (https://www.transifex.com/oca/teams/23907/ca/)\n" "Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 3.8\n" #. module: account_payment_purchase #: model:ir.model,name:account_payment_purchase.model_account_invoice @@ -27,12 +28,12 @@ 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 " +msgstr "Forma de pagament" #. module: account_payment_purchase #: model:ir.model,name:account_payment_purchase.model_purchase_order msgid "Purchase Order" -msgstr "" +msgstr "Comanda de compra" #. module: account_payment_purchase #: model:ir.model.fields,help:account_payment_purchase.field_purchase_order__supplier_partner_bank_id @@ -41,32 +42,35 @@ msgid "" "the payment. This field is copied from the partner and will be copied to the " "supplier invoice." msgstr "" +"Seleccioneu el compte bancari del proveïdor on la vostra companyia enviarà " +"el pagament. Aquest cap es copia de l'empresa i es copiarà a la factura de " +"proveïdor." #. module: account_payment_purchase #: code:addons/account_payment_purchase/models/account_invoice.py:19 #, python-format msgid "Selected purchase order have different payment mode." -msgstr "" +msgstr "La comanda de compra seleccionada té un mode de pagament diferent." #. 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 "La comanda de compra seleccionada té un banc de proveïdor diferent." #. module: account_payment_purchase #: model:ir.model,name:account_payment_purchase.model_stock_rule msgid "Stock Rule" -msgstr "" +msgstr "Regla d'estoc" #. 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 "Compte bancari proveïdor" #. module: account_payment_purchase #: code:addons/account_payment_purchase/models/account_invoice.py:18 #: code:addons/account_payment_purchase/models/account_invoice.py:26 #, python-format msgid "Warning" -msgstr "Warning" +msgstr "Advertència" From 9a66745752cc96a24f034d2e1e6dd99e674cc3d5 Mon Sep 17 00:00:00 2001 From: mreficent Date: Wed, 29 Jan 2020 14:05:33 +0100 Subject: [PATCH 31/45] [IMP] account_payment_purchase: black, isort --- account_payment_purchase/__manifest__.py | 29 ++- account_payment_purchase/models/__init__.py | 4 +- .../models/account_invoice.py | 18 +- .../models/purchase_order.py | 19 +- account_payment_purchase/models/stock_rule.py | 19 +- .../tests/test_account_payment_purchase.py | 181 ++++++++++-------- .../views/purchase_order_view.xml | 14 +- 7 files changed, 153 insertions(+), 131 deletions(-) diff --git a/account_payment_purchase/__manifest__.py b/account_payment_purchase/__manifest__.py index 83e6bd9a5467..94bb77c2b91a 100644 --- a/account_payment_purchase/__manifest__.py +++ b/account_payment_purchase/__manifest__.py @@ -3,22 +3,15 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { - 'name': 'Account Payment Purchase', - 'version': '12.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': 'https://github.com/OCA/bank-payment', - 'depends': [ - 'account_payment_partner', - 'purchase_stock', - ], - 'data': [ - 'views/purchase_order_view.xml', - ], - 'installable': True, - 'auto_install': True, + "name": "Account Payment Purchase", + "version": "12.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": "https://github.com/OCA/bank-payment", + "depends": ["account_payment_partner", "purchase_stock"], + "data": ["views/purchase_order_view.xml"], + "installable": True, + "auto_install": True, } diff --git a/account_payment_purchase/models/__init__.py b/account_payment_purchase/models/__init__.py index 5488e58282f9..4a3b74aaf572 100644 --- a/account_payment_purchase/models/__init__.py +++ b/account_payment_purchase/models/__init__.py @@ -1,5 +1,3 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from . import account_invoice -from . import purchase_order -from . import stock_rule +from . import account_invoice, purchase_order, stock_rule diff --git a/account_payment_purchase/models/account_invoice.py b/account_payment_purchase/models/account_invoice.py index 03a793159ca1..3502317d8878 100644 --- a/account_payment_purchase/models/account_invoice.py +++ b/account_payment_purchase/models/account_invoice.py @@ -8,24 +8,24 @@ class AccountInvoice(models.Model): _inherit = "account.invoice" - @api.onchange('purchase_id') + @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.'), + res["warning"] = { + "title": _("Warning"), + "message": _("Selected purchase order have different " "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'), - 'message': _('Selected purchase order have different ' - 'supplier bank.'), + res["warning"] = { + "title": _("Warning"), + "message": _( + "Selected purchase order have different " "supplier bank." + ), } return res self.partner_bank_id = new_bank diff --git a/account_payment_purchase/models/purchase_order.py b/account_payment_purchase/models/purchase_order.py index b61e2ac85c4f..5101ab1ef083 100644 --- a/account_payment_purchase/models/purchase_order.py +++ b/account_payment_purchase/models/purchase_order.py @@ -9,16 +9,16 @@ class PurchaseOrder(models.Model): _inherit = "purchase.order" supplier_partner_bank_id = fields.Many2one( - comodel_name='res.partner.bank', - string='Supplier Bank Account', + 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.", + "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', + comodel_name="account.payment.mode", + string="Payment Mode", domain="[('payment_type', '=', 'outbound')]", ) @@ -27,12 +27,13 @@ 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') + @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.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 diff --git a/account_payment_purchase/models/stock_rule.py b/account_payment_purchase/models/stock_rule.py index 07701cd09c94..eba89d7634b4 100644 --- a/account_payment_purchase/models/stock_rule.py +++ b/account_payment_purchase/models/stock_rule.py @@ -7,15 +7,18 @@ class StockRule(models.Model): _inherit = "stock.rule" - def _prepare_purchase_order(self, product_id, product_qty, product_uom, - origin, values, partner): + def _prepare_purchase_order( + self, product_id, product_qty, product_uom, origin, values, partner + ): """Propagate payment mode on MTO/drop shipping.""" values = super(StockRule, self)._prepare_purchase_order( - product_id, product_qty, product_uom, origin, values, partner) + 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 - values['supplier_partner_bank_id'] = ( - self.env['purchase.order']._get_default_supplier_partner_bank( - 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 values diff --git a/account_payment_purchase/tests/test_account_payment_purchase.py b/account_payment_purchase/tests/test_account_payment_purchase.py index 8939c48aa7a9..4738eb21650d 100644 --- a/account_payment_purchase/tests/test_account_payment_purchase.py +++ b/account_payment_purchase/tests/test_account_payment_purchase.py @@ -10,45 +10,66 @@ class TestAccountPaymentPurchase(common.SavepointCase): @classmethod def setUpClass(cls): super(TestAccountPaymentPurchase, cls).setUpClass() - 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.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', - '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})]}) + 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.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", + "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() @@ -58,35 +79,40 @@ def test_purchase_order_invoicing(self): self.purchase.button_confirm() picking = self.purchase.picking_ids[0] picking.action_confirm() - picking.move_lines.write({'quantity_done': 1.0}) + picking.move_lines.write({"quantity_done": 1.0}) picking.button_validate() - 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 = 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) + 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'}) + 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.action_confirm() - picking.move_lines.write({'quantity_done': 1.0}) + picking.move_lines.write({"quantity_done": 1.0}) picking.button_validate() - 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 = 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() @@ -95,31 +121,33 @@ def test_picking_from_purchase_order_invoicing(self): purchase2.button_confirm() picking = purchase2.picking_ids[0] picking.action_confirm() - picking.move_lines.write({'quantity_done': 1.0}) + picking.move_lines.write({"quantity_done": 1.0}) picking.button_validate() invoice.purchase_id = purchase2.id result = invoice.purchase_order_change() - self.assertEqual(result['warning']['title'], 'Warning') + 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'}) + 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.action_confirm() - picking.move_lines.write({'quantity_done': 1.0}) + picking.move_lines.write({"quantity_done": 1.0}) picking.button_validate() - 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 = 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() @@ -129,27 +157,26 @@ def test_picking_from_purchase_order_invoicing_bank(self): purchase2.button_confirm() picking = purchase2.picking_ids[0] picking.action_confirm() - picking.move_lines.write({'quantity_done': 1.0}) + picking.move_lines.write({"quantity_done": 1.0}) picking.button_validate() invoice.purchase_id = purchase2.id result = invoice.purchase_order_change() - self.assertEqual(result['warning']['title'], 'Warning') + self.assertEqual(result["warning"]["title"], "Warning") def test_procurement_buy_payment_mode(self): - route = self.env.ref('purchase_stock.route_warehouse0_buy') - rule = self.env['stock.rule'].search( - [('route_id', '=', route.id)], limit=1) + 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, 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', + 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(), + "company_id": self.env.user.company_id, + "date_planned": fields.Datetime.now(), }, ) - purchase = self.env['purchase.order'].search([('origin', '=', 'Test')]) + purchase = self.env["purchase.order"].search([("origin", "=", "Test")]) self.assertEqual(purchase.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 index 8f8713accb57..c2fa9cb1f736 100644 --- a/account_payment_purchase/views/purchase_order_view.xml +++ b/account_payment_purchase/views/purchase_order_view.xml @@ -1,21 +1,21 @@ - + - account_payment_purchase.purchase_order.form purchase.order - + - - + widget="selection" + /> + - From b48955c943fee2e20e347b17d2fb5c1e615d8d81 Mon Sep 17 00:00:00 2001 From: mreficent Date: Wed, 29 Jan 2020 14:53:43 +0100 Subject: [PATCH 32/45] [MIG] account_payment_purchase: Migration to 13.0 --- account_payment_purchase/README.rst | 15 +-- account_payment_purchase/__manifest__.py | 4 +- .../i18n/account_payment_purchase.pot | 2 +- .../models/account_invoice.py | 21 ++-- .../models/purchase_order.py | 2 +- account_payment_purchase/models/stock_rule.py | 16 +-- .../readme/CONTRIBUTORS.rst | 1 + account_payment_purchase/readme/INSTALL.rst | 2 +- .../static/description/index.html | 9 +- .../tests/test_account_payment_purchase.py | 99 ++++++++++--------- 10 files changed, 87 insertions(+), 84 deletions(-) diff --git a/account_payment_purchase/README.rst b/account_payment_purchase/README.rst index 99b201444e2b..869dfefc6afe 100644 --- a/account_payment_purchase/README.rst +++ b/account_payment_purchase/README.rst @@ -14,16 +14,16 @@ Account Payment Purchase :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/12.0/account_payment_purchase + :target: https://github.com/OCA/bank-payment/tree/13.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-12-0/bank-payment-12-0-account_payment_purchase + :target: https://translation.odoo-community.org/projects/bank-payment-13-0/bank-payment-13-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/173/12.0 + :target: https://runbot.odoo-community.org/runbot/173/13.0 :alt: Try me on Runbot -|badge1| |badge2| |badge3| |badge4| |badge5| +|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 @@ -44,7 +44,7 @@ Installation This module depends on : -- purchase +- purchase_stock - account_payment_partner This module is part of the OCA/bank-payment suite. @@ -69,7 +69,7 @@ Bug Tracker Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -96,6 +96,7 @@ Contributors * Vicent Cubells * Nikul Chaudhary +* Miquel Raïch Maintainers ~~~~~~~~~~~ @@ -110,6 +111,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. -This module is part of the `OCA/bank-payment `_ project on GitHub. +This module is part of the `OCA/bank-payment `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/account_payment_purchase/__manifest__.py b/account_payment_purchase/__manifest__.py index 94bb77c2b91a..ce4a618ba109 100644 --- a/account_payment_purchase/__manifest__.py +++ b/account_payment_purchase/__manifest__.py @@ -4,11 +4,11 @@ { "name": "Account Payment Purchase", - "version": "12.0.1.0.0", + "version": "13.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)", + "author": "Akretion, Tecnativa, Odoo Community Association (OCA)", "website": "https://github.com/OCA/bank-payment", "depends": ["account_payment_partner", "purchase_stock"], "data": ["views/purchase_order_view.xml"], diff --git a/account_payment_purchase/i18n/account_payment_purchase.pot b/account_payment_purchase/i18n/account_payment_purchase.pot index 040bb631dc86..a8a57db9af18 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 12.0\n" +"Project-Id-Version: Odoo Server 13.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: <>\n" "Language-Team: \n" diff --git a/account_payment_purchase/models/account_invoice.py b/account_payment_purchase/models/account_invoice.py index 3502317d8878..9b4b4a4c4f19 100644 --- a/account_payment_purchase/models/account_invoice.py +++ b/account_payment_purchase/models/account_invoice.py @@ -5,27 +5,26 @@ from odoo import _, api, models -class AccountInvoice(models.Model): - _inherit = "account.invoice" +class AccountMove(models.Model): + _inherit = "account.move" - @api.onchange("purchase_id") - def purchase_order_change(self): + @api.onchange("purchase_vendor_bill_id", "purchase_id") + def _onchange_purchase_auto_complete(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() + res = super()._onchange_purchase_auto_complete() or {} 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."), + "message": _("Selected purchase order have different payment mode."), } return res self.payment_mode_id = new_mode - if self.partner_bank_id and self.partner_bank_id.id != new_bank: + if self.invoice_partner_bank_id and self.invoice_partner_bank_id.id != new_bank: res["warning"] = { "title": _("Warning"), - "message": _( - "Selected purchase order have different " "supplier bank." - ), + "message": _("Selected purchase order have different supplier bank."), } return res - self.partner_bank_id = new_bank + self.invoice_partner_bank_id = new_bank + return res diff --git a/account_payment_purchase/models/purchase_order.py b/account_payment_purchase/models/purchase_order.py index 5101ab1ef083..dba0243e8fb0 100644 --- a/account_payment_purchase/models/purchase_order.py +++ b/account_payment_purchase/models/purchase_order.py @@ -27,7 +27,7 @@ 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") + @api.onchange("partner_id", "company_id") def onchange_partner_id(self): super(PurchaseOrder, self).onchange_partner_id() if self.partner_id: diff --git a/account_payment_purchase/models/stock_rule.py b/account_payment_purchase/models/stock_rule.py index eba89d7634b4..51ef93038fb8 100644 --- a/account_payment_purchase/models/stock_rule.py +++ b/account_payment_purchase/models/stock_rule.py @@ -7,18 +7,18 @@ class StockRule(models.Model): _inherit = "stock.rule" - def _prepare_purchase_order( - self, product_id, product_qty, product_uom, origin, values, partner - ): + def _prepare_purchase_order(self, company_id, origins, values): """Propagate payment mode on MTO/drop shipping.""" - values = super(StockRule, self)._prepare_purchase_order( - product_id, product_qty, product_uom, origin, values, partner + res = super(StockRule, self)._prepare_purchase_order( + company_id, origins, values ) + values = values[0] + partner = values["supplier"].name if partner: - values["payment_mode_id"] = partner.with_context( + res["payment_mode_id"] = partner.with_context( force_company=self.company_id.id ).supplier_payment_mode_id.id - values["supplier_partner_bank_id"] = self.env[ + res["supplier_partner_bank_id"] = self.env[ "purchase.order" ]._get_default_supplier_partner_bank(partner) - return values + return res diff --git a/account_payment_purchase/readme/CONTRIBUTORS.rst b/account_payment_purchase/readme/CONTRIBUTORS.rst index 5121c0e9accb..3a09c62d4fb9 100644 --- a/account_payment_purchase/readme/CONTRIBUTORS.rst +++ b/account_payment_purchase/readme/CONTRIBUTORS.rst @@ -9,3 +9,4 @@ * Vicent Cubells * Nikul Chaudhary +* Miquel Raïch diff --git a/account_payment_purchase/readme/INSTALL.rst b/account_payment_purchase/readme/INSTALL.rst index 09b85384186b..c1b712414c91 100644 --- a/account_payment_purchase/readme/INSTALL.rst +++ b/account_payment_purchase/readme/INSTALL.rst @@ -1,6 +1,6 @@ This module depends on : -- purchase +- purchase_stock - account_payment_partner This module is part of the OCA/bank-payment suite. diff --git a/account_payment_purchase/static/description/index.html b/account_payment_purchase/static/description/index.html index 4d30dae9af94..10310f191e0f 100644 --- a/account_payment_purchase/static/description/index.html +++ b/account_payment_purchase/static/description/index.html @@ -367,7 +367,7 @@

Account Payment Purchase

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

+

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.

@@ -393,7 +393,7 @@

Account Payment Purchase

Installation

This module depends on :

    -
  • purchase
  • +
  • purchase_stock
  • account_payment_partner

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

@@ -414,7 +414,7 @@

Bug Tracker

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

+feedback.

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

@@ -440,6 +440,7 @@

Contributors

  • Nikul Chaudhary <nikulchaudhary2112@gmail.com>
  • +
  • Miquel Raïch <miquel.raich@forgeflow.com>
  • @@ -449,7 +450,7 @@

    Maintainers

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

    -

    This module is part of the OCA/bank-payment project on GitHub.

    +

    This module is part of the OCA/bank-payment project on GitHub.

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

    diff --git a/account_payment_purchase/tests/test_account_payment_purchase.py b/account_payment_purchase/tests/test_account_payment_purchase.py index 4738eb21650d..f882e511174b 100644 --- a/account_payment_purchase/tests/test_account_payment_purchase.py +++ b/account_payment_purchase/tests/test_account_payment_purchase.py @@ -3,10 +3,10 @@ # License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html from odoo import fields -from odoo.tests import common +from odoo.tests import Form, SavepointCase -class TestAccountPaymentPurchase(common.SavepointCase): +class TestAccountPaymentPurchase(SavepointCase): @classmethod def setUpClass(cls): super(TestAccountPaymentPurchase, cls).setUpClass() @@ -63,7 +63,7 @@ def setUpClass(cls): "product_qty": 1.0, "product_id": cls.mto_product.id, "product_uom": cls.uom_id, - "date_planned": fields.Date.today(), + "date_planned": fields.Datetime.today(), "price_unit": 1.0, }, ) @@ -82,14 +82,11 @@ def test_purchase_order_invoicing(self): picking.move_lines.write({"quantity_done": 1.0}) picking.button_validate() - 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 = self.env["account.move"].create( + {"partner_id": self.partner.id, "type": "in_invoice"} ) - invoice.purchase_order_change() + with Form(invoice) as inv: + inv.purchase_id = self.purchase self.assertEqual( self.purchase.invoice_ids[0].payment_mode_id, self.payment_mode ) @@ -99,84 +96,88 @@ 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.order_line[0].product_id = stockable_product self.purchase.button_confirm() picking = self.purchase.picking_ids[0] picking.action_confirm() picking.move_lines.write({"quantity_done": 1.0}) picking.button_validate() - 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 = self.env["account.move"].create( + {"partner_id": self.partner.id, "type": "in_invoice"} ) - invoice.purchase_order_change() + invoice.purchase_id = self.purchase + invoice._onchange_purchase_auto_complete() 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.payment_mode_id = payment_mode2 purchase2.button_confirm() picking = purchase2.picking_ids[0] picking.action_confirm() picking.move_lines.write({"quantity_done": 1.0}) picking.button_validate() - invoice.purchase_id = purchase2.id - result = invoice.purchase_order_change() - self.assertEqual(result["warning"]["title"], "Warning") + invoice.purchase_id = purchase2 + result = invoice._onchange_purchase_auto_complete() + self.assertEqual( + result and result.get("warning", {}).get("title", False), "Warning" + ) def test_picking_from_purchase_order_invoicing_bank(self): - # Test patner_bank + # Test partner_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.order_line[0].product_id = stockable_product self.purchase.payment_mode_id = False - self.purchase.supplier_partner_bank_id = self.bank.id + self.purchase.supplier_partner_bank_id = self.bank self.purchase.button_confirm() picking = self.purchase.picking_ids[0] picking.action_confirm() picking.move_lines.write({"quantity_done": 1.0}) picking.button_validate() - 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 = self.env["account.move"].create( + {"partner_id": self.partner.id, "type": "in_invoice"} ) - # Avoid bank company from default_get method - invoice.partner_bank_id = False - invoice.purchase_order_change() - self.assertEqual(invoice.partner_bank_id, self.bank) + invoice.purchase_id = self.purchase + invoice._onchange_purchase_auto_complete() + self.assertEqual(invoice.invoice_partner_bank_id, self.bank) purchase2 = self.purchase.copy() - purchase2.supplier_partner_bank_id = self.bank2.id + purchase2.supplier_partner_bank_id = self.bank2 purchase2.button_confirm() picking = purchase2.picking_ids[0] picking.action_confirm() picking.move_lines.write({"quantity_done": 1.0}) picking.button_validate() - invoice.purchase_id = purchase2.id - result = invoice.purchase_order_change() - self.assertEqual(result["warning"]["title"], "Warning") + invoice.purchase_id = purchase2 + result = invoice._onchange_purchase_auto_complete() + self.assertEqual( + result and result.get("warning", {}).get("title", False), "Warning" + ) def test_procurement_buy_payment_mode(self): 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, - 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(), - }, + procurements=[ + ( + self.env["procurement.group"].Procurement( + self.mto_product, + 1, + self.mto_product.uom_id, + self.env["stock.location"].search([], limit=1), + "Procurement order test", + "Test", + rule.company_id, + { + "company_id": rule.company_id, + "date_planned": fields.Datetime.now(), + }, + ), + rule, + ) + ] ) purchase = self.env["purchase.order"].search([("origin", "=", "Test")]) self.assertEqual(purchase.payment_mode_id, self.payment_mode) From c450a8a8e298a3bb7d38577ab01c35d3d43de52b Mon Sep 17 00:00:00 2001 From: Andrea Date: Tue, 21 May 2019 09:32:24 +0200 Subject: [PATCH 33/45] Split account_payment_purchase (add account_payment_purchase_stock) --- account_payment_purchase/README.rst | 5 +- account_payment_purchase/__init__.py | 1 - account_payment_purchase/__manifest__.py | 2 +- .../i18n/account_payment_purchase.pot | 27 ++++---- account_payment_purchase/i18n/ar.po | 21 +++--- account_payment_purchase/i18n/bg.po | 21 +++--- account_payment_purchase/i18n/bs.po | 21 +++--- account_payment_purchase/i18n/ca.po | 24 +++---- account_payment_purchase/i18n/cs.po | 21 +++--- account_payment_purchase/i18n/cs_CZ.po | 16 ++--- account_payment_purchase/i18n/de.po | 21 +++--- account_payment_purchase/i18n/el_GR.po | 21 +++--- account_payment_purchase/i18n/en_GB.po | 21 +++--- account_payment_purchase/i18n/es.po | 21 +++--- account_payment_purchase/i18n/es_CR.po | 21 +++--- account_payment_purchase/i18n/es_EC.po | 21 +++--- account_payment_purchase/i18n/es_MX.po | 21 +++--- account_payment_purchase/i18n/es_PE.po | 21 +++--- account_payment_purchase/i18n/et.po | 21 +++--- account_payment_purchase/i18n/eu.po | 16 ++--- account_payment_purchase/i18n/fi.po | 21 +++--- account_payment_purchase/i18n/fr.po | 21 +++--- account_payment_purchase/i18n/fr_CA.po | 21 +++--- account_payment_purchase/i18n/fr_CH.po | 21 +++--- account_payment_purchase/i18n/fr_FR.po | 16 ++--- account_payment_purchase/i18n/gl.po | 21 +++--- account_payment_purchase/i18n/hr.po | 21 +++--- account_payment_purchase/i18n/hr_HR.po | 21 +++--- account_payment_purchase/i18n/hu.po | 21 +++--- account_payment_purchase/i18n/id.po | 21 +++--- account_payment_purchase/i18n/it.po | 21 +++--- account_payment_purchase/i18n/ja.po | 21 +++--- account_payment_purchase/i18n/lt.po | 21 +++--- account_payment_purchase/i18n/mk.po | 21 +++--- account_payment_purchase/i18n/mn.po | 21 +++--- account_payment_purchase/i18n/nb.po | 21 +++--- account_payment_purchase/i18n/nb_NO.po | 21 +++--- account_payment_purchase/i18n/nl.po | 21 +++--- account_payment_purchase/i18n/nl_BE.po | 21 +++--- account_payment_purchase/i18n/nl_NL.po | 21 +++--- account_payment_purchase/i18n/pl.po | 21 +++--- account_payment_purchase/i18n/pt.po | 21 +++--- account_payment_purchase/i18n/pt_BR.po | 28 ++++---- account_payment_purchase/i18n/pt_PT.po | 21 +++--- account_payment_purchase/i18n/ro.po | 21 +++--- account_payment_purchase/i18n/ru.po | 21 +++--- account_payment_purchase/i18n/sk.po | 16 ++--- account_payment_purchase/i18n/sk_SK.po | 21 +++--- account_payment_purchase/i18n/sl.po | 21 +++--- account_payment_purchase/i18n/sv.po | 21 +++--- account_payment_purchase/i18n/th.po | 21 +++--- account_payment_purchase/i18n/tr.po | 21 +++--- account_payment_purchase/i18n/tr_TR.po | 21 +++--- account_payment_purchase/i18n/vi_VN.po | 16 ++--- account_payment_purchase/i18n/zh_CN.po | 21 +++--- account_payment_purchase/i18n/zh_TW.po | 21 +++--- account_payment_purchase/models/__init__.py | 2 +- account_payment_purchase/models/stock_rule.py | 24 ------- .../readme/CONTRIBUTORS.rst | 1 + account_payment_purchase/readme/INSTALL.rst | 2 +- .../static/description/index.html | 3 +- .../tests/test_account_payment_purchase.py | 65 +++---------------- 62 files changed, 485 insertions(+), 724 deletions(-) delete mode 100644 account_payment_purchase/models/stock_rule.py diff --git a/account_payment_purchase/README.rst b/account_payment_purchase/README.rst index 869dfefc6afe..03b8575dfaa1 100644 --- a/account_payment_purchase/README.rst +++ b/account_payment_purchase/README.rst @@ -23,7 +23,7 @@ Account Payment Purchase :target: https://runbot.odoo-community.org/runbot/173/13.0 :alt: Try me on Runbot -|badge1| |badge2| |badge3| |badge4| |badge5| +|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 @@ -44,7 +44,7 @@ Installation This module depends on : -- purchase_stock +- purchase - account_payment_partner This module is part of the OCA/bank-payment suite. @@ -97,6 +97,7 @@ Contributors * Nikul Chaudhary * Miquel Raïch +* Andrea Stirpe Maintainers ~~~~~~~~~~~ diff --git a/account_payment_purchase/__init__.py b/account_payment_purchase/__init__.py index af735bf882ad..83e553ac462c 100644 --- a/account_payment_purchase/__init__.py +++ b/account_payment_purchase/__init__.py @@ -1,4 +1,3 @@ -# 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/__manifest__.py b/account_payment_purchase/__manifest__.py index ce4a618ba109..090741a042f8 100644 --- a/account_payment_purchase/__manifest__.py +++ b/account_payment_purchase/__manifest__.py @@ -10,7 +10,7 @@ "summary": "Adds Bank Account and Payment Mode on Purchase Orders", "author": "Akretion, Tecnativa, Odoo Community Association (OCA)", "website": "https://github.com/OCA/bank-payment", - "depends": ["account_payment_partner", "purchase_stock"], + "depends": ["account_payment_partner", "purchase"], "data": ["views/purchase_order_view.xml"], "installable": True, "auto_install": True, diff --git a/account_payment_purchase/i18n/account_payment_purchase.pot b/account_payment_purchase/i18n/account_payment_purchase.pot index a8a57db9af18..0cda87a5c103 100644 --- a/account_payment_purchase/i18n/account_payment_purchase.pot +++ b/account_payment_purchase/i18n/account_payment_purchase.pot @@ -1,12 +1,12 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * account_payment_purchase +# * account_payment_purchase # msgid "" msgstr "" "Project-Id-Version: Odoo Server 13.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: <>\n" +"Last-Translator: \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -14,8 +14,8 @@ msgstr "" "Plural-Forms: \n" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_account_invoice -msgid "Invoice" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" msgstr "" #. module: account_payment_purchase @@ -30,35 +30,32 @@ 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." +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:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, 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 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "" -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -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:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "" - diff --git a/account_payment_purchase/i18n/ar.po b/account_payment_purchase/i18n/ar.po index 4b789f257946..5e9cb5b2c989 100644 --- a/account_payment_purchase/i18n/ar.po +++ b/account_payment_purchase/i18n/ar.po @@ -20,9 +20,9 @@ msgstr "" "&& 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 "فاتورة" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" +msgstr "" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__payment_mode_id @@ -43,30 +43,27 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, 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 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "" -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -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:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "" + +#~ msgid "Invoice" +#~ msgstr "فاتورة" diff --git a/account_payment_purchase/i18n/bg.po b/account_payment_purchase/i18n/bg.po index 64346b0991b6..3e9e5625a1cb 100644 --- a/account_payment_purchase/i18n/bg.po +++ b/account_payment_purchase/i18n/bg.po @@ -19,9 +19,9 @@ msgstr "" "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 "Фактура" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" +msgstr "" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__payment_mode_id @@ -42,30 +42,27 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, 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 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "" -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -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:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "" + +#~ msgid "Invoice" +#~ msgstr "Фактура" diff --git a/account_payment_purchase/i18n/bs.po b/account_payment_purchase/i18n/bs.po index 12d3bae7ed4c..afb4a5b3fafe 100644 --- a/account_payment_purchase/i18n/bs.po +++ b/account_payment_purchase/i18n/bs.po @@ -20,9 +20,9 @@ msgstr "" "%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" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" +msgstr "" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__payment_mode_id @@ -43,30 +43,27 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, 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 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "" -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -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:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "" + +#~ msgid "Invoice" +#~ msgstr "Faktura" diff --git a/account_payment_purchase/i18n/ca.po b/account_payment_purchase/i18n/ca.po index 3b0964cdb0cf..d2748245dddd 100644 --- a/account_payment_purchase/i18n/ca.po +++ b/account_payment_purchase/i18n/ca.po @@ -21,9 +21,9 @@ msgstr "" "X-Generator: Weblate 3.8\n" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_account_invoice -msgid "Invoice" -msgstr "Factura" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" +msgstr "" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__payment_mode_id @@ -47,30 +47,30 @@ msgstr "" "proveïdor." #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different payment mode." msgstr "La comanda de compra seleccionada té un mode de pagament diferent." #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "La comanda de compra seleccionada té un banc de proveïdor diferent." -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -msgstr "Regla d'estoc" - #. 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 bancari proveïdor" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "Advertència" + +#~ msgid "Invoice" +#~ msgstr "Factura" + +#~ msgid "Stock Rule" +#~ msgstr "Regla d'estoc" diff --git a/account_payment_purchase/i18n/cs.po b/account_payment_purchase/i18n/cs.po index 14fa03724e31..1c056f7eb114 100644 --- a/account_payment_purchase/i18n/cs.po +++ b/account_payment_purchase/i18n/cs.po @@ -19,9 +19,9 @@ msgstr "" "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" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" +msgstr "" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__payment_mode_id @@ -42,30 +42,27 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, 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 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "" -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -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:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "" + +#~ msgid "Invoice" +#~ msgstr "Faktura" diff --git a/account_payment_purchase/i18n/cs_CZ.po b/account_payment_purchase/i18n/cs_CZ.po index 499e95ded009..050475d8a44c 100644 --- a/account_payment_purchase/i18n/cs_CZ.po +++ b/account_payment_purchase/i18n/cs_CZ.po @@ -21,8 +21,8 @@ msgstr "" "<= 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" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" msgstr "" #. module: account_payment_purchase @@ -44,30 +44,24 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, 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 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "" -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -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:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "" diff --git a/account_payment_purchase/i18n/de.po b/account_payment_purchase/i18n/de.po index c9209400d561..ebda1e6373d1 100644 --- a/account_payment_purchase/i18n/de.po +++ b/account_payment_purchase/i18n/de.po @@ -20,9 +20,9 @@ msgstr "" "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 "Rechnung" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" +msgstr "" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__payment_mode_id @@ -46,34 +46,31 @@ msgstr "" "Rechnung übertragen." #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, 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 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "" -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -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:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "Hinweis" +#~ msgid "Invoice" +#~ msgstr "Rechnung" + #, fuzzy #~ msgid "Procurement Rule" #~ msgstr "Beschaffung" diff --git a/account_payment_purchase/i18n/el_GR.po b/account_payment_purchase/i18n/el_GR.po index 2070c40b2281..cfefa26139f1 100644 --- a/account_payment_purchase/i18n/el_GR.po +++ b/account_payment_purchase/i18n/el_GR.po @@ -21,9 +21,9 @@ msgstr "" "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 "Τιμολόγιο" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" +msgstr "" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__payment_mode_id @@ -44,30 +44,27 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, 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 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "" -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -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:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "Προσοχή" + +#~ msgid "Invoice" +#~ msgstr "Τιμολόγιο" diff --git a/account_payment_purchase/i18n/en_GB.po b/account_payment_purchase/i18n/en_GB.po index 602ab9e09232..95d979dbe46c 100644 --- a/account_payment_purchase/i18n/en_GB.po +++ b/account_payment_purchase/i18n/en_GB.po @@ -20,9 +20,9 @@ msgstr "" "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" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" +msgstr "" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__payment_mode_id @@ -43,30 +43,27 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, 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 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "" -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -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:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "" + +#~ msgid "Invoice" +#~ msgstr "Invoice" diff --git a/account_payment_purchase/i18n/es.po b/account_payment_purchase/i18n/es.po index c9051d1989da..1e87af4f8d1a 100644 --- a/account_payment_purchase/i18n/es.po +++ b/account_payment_purchase/i18n/es.po @@ -20,9 +20,9 @@ msgstr "" "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" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" +msgstr "" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__payment_mode_id @@ -46,34 +46,31 @@ msgstr "" "trasladará a la factura de proveedor." #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, 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:27 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, 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,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -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 "Cuenta bancaria del proveedor" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "Aviso" +#~ msgid "Invoice" +#~ msgstr "Factura" + #, fuzzy #~ msgid "Procurement Rule" #~ msgstr "Abastecimiento" diff --git a/account_payment_purchase/i18n/es_CR.po b/account_payment_purchase/i18n/es_CR.po index 2952776cf1f0..eb5ddc5ffa39 100644 --- a/account_payment_purchase/i18n/es_CR.po +++ b/account_payment_purchase/i18n/es_CR.po @@ -20,9 +20,9 @@ msgstr "" "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" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" +msgstr "" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__payment_mode_id @@ -43,30 +43,27 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, 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 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "" -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -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:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "" + +#~ msgid "Invoice" +#~ msgstr "Factura" diff --git a/account_payment_purchase/i18n/es_EC.po b/account_payment_purchase/i18n/es_EC.po index 35ebbc19fc60..74bc7b732bf4 100644 --- a/account_payment_purchase/i18n/es_EC.po +++ b/account_payment_purchase/i18n/es_EC.po @@ -20,9 +20,9 @@ msgstr "" "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" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" +msgstr "" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__payment_mode_id @@ -43,30 +43,27 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, 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 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "" -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -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:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "" + +#~ msgid "Invoice" +#~ msgstr "Factura" diff --git a/account_payment_purchase/i18n/es_MX.po b/account_payment_purchase/i18n/es_MX.po index 942dc9e7298e..e55d3f2e0868 100644 --- a/account_payment_purchase/i18n/es_MX.po +++ b/account_payment_purchase/i18n/es_MX.po @@ -20,9 +20,9 @@ msgstr "" "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" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" +msgstr "" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__payment_mode_id @@ -43,34 +43,31 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, 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 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "" -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -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:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "" +#~ msgid "Invoice" +#~ msgstr "Factura" + #, fuzzy #~ msgid "Procurement Rule" #~ msgstr "Contratación" diff --git a/account_payment_purchase/i18n/es_PE.po b/account_payment_purchase/i18n/es_PE.po index 4d8180c37197..0f391187004d 100644 --- a/account_payment_purchase/i18n/es_PE.po +++ b/account_payment_purchase/i18n/es_PE.po @@ -20,9 +20,9 @@ msgstr "" "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" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" +msgstr "" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__payment_mode_id @@ -43,30 +43,27 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, 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 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "" -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -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:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "" + +#~ msgid "Invoice" +#~ msgstr "Factura" diff --git a/account_payment_purchase/i18n/et.po b/account_payment_purchase/i18n/et.po index 0727a4d6af79..8bf2850df24e 100644 --- a/account_payment_purchase/i18n/et.po +++ b/account_payment_purchase/i18n/et.po @@ -19,9 +19,9 @@ msgstr "" "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" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" +msgstr "" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__payment_mode_id @@ -42,30 +42,27 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, 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 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "" -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -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:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "" + +#~ msgid "Invoice" +#~ msgstr "Arve" diff --git a/account_payment_purchase/i18n/eu.po b/account_payment_purchase/i18n/eu.po index 5f5831bb95ac..4b153af69d06 100644 --- a/account_payment_purchase/i18n/eu.po +++ b/account_payment_purchase/i18n/eu.po @@ -19,8 +19,8 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_account_invoice -msgid "Invoice" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" msgstr "" #. module: account_payment_purchase @@ -42,30 +42,24 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, 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 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "" -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -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:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "Kontuz" diff --git a/account_payment_purchase/i18n/fi.po b/account_payment_purchase/i18n/fi.po index 76ac608382f8..4fd04e00170d 100644 --- a/account_payment_purchase/i18n/fi.po +++ b/account_payment_purchase/i18n/fi.po @@ -20,9 +20,9 @@ msgstr "" "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 "Lasku" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" +msgstr "" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__payment_mode_id @@ -43,30 +43,27 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, 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 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "" -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -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:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "Varoitus" + +#~ msgid "Invoice" +#~ msgstr "Lasku" diff --git a/account_payment_purchase/i18n/fr.po b/account_payment_purchase/i18n/fr.po index bb6195d454ab..1c1dd13af156 100644 --- a/account_payment_purchase/i18n/fr.po +++ b/account_payment_purchase/i18n/fr.po @@ -20,9 +20,9 @@ msgstr "" "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" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" +msgstr "" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__payment_mode_id @@ -46,34 +46,31 @@ msgstr "" "sera recopié sur la facture fournisseur." #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, 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 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, 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,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -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 "Compte bancaire du fournisseur" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "Avertissement " +#~ msgid "Invoice" +#~ msgstr "Facture" + #, fuzzy #~ msgid "Procurement Rule" #~ msgstr "Procurement" diff --git a/account_payment_purchase/i18n/fr_CA.po b/account_payment_purchase/i18n/fr_CA.po index b6f03151f71c..6d974f0c5ad6 100644 --- a/account_payment_purchase/i18n/fr_CA.po +++ b/account_payment_purchase/i18n/fr_CA.po @@ -20,9 +20,9 @@ msgstr "" "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" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" +msgstr "" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__payment_mode_id @@ -43,30 +43,27 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, 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 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "" -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -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:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "Avertissement" + +#~ msgid "Invoice" +#~ msgstr "Facture" diff --git a/account_payment_purchase/i18n/fr_CH.po b/account_payment_purchase/i18n/fr_CH.po index f499373fff56..499f727f3972 100644 --- a/account_payment_purchase/i18n/fr_CH.po +++ b/account_payment_purchase/i18n/fr_CH.po @@ -20,9 +20,9 @@ msgstr "" "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" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" +msgstr "" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__payment_mode_id @@ -43,30 +43,27 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, 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 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "" -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -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:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "" + +#~ msgid "Invoice" +#~ msgstr "Facture" diff --git a/account_payment_purchase/i18n/fr_FR.po b/account_payment_purchase/i18n/fr_FR.po index 259c332ee75e..ed1bfdb7ed4a 100644 --- a/account_payment_purchase/i18n/fr_FR.po +++ b/account_payment_purchase/i18n/fr_FR.po @@ -19,8 +19,8 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_account_invoice -msgid "Invoice" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" msgstr "" #. module: account_payment_purchase @@ -42,30 +42,24 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, 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 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "" -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -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:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "" diff --git a/account_payment_purchase/i18n/gl.po b/account_payment_purchase/i18n/gl.po index a6819bd23184..2ad50165043e 100644 --- a/account_payment_purchase/i18n/gl.po +++ b/account_payment_purchase/i18n/gl.po @@ -20,9 +20,9 @@ msgstr "" "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" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" +msgstr "" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__payment_mode_id @@ -43,30 +43,27 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, 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 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "" -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -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:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "Aviso" + +#~ msgid "Invoice" +#~ msgstr "Factura" diff --git a/account_payment_purchase/i18n/hr.po b/account_payment_purchase/i18n/hr.po index 0c6610bf484a..352716dcfd16 100644 --- a/account_payment_purchase/i18n/hr.po +++ b/account_payment_purchase/i18n/hr.po @@ -20,9 +20,9 @@ msgstr "" "%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" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" +msgstr "" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__payment_mode_id @@ -43,34 +43,31 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, 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 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "" -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -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:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "" +#~ msgid "Invoice" +#~ msgstr "Račun" + #, fuzzy #~ msgid "Procurement Rule" #~ msgstr "Nabava" diff --git a/account_payment_purchase/i18n/hr_HR.po b/account_payment_purchase/i18n/hr_HR.po index 748608510005..aca7e2ee5d4c 100644 --- a/account_payment_purchase/i18n/hr_HR.po +++ b/account_payment_purchase/i18n/hr_HR.po @@ -21,9 +21,9 @@ msgstr "" "%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" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" +msgstr "" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__payment_mode_id @@ -44,30 +44,27 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, 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 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "" -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -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:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "" + +#~ msgid "Invoice" +#~ msgstr "Račun" diff --git a/account_payment_purchase/i18n/hu.po b/account_payment_purchase/i18n/hu.po index d7d62a77c558..fe607cff3f46 100644 --- a/account_payment_purchase/i18n/hu.po +++ b/account_payment_purchase/i18n/hu.po @@ -19,9 +19,9 @@ msgstr "" "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" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" +msgstr "" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__payment_mode_id @@ -42,30 +42,27 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, 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 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "" -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -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:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "" + +#~ msgid "Invoice" +#~ msgstr "Számla" diff --git a/account_payment_purchase/i18n/id.po b/account_payment_purchase/i18n/id.po index 7ff5ede95e4e..d1db76fa5a3a 100644 --- a/account_payment_purchase/i18n/id.po +++ b/account_payment_purchase/i18n/id.po @@ -19,9 +19,9 @@ msgstr "" "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" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" +msgstr "" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__payment_mode_id @@ -42,30 +42,27 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, 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 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "" -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -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:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "" + +#~ msgid "Invoice" +#~ msgstr "Faktur" diff --git a/account_payment_purchase/i18n/it.po b/account_payment_purchase/i18n/it.po index 348b6faadcbe..f202de68e25b 100644 --- a/account_payment_purchase/i18n/it.po +++ b/account_payment_purchase/i18n/it.po @@ -19,9 +19,9 @@ msgstr "" "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 "Fattura" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" +msgstr "" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__payment_mode_id @@ -42,34 +42,31 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, 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 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "" -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -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:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "Warning" +#~ msgid "Invoice" +#~ msgstr "Fattura" + #, fuzzy #~ msgid "Procurement Rule" #~ msgstr "Approvvigionamento" diff --git a/account_payment_purchase/i18n/ja.po b/account_payment_purchase/i18n/ja.po index 113c39a1c6cd..52527d72930a 100644 --- a/account_payment_purchase/i18n/ja.po +++ b/account_payment_purchase/i18n/ja.po @@ -19,9 +19,9 @@ msgstr "" "Plural-Forms: nplurals=1; plural=0;\n" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_account_invoice -msgid "Invoice" -msgstr "請求書" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" +msgstr "" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__payment_mode_id @@ -42,30 +42,27 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, 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 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "" -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -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:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "" + +#~ msgid "Invoice" +#~ msgstr "請求書" diff --git a/account_payment_purchase/i18n/lt.po b/account_payment_purchase/i18n/lt.po index 27495e743ca4..f13a4881eced 100644 --- a/account_payment_purchase/i18n/lt.po +++ b/account_payment_purchase/i18n/lt.po @@ -20,9 +20,9 @@ msgstr "" "%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" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" +msgstr "" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__payment_mode_id @@ -43,30 +43,27 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, 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 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "" -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -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:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "" + +#~ msgid "Invoice" +#~ msgstr "Sąskaita faktūra" diff --git a/account_payment_purchase/i18n/mk.po b/account_payment_purchase/i18n/mk.po index 95fa9202abfa..6d40da2d8e23 100644 --- a/account_payment_purchase/i18n/mk.po +++ b/account_payment_purchase/i18n/mk.po @@ -19,9 +19,9 @@ msgstr "" "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 "Фактура" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" +msgstr "" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__payment_mode_id @@ -42,30 +42,27 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, 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 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "" -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -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:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "" + +#~ msgid "Invoice" +#~ msgstr "Фактура" diff --git a/account_payment_purchase/i18n/mn.po b/account_payment_purchase/i18n/mn.po index e3af6ddcbcb4..ee7f16bf5852 100644 --- a/account_payment_purchase/i18n/mn.po +++ b/account_payment_purchase/i18n/mn.po @@ -19,9 +19,9 @@ msgstr "" "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 "Нэхэмжлэл" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" +msgstr "" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__payment_mode_id @@ -42,30 +42,27 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, 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 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "" -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -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:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "" + +#~ msgid "Invoice" +#~ msgstr "Нэхэмжлэл" diff --git a/account_payment_purchase/i18n/nb.po b/account_payment_purchase/i18n/nb.po index b7c8d038f0dc..75209b365202 100644 --- a/account_payment_purchase/i18n/nb.po +++ b/account_payment_purchase/i18n/nb.po @@ -20,9 +20,9 @@ msgstr "" "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" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" +msgstr "" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__payment_mode_id @@ -43,30 +43,27 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, 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 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "" -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -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:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "" + +#~ msgid "Invoice" +#~ msgstr "Faktura" diff --git a/account_payment_purchase/i18n/nb_NO.po b/account_payment_purchase/i18n/nb_NO.po index 9b8f9a85ba23..ad054af91e90 100644 --- a/account_payment_purchase/i18n/nb_NO.po +++ b/account_payment_purchase/i18n/nb_NO.po @@ -20,9 +20,9 @@ msgstr "" "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" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" +msgstr "" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__payment_mode_id @@ -43,30 +43,27 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, 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 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "" -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -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:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "" + +#~ msgid "Invoice" +#~ msgstr "Innmelding" diff --git a/account_payment_purchase/i18n/nl.po b/account_payment_purchase/i18n/nl.po index dc13d3852810..b8c62b66cac9 100644 --- a/account_payment_purchase/i18n/nl.po +++ b/account_payment_purchase/i18n/nl.po @@ -19,9 +19,9 @@ msgstr "" "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" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" +msgstr "" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__payment_mode_id @@ -45,30 +45,27 @@ msgstr "" "gekopieerd naar de inkoopfactuur." #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, 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 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "" -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -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:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "" + +#~ msgid "Invoice" +#~ msgstr "Factuur" diff --git a/account_payment_purchase/i18n/nl_BE.po b/account_payment_purchase/i18n/nl_BE.po index 202acb33a902..cb27e67b73ba 100644 --- a/account_payment_purchase/i18n/nl_BE.po +++ b/account_payment_purchase/i18n/nl_BE.po @@ -20,9 +20,9 @@ msgstr "" "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" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" +msgstr "" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__payment_mode_id @@ -43,30 +43,27 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, 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 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "" -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -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:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "" + +#~ msgid "Invoice" +#~ msgstr "Factuur" diff --git a/account_payment_purchase/i18n/nl_NL.po b/account_payment_purchase/i18n/nl_NL.po index e8296951f9a9..eba88d26e41c 100644 --- a/account_payment_purchase/i18n/nl_NL.po +++ b/account_payment_purchase/i18n/nl_NL.po @@ -21,9 +21,9 @@ msgstr "" "X-Generator: Weblate 3.0.1\n" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_account_invoice -msgid "Invoice" -msgstr "Factuur" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" +msgstr "" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__payment_mode_id @@ -47,34 +47,31 @@ msgstr "" "leveranciersfactuur." #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different payment mode." msgstr "Geselecteerde inkooporders hebben verschillende betaalwijzen." #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "Geselecteerde inkooporders hebben verschillende banken." -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -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:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "Waarschuwing" +#~ msgid "Invoice" +#~ msgstr "Factuur" + #, fuzzy #~ msgid "Procurement Rule" #~ msgstr "Verwerving" diff --git a/account_payment_purchase/i18n/pl.po b/account_payment_purchase/i18n/pl.po index 27e20f3a5f5b..3b78efbf7e01 100644 --- a/account_payment_purchase/i18n/pl.po +++ b/account_payment_purchase/i18n/pl.po @@ -21,9 +21,9 @@ msgstr "" "%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" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" +msgstr "" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__payment_mode_id @@ -44,30 +44,27 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, 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 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "" -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -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:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "" + +#~ msgid "Invoice" +#~ msgstr "Faktura" diff --git a/account_payment_purchase/i18n/pt.po b/account_payment_purchase/i18n/pt.po index e354b76b7daf..7dfae9ff3b08 100644 --- a/account_payment_purchase/i18n/pt.po +++ b/account_payment_purchase/i18n/pt.po @@ -20,9 +20,9 @@ msgstr "" "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" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" +msgstr "" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__payment_mode_id @@ -43,30 +43,27 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, 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 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "" -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -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:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "Aviso" + +#~ msgid "Invoice" +#~ msgstr "Fatura" diff --git a/account_payment_purchase/i18n/pt_BR.po b/account_payment_purchase/i18n/pt_BR.po index 129df3c5a283..00e033990331 100644 --- a/account_payment_purchase/i18n/pt_BR.po +++ b/account_payment_purchase/i18n/pt_BR.po @@ -12,8 +12,8 @@ msgstr "" "POT-Creation-Date: 2018-05-23 08:41+0000\n" "PO-Revision-Date: 2019-08-26 15:01+0000\n" "Last-Translator: Rodrigo Macedo \n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/teams/" -"23907/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/" +"teams/23907/pt_BR/)\n" "Language: pt_BR\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -22,9 +22,9 @@ msgstr "" "X-Generator: Weblate 3.8\n" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_account_invoice -msgid "Invoice" -msgstr "Fatura" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" +msgstr "" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__payment_mode_id @@ -48,34 +48,34 @@ msgstr "" "fatura 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:0 #, python-format msgid "Selected purchase order have different payment mode." msgstr "O pedido de compra selecionado tem um modo de pagamento diferente." #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:27 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "O pedido de compra selecionado tem um banco fornecedor diferente." -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -msgstr "Regra de Estoque" - #. 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:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "Avisos" +#~ msgid "Invoice" +#~ msgstr "Fatura" + +#~ msgid "Stock Rule" +#~ msgstr "Regra de Estoque" + #, fuzzy #~ msgid "Procurement Rule" #~ msgstr "Aprovisionamento" diff --git a/account_payment_purchase/i18n/pt_PT.po b/account_payment_purchase/i18n/pt_PT.po index 17fe45a4629e..b4ef4482f486 100644 --- a/account_payment_purchase/i18n/pt_PT.po +++ b/account_payment_purchase/i18n/pt_PT.po @@ -21,9 +21,9 @@ msgstr "" "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" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" +msgstr "" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__payment_mode_id @@ -44,34 +44,31 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, 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 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "" -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -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:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "Aviso" +#~ msgid "Invoice" +#~ msgstr "Fatura" + #, fuzzy #~ msgid "Procurement Rule" #~ msgstr "Aquisições" diff --git a/account_payment_purchase/i18n/ro.po b/account_payment_purchase/i18n/ro.po index 7afce17d6056..854e1c5638e7 100644 --- a/account_payment_purchase/i18n/ro.po +++ b/account_payment_purchase/i18n/ro.po @@ -21,9 +21,9 @@ msgstr "" "2:1));\n" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_account_invoice -msgid "Invoice" -msgstr "Factura" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" +msgstr "" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__payment_mode_id @@ -44,34 +44,31 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, 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 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "" -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -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:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "" +#~ msgid "Invoice" +#~ msgstr "Factura" + #, fuzzy #~ msgid "Procurement Rule" #~ msgstr "Aprovizionare" diff --git a/account_payment_purchase/i18n/ru.po b/account_payment_purchase/i18n/ru.po index 945c60d7a598..924a1c986f87 100644 --- a/account_payment_purchase/i18n/ru.po +++ b/account_payment_purchase/i18n/ru.po @@ -21,9 +21,9 @@ msgstr "" "%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 "Счет" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" +msgstr "" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__payment_mode_id @@ -44,30 +44,27 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, 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 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "" -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -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:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "" + +#~ msgid "Invoice" +#~ msgstr "Счет" diff --git a/account_payment_purchase/i18n/sk.po b/account_payment_purchase/i18n/sk.po index 342f3c44ef7a..3f6b1c3c09e3 100644 --- a/account_payment_purchase/i18n/sk.po +++ b/account_payment_purchase/i18n/sk.po @@ -19,8 +19,8 @@ msgstr "" "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" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" msgstr "" #. module: account_payment_purchase @@ -42,30 +42,24 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, 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 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "" -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -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:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "" diff --git a/account_payment_purchase/i18n/sk_SK.po b/account_payment_purchase/i18n/sk_SK.po index f2218dbcee92..47f79772f97f 100644 --- a/account_payment_purchase/i18n/sk_SK.po +++ b/account_payment_purchase/i18n/sk_SK.po @@ -20,9 +20,9 @@ msgstr "" "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" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" +msgstr "" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__payment_mode_id @@ -43,30 +43,27 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, 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 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "" -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -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:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "" + +#~ msgid "Invoice" +#~ msgstr "Faktúra" diff --git a/account_payment_purchase/i18n/sl.po b/account_payment_purchase/i18n/sl.po index 7feee227caa3..98183d46352f 100644 --- a/account_payment_purchase/i18n/sl.po +++ b/account_payment_purchase/i18n/sl.po @@ -21,9 +21,9 @@ msgstr "" "%100==4 ? 2 : 3);\n" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_account_invoice -msgid "Invoice" -msgstr "Račun" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" +msgstr "" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__payment_mode_id @@ -46,34 +46,31 @@ 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:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, 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 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "" -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -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:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "Opozorilo" +#~ msgid "Invoice" +#~ msgstr "Račun" + #, fuzzy #~ msgid "Procurement Rule" #~ msgstr "Oskrbovanje" diff --git a/account_payment_purchase/i18n/sv.po b/account_payment_purchase/i18n/sv.po index bd3e0df6102c..32b0335dbe58 100644 --- a/account_payment_purchase/i18n/sv.po +++ b/account_payment_purchase/i18n/sv.po @@ -19,9 +19,9 @@ msgstr "" "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" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" +msgstr "" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__payment_mode_id @@ -42,30 +42,27 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, 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 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "" -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -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:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "" + +#~ msgid "Invoice" +#~ msgstr "Faktura" diff --git a/account_payment_purchase/i18n/th.po b/account_payment_purchase/i18n/th.po index 53e7295d47c3..d5dbd32d3325 100644 --- a/account_payment_purchase/i18n/th.po +++ b/account_payment_purchase/i18n/th.po @@ -19,9 +19,9 @@ msgstr "" "Plural-Forms: nplurals=1; plural=0;\n" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_account_invoice -msgid "Invoice" -msgstr "ใบแจ้งหนี้" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" +msgstr "" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__payment_mode_id @@ -42,30 +42,27 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, 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 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "" -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -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:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "" + +#~ msgid "Invoice" +#~ msgstr "ใบแจ้งหนี้" diff --git a/account_payment_purchase/i18n/tr.po b/account_payment_purchase/i18n/tr.po index 0d6ac22b74a9..cc246a200f4e 100644 --- a/account_payment_purchase/i18n/tr.po +++ b/account_payment_purchase/i18n/tr.po @@ -20,9 +20,9 @@ msgstr "" "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" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" +msgstr "" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__payment_mode_id @@ -43,30 +43,27 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, 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 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "" -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -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:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "Uyarı" + +#~ msgid "Invoice" +#~ msgstr "Fatura" diff --git a/account_payment_purchase/i18n/tr_TR.po b/account_payment_purchase/i18n/tr_TR.po index 8b0b33242357..550b5dc95936 100644 --- a/account_payment_purchase/i18n/tr_TR.po +++ b/account_payment_purchase/i18n/tr_TR.po @@ -20,9 +20,9 @@ msgstr "" "Plural-Forms: nplurals=1; plural=0;\n" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_account_invoice -msgid "Invoice" -msgstr "Fatura" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" +msgstr "" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__payment_mode_id @@ -43,34 +43,31 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, 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 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "" -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -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:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "" +#~ msgid "Invoice" +#~ msgstr "Fatura" + #, fuzzy #~ msgid "Procurement Rule" #~ msgstr "Satın alma" diff --git a/account_payment_purchase/i18n/vi_VN.po b/account_payment_purchase/i18n/vi_VN.po index 1ddb30c17978..4ab55b4782ba 100644 --- a/account_payment_purchase/i18n/vi_VN.po +++ b/account_payment_purchase/i18n/vi_VN.po @@ -20,8 +20,8 @@ msgstr "" "Plural-Forms: nplurals=1; plural=0;\n" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_account_invoice -msgid "Invoice" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" msgstr "" #. module: account_payment_purchase @@ -43,30 +43,24 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, 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 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "" -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -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:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "" diff --git a/account_payment_purchase/i18n/zh_CN.po b/account_payment_purchase/i18n/zh_CN.po index 1cf3adafca19..2fd1a1a03365 100644 --- a/account_payment_purchase/i18n/zh_CN.po +++ b/account_payment_purchase/i18n/zh_CN.po @@ -21,9 +21,9 @@ msgstr "" "Plural-Forms: nplurals=1; plural=0;\n" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_account_invoice -msgid "Invoice" -msgstr "发票" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" +msgstr "" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__payment_mode_id @@ -44,34 +44,31 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, 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 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "" -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -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:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "警告" +#~ msgid "Invoice" +#~ msgstr "发票" + #, fuzzy #~ msgid "Procurement Rule" #~ msgstr "补货" diff --git a/account_payment_purchase/i18n/zh_TW.po b/account_payment_purchase/i18n/zh_TW.po index c5837f91656c..004e7095aab2 100644 --- a/account_payment_purchase/i18n/zh_TW.po +++ b/account_payment_purchase/i18n/zh_TW.po @@ -20,9 +20,9 @@ msgstr "" "Plural-Forms: nplurals=1; plural=0;\n" #. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_account_invoice -msgid "Invoice" -msgstr "發票" +#: model:ir.model,name:account_payment_purchase.model_account_move +msgid "Journal Entries" +msgstr "" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__payment_mode_id @@ -43,30 +43,27 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:19 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, 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 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "" -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_rule -msgid "Stock Rule" -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:18 -#: code:addons/account_payment_purchase/models/account_invoice.py:26 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" msgstr "" + +#~ msgid "Invoice" +#~ msgstr "發票" diff --git a/account_payment_purchase/models/__init__.py b/account_payment_purchase/models/__init__.py index 4a3b74aaf572..fbd9ff8ae118 100644 --- a/account_payment_purchase/models/__init__.py +++ b/account_payment_purchase/models/__init__.py @@ -1,3 +1,3 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from . import account_invoice, purchase_order, stock_rule +from . import account_invoice, purchase_order diff --git a/account_payment_purchase/models/stock_rule.py b/account_payment_purchase/models/stock_rule.py deleted file mode 100644 index 51ef93038fb8..000000000000 --- a/account_payment_purchase/models/stock_rule.py +++ /dev/null @@ -1,24 +0,0 @@ -# Copyright 2015 Tecnativa - Pedro M. Baeza -# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html - -from odoo import models - - -class StockRule(models.Model): - _inherit = "stock.rule" - - def _prepare_purchase_order(self, company_id, origins, values): - """Propagate payment mode on MTO/drop shipping.""" - res = super(StockRule, self)._prepare_purchase_order( - company_id, origins, values - ) - values = values[0] - partner = values["supplier"].name - if partner: - res["payment_mode_id"] = partner.with_context( - force_company=self.company_id.id - ).supplier_payment_mode_id.id - res["supplier_partner_bank_id"] = self.env[ - "purchase.order" - ]._get_default_supplier_partner_bank(partner) - return res diff --git a/account_payment_purchase/readme/CONTRIBUTORS.rst b/account_payment_purchase/readme/CONTRIBUTORS.rst index 3a09c62d4fb9..2cecd63369c0 100644 --- a/account_payment_purchase/readme/CONTRIBUTORS.rst +++ b/account_payment_purchase/readme/CONTRIBUTORS.rst @@ -10,3 +10,4 @@ * Nikul Chaudhary * Miquel Raïch +* Andrea Stirpe diff --git a/account_payment_purchase/readme/INSTALL.rst b/account_payment_purchase/readme/INSTALL.rst index c1b712414c91..09b85384186b 100644 --- a/account_payment_purchase/readme/INSTALL.rst +++ b/account_payment_purchase/readme/INSTALL.rst @@ -1,6 +1,6 @@ This module depends on : -- purchase_stock +- purchase - account_payment_partner This module is part of the OCA/bank-payment suite. diff --git a/account_payment_purchase/static/description/index.html b/account_payment_purchase/static/description/index.html index 10310f191e0f..fd81d2242824 100644 --- a/account_payment_purchase/static/description/index.html +++ b/account_payment_purchase/static/description/index.html @@ -393,7 +393,7 @@

    Account Payment Purchase

    Installation

    This module depends on :

      -
    • purchase_stock
    • +
    • purchase
    • account_payment_partner

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

    @@ -441,6 +441,7 @@

    Contributors

  • Nikul Chaudhary <nikulchaudhary2112@gmail.com>
  • Miquel Raïch <miquel.raich@forgeflow.com>
  • +
  • Andrea Stirpe <a.stirpe@onestein.nl>
  • diff --git a/account_payment_purchase/tests/test_account_payment_purchase.py b/account_payment_purchase/tests/test_account_payment_purchase.py index f882e511174b..46d0f57b9e4b 100644 --- a/account_payment_purchase/tests/test_account_payment_purchase.py +++ b/account_payment_purchase/tests/test_account_payment_purchase.py @@ -44,7 +44,6 @@ def setUpClass(cls): 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})], @@ -77,10 +76,6 @@ def test_onchange_partner_id_purchase_order(self): def test_purchase_order_invoicing(self): self.purchase.button_confirm() - picking = self.purchase.picking_ids[0] - picking.action_confirm() - picking.move_lines.write({"quantity_done": 1.0}) - picking.button_validate() invoice = self.env["account.move"].create( {"partner_id": self.partner.id, "type": "in_invoice"} @@ -91,17 +86,11 @@ def test_purchase_order_invoicing(self): self.purchase.invoice_ids[0].payment_mode_id, self.payment_mode ) - def test_picking_from_purchase_order_invoicing(self): + def test_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 + product = self.env["product.product"].create({"name": "Test product"}) + self.purchase.order_line[0].product_id = product self.purchase.button_confirm() - picking = self.purchase.picking_ids[0] - picking.action_confirm() - picking.move_lines.write({"quantity_done": 1.0}) - picking.button_validate() invoice = self.env["account.move"].create( {"partner_id": self.partner.id, "type": "in_invoice"} @@ -113,29 +102,20 @@ def test_picking_from_purchase_order_invoicing(self): payment_mode2 = self.payment_mode.copy() purchase2.payment_mode_id = payment_mode2 purchase2.button_confirm() - picking = purchase2.picking_ids[0] - picking.action_confirm() - picking.move_lines.write({"quantity_done": 1.0}) - picking.button_validate() + invoice.purchase_id = purchase2 result = invoice._onchange_purchase_auto_complete() self.assertEqual( result and result.get("warning", {}).get("title", False), "Warning" ) - def test_picking_from_purchase_order_invoicing_bank(self): + def test_from_purchase_order_invoicing_bank(self): # Test partner_bank - stockable_product = self.env["product.product"].create( - {"name": "Test stockable product", "type": "product"} - ) - self.purchase.order_line[0].product_id = stockable_product + product = self.env["product.product"].create({"name": "Test product"}) + self.purchase.order_line[0].product_id = product self.purchase.payment_mode_id = False self.purchase.supplier_partner_bank_id = self.bank self.purchase.button_confirm() - picking = self.purchase.picking_ids[0] - picking.action_confirm() - picking.move_lines.write({"quantity_done": 1.0}) - picking.button_validate() invoice = self.env["account.move"].create( {"partner_id": self.partner.id, "type": "in_invoice"} @@ -146,38 +126,9 @@ def test_picking_from_purchase_order_invoicing_bank(self): purchase2 = self.purchase.copy() purchase2.supplier_partner_bank_id = self.bank2 purchase2.button_confirm() - picking = purchase2.picking_ids[0] - picking.action_confirm() - picking.move_lines.write({"quantity_done": 1.0}) - picking.button_validate() + invoice.purchase_id = purchase2 result = invoice._onchange_purchase_auto_complete() self.assertEqual( result and result.get("warning", {}).get("title", False), "Warning" ) - - def test_procurement_buy_payment_mode(self): - route = self.env.ref("purchase_stock.route_warehouse0_buy") - rule = self.env["stock.rule"].search([("route_id", "=", route.id)], limit=1) - rule._run_buy( - procurements=[ - ( - self.env["procurement.group"].Procurement( - self.mto_product, - 1, - self.mto_product.uom_id, - self.env["stock.location"].search([], limit=1), - "Procurement order test", - "Test", - rule.company_id, - { - "company_id": rule.company_id, - "date_planned": fields.Datetime.now(), - }, - ), - rule, - ) - ] - ) - purchase = self.env["purchase.order"].search([("origin", "=", "Test")]) - self.assertEqual(purchase.payment_mode_id, self.payment_mode) From c14bcf6b76a626753ce6d2366cf9606601453207 Mon Sep 17 00:00:00 2001 From: Rodrigo Macedo Date: Wed, 1 Jul 2020 18:05:37 +0000 Subject: [PATCH 34/45] Translated using Weblate (Portuguese (Brazil)) Currently translated at 100.0% (8 of 8 strings) Translation: bank-payment-13.0/bank-payment-13.0-account_payment_purchase Translate-URL: https://translation.odoo-community.org/projects/bank-payment-13-0/bank-payment-13-0-account_payment_purchase/pt_BR/ --- account_payment_purchase/i18n/pt_BR.po | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/account_payment_purchase/i18n/pt_BR.po b/account_payment_purchase/i18n/pt_BR.po index 00e033990331..1151ba0c8de5 100644 --- a/account_payment_purchase/i18n/pt_BR.po +++ b/account_payment_purchase/i18n/pt_BR.po @@ -10,21 +10,21 @@ 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: 2019-08-26 15:01+0000\n" +"PO-Revision-Date: 2020-07-01 20:19+0000\n" "Last-Translator: Rodrigo Macedo \n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/" -"teams/23907/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/teams/" +"23907/pt_BR/)\n" "Language: pt_BR\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" "Plural-Forms: nplurals=2; plural=n > 1;\n" -"X-Generator: Weblate 3.8\n" +"X-Generator: Weblate 3.10\n" #. module: account_payment_purchase #: model:ir.model,name:account_payment_purchase.model_account_move msgid "Journal Entries" -msgstr "" +msgstr "Entradas Diárias" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__payment_mode_id From 0d4d583b4b9745cdb3c8f5cec32062dc57499e8c Mon Sep 17 00:00:00 2001 From: Ignacio Buioli Date: Thu, 6 Aug 2020 23:34:51 +0000 Subject: [PATCH 35/45] Added translation using Weblate (Spanish (Argentina)) --- account_payment_purchase/i18n/es_AR.po | 62 ++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 account_payment_purchase/i18n/es_AR.po diff --git a/account_payment_purchase/i18n/es_AR.po b/account_payment_purchase/i18n/es_AR.po new file mode 100644 index 000000000000..d2458d74a579 --- /dev/null +++ b/account_payment_purchase/i18n/es_AR.po @@ -0,0 +1,62 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_payment_purchase +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 13.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: es_AR\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_move +msgid "Journal Entries" +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_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:0 +#, python-format +msgid "Selected purchase order have different payment mode." +msgstr "" + +#. module: account_payment_purchase +#: code:addons/account_payment_purchase/models/account_invoice.py:0 +#, 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:0 +#: code:addons/account_payment_purchase/models/account_invoice.py:0 +#, python-format +msgid "Warning" +msgstr "" From feb6b55e9fc4070c6ea19b74d28813d42910c6d1 Mon Sep 17 00:00:00 2001 From: Ignacio Buioli Date: Fri, 7 Aug 2020 03:15:34 +0000 Subject: [PATCH 36/45] Translated using Weblate (Spanish (Argentina)) Currently translated at 100.0% (8 of 8 strings) Translation: bank-payment-13.0/bank-payment-13.0-account_payment_purchase Translate-URL: https://translation.odoo-community.org/projects/bank-payment-13-0/bank-payment-13-0-account_payment_purchase/es_AR/ --- account_payment_purchase/i18n/es_AR.po | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/account_payment_purchase/i18n/es_AR.po b/account_payment_purchase/i18n/es_AR.po index d2458d74a579..73d6baccc20a 100644 --- a/account_payment_purchase/i18n/es_AR.po +++ b/account_payment_purchase/i18n/es_AR.po @@ -6,28 +6,30 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 13.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: Automatically generated\n" +"PO-Revision-Date: 2020-08-07 05:59+0000\n" +"Last-Translator: Ignacio Buioli \n" "Language-Team: none\n" "Language: es_AR\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" "Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 3.10\n" #. module: account_payment_purchase #: model:ir.model,name:account_payment_purchase.model_account_move msgid "Journal Entries" -msgstr "" +msgstr "Asientos Contables" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__payment_mode_id msgid "Payment Mode" -msgstr "" +msgstr "Modo de Pago" #. module: account_payment_purchase #: model:ir.model,name:account_payment_purchase.model_purchase_order msgid "Purchase Order" -msgstr "" +msgstr "Pedido de Compra" #. module: account_payment_purchase #: model:ir.model.fields,help:account_payment_purchase.field_purchase_order__supplier_partner_bank_id @@ -36,27 +38,30 @@ msgid "" "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 su empresa debe " +"enviar el pago. Este campo se copia del socio y se copiará en la factura del " +"proveedor." #. module: account_payment_purchase #: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different payment mode." -msgstr "" +msgstr "El pedido de compra seleccionado tiene un modo de pago diferente." #. module: account_payment_purchase #: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." -msgstr "" +msgstr "El pedido de compra seleccionado tiene un banco de proveedor diferente." #. 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 "Cienta del Banco del Proveedor" #. module: account_payment_purchase #: code:addons/account_payment_purchase/models/account_invoice.py:0 #: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" -msgstr "" +msgstr "Advertencia" From ab2736c56a371eaa63e4076fe19f71afed2bc45f Mon Sep 17 00:00:00 2001 From: Carlos Roca Date: Fri, 22 Jan 2021 12:46:11 +0100 Subject: [PATCH 37/45] [MIG] account_payment_purchase: Migration to v14 --- account_payment_purchase/README.rst | 15 +++++++------ account_payment_purchase/__manifest__.py | 2 +- .../i18n/account_payment_purchase.pot | 22 +++++++++++++++++-- .../models/account_invoice.py | 4 ++-- .../readme/CONTRIBUTORS.rst | 5 +++-- .../static/description/index.html | 11 +++++----- .../tests/test_account_payment_purchase.py | 8 +++---- 7 files changed, 44 insertions(+), 23 deletions(-) diff --git a/account_payment_purchase/README.rst b/account_payment_purchase/README.rst index 03b8575dfaa1..1418325fa965 100644 --- a/account_payment_purchase/README.rst +++ b/account_payment_purchase/README.rst @@ -14,13 +14,13 @@ Account Payment Purchase :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/13.0/account_payment_purchase + :target: https://github.com/OCA/bank-payment/tree/14.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-13-0/bank-payment-13-0-account_payment_purchase + :target: https://translation.odoo-community.org/projects/bank-payment-14-0/bank-payment-14-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/173/13.0 + :target: https://runbot.odoo-community.org/runbot/173/14.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -69,7 +69,7 @@ Bug Tracker Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -92,8 +92,9 @@ Contributors * Abraham Anes * `Tecnativa `_: - * Pedro M. Baeza - * Vicent Cubells + * Pedro M. Baeza + * Vicent Cubells + * Carlos Roca * Nikul Chaudhary * Miquel Raïch @@ -112,6 +113,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. -This module is part of the `OCA/bank-payment `_ project on GitHub. +This module is part of the `OCA/bank-payment `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/account_payment_purchase/__manifest__.py b/account_payment_purchase/__manifest__.py index 090741a042f8..7fbadc487854 100644 --- a/account_payment_purchase/__manifest__.py +++ b/account_payment_purchase/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Account Payment Purchase", - "version": "13.0.1.0.0", + "version": "14.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/i18n/account_payment_purchase.pot b/account_payment_purchase/i18n/account_payment_purchase.pot index 0cda87a5c103..a466db856370 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 13.0\n" +"Project-Id-Version: Odoo Server 14.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: \n" "Language-Team: \n" @@ -13,9 +13,27 @@ msgstr "" "Content-Transfer-Encoding: \n" "Plural-Forms: \n" +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_account_move__display_name +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__display_name +msgid "Display Name" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_account_move__id +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__id +msgid "ID" +msgstr "" + #. module: account_payment_purchase #: model:ir.model,name:account_payment_purchase.model_account_move -msgid "Journal Entries" +msgid "Journal Entry" +msgstr "" + +#. module: account_payment_purchase +#: model:ir.model.fields,field_description:account_payment_purchase.field_account_move____last_update +#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order____last_update +msgid "Last Modified on" msgstr "" #. module: account_payment_purchase diff --git a/account_payment_purchase/models/account_invoice.py b/account_payment_purchase/models/account_invoice.py index 9b4b4a4c4f19..6b043200654f 100644 --- a/account_payment_purchase/models/account_invoice.py +++ b/account_payment_purchase/models/account_invoice.py @@ -20,11 +20,11 @@ def _onchange_purchase_auto_complete(self): } return res self.payment_mode_id = new_mode - if self.invoice_partner_bank_id and self.invoice_partner_bank_id.id != new_bank: + 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.invoice_partner_bank_id = new_bank + self.partner_bank_id = new_bank return res diff --git a/account_payment_purchase/readme/CONTRIBUTORS.rst b/account_payment_purchase/readme/CONTRIBUTORS.rst index 2cecd63369c0..9a2efc63161e 100644 --- a/account_payment_purchase/readme/CONTRIBUTORS.rst +++ b/account_payment_purchase/readme/CONTRIBUTORS.rst @@ -5,8 +5,9 @@ * Abraham Anes * `Tecnativa `_: - * Pedro M. Baeza - * Vicent Cubells + * Pedro M. Baeza + * Vicent Cubells + * Carlos Roca * Nikul Chaudhary * Miquel Raïch diff --git a/account_payment_purchase/static/description/index.html b/account_payment_purchase/static/description/index.html index fd81d2242824..5db43ee376e7 100644 --- a/account_payment_purchase/static/description/index.html +++ b/account_payment_purchase/static/description/index.html @@ -367,7 +367,7 @@

    Account Payment Purchase

    !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

    +

    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.

    @@ -414,7 +414,7 @@

    Bug Tracker

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

    +feedback.

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

    @@ -435,8 +435,9 @@

    Contributors

  • Raphaël Valyi
  • Abraham Anes <abraham@studio73.es>
  • Tecnativa:
  • Nikul Chaudhary <nikulchaudhary2112@gmail.com>
  • @@ -451,7 +452,7 @@

    Maintainers

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

    -

    This module is part of the OCA/bank-payment project on GitHub.

    +

    This module is part of the OCA/bank-payment project on GitHub.

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

    diff --git a/account_payment_purchase/tests/test_account_payment_purchase.py b/account_payment_purchase/tests/test_account_payment_purchase.py index 46d0f57b9e4b..47463454632c 100644 --- a/account_payment_purchase/tests/test_account_payment_purchase.py +++ b/account_payment_purchase/tests/test_account_payment_purchase.py @@ -78,7 +78,7 @@ def test_purchase_order_invoicing(self): self.purchase.button_confirm() invoice = self.env["account.move"].create( - {"partner_id": self.partner.id, "type": "in_invoice"} + {"partner_id": self.partner.id, "move_type": "in_invoice"} ) with Form(invoice) as inv: inv.purchase_id = self.purchase @@ -93,7 +93,7 @@ def test_from_purchase_order_invoicing(self): self.purchase.button_confirm() invoice = self.env["account.move"].create( - {"partner_id": self.partner.id, "type": "in_invoice"} + {"partner_id": self.partner.id, "move_type": "in_invoice"} ) invoice.purchase_id = self.purchase invoice._onchange_purchase_auto_complete() @@ -118,11 +118,11 @@ def test_from_purchase_order_invoicing_bank(self): self.purchase.button_confirm() invoice = self.env["account.move"].create( - {"partner_id": self.partner.id, "type": "in_invoice"} + {"partner_id": self.partner.id, "move_type": "in_invoice"} ) invoice.purchase_id = self.purchase invoice._onchange_purchase_auto_complete() - self.assertEqual(invoice.invoice_partner_bank_id, self.bank) + self.assertEqual(invoice.partner_bank_id, self.bank) purchase2 = self.purchase.copy() purchase2.supplier_partner_bank_id = self.bank2 purchase2.button_confirm() From 5d35ac01c1ed952fcb6efff87ea03ee59f594115 Mon Sep 17 00:00:00 2001 From: Yves Le Doeuff Date: Thu, 11 Feb 2021 14:36:26 +0000 Subject: [PATCH 38/45] Translated using Weblate (French) Currently translated at 100.0% (8 of 8 strings) Translation: bank-payment-14.0/bank-payment-14.0-account_payment_purchase Translate-URL: https://translation.odoo-community.org/projects/bank-payment-14-0/bank-payment-14-0-account_payment_purchase/fr_FR/ --- account_payment_purchase/i18n/fr_FR.po | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/account_payment_purchase/i18n/fr_FR.po b/account_payment_purchase/i18n/fr_FR.po index ed1bfdb7ed4a..8cf3339bfb9f 100644 --- a/account_payment_purchase/i18n/fr_FR.po +++ b/account_payment_purchase/i18n/fr_FR.po @@ -8,25 +8,26 @@ 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" +"PO-Revision-Date: 2021-02-12 18:45+0000\n" +"Last-Translator: Yves Le Doeuff \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" -"Plural-Forms: nplurals=2; plural=(n > 1);\n" +"Plural-Forms: nplurals=2; plural=n > 1;\n" +"X-Generator: Weblate 4.3.2\n" #. module: account_payment_purchase #: model:ir.model,name:account_payment_purchase.model_account_move msgid "Journal Entries" -msgstr "" +msgstr "Écritures comptabilisées + non-comptabilisées" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__payment_mode_id msgid "Payment Mode" -msgstr "" +msgstr "Mode de règlement" #. module: account_payment_purchase #: model:ir.model,name:account_payment_purchase.model_purchase_order @@ -40,26 +41,30 @@ msgid "" "the payment. This field is copied from the partner and will be copied to the " "supplier invoice." msgstr "" +"Sélectionnez le compte bancaire de votre fournisseur sur lequel votre " +"société pourra envoyer le paiement. Cette information est reprise de la " +"fiche partenaire et copiée sur la facture fournisseur." #. module: account_payment_purchase #: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" +"Les commandes d'achat sélectionnées ont des modes de paiement différents." #. module: account_payment_purchase #: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Selected purchase order have different supplier bank." -msgstr "" +msgstr "Les commandes d'achat sélectionnées ont des banques différentes." #. 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 "Compte bancaire fournisseur" #. module: account_payment_purchase #: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" -msgstr "" +msgstr "Attention" From 8ca37bba8b7c0725ce18db6e13c999e368c1595f Mon Sep 17 00:00:00 2001 From: Simon S Date: Wed, 17 Nov 2021 10:39:09 +0000 Subject: [PATCH 39/45] Translated using Weblate (Swedish) Currently translated at 62.5% (5 of 8 strings) Translation: bank-payment-14.0/bank-payment-14.0-account_payment_purchase Translate-URL: https://translation.odoo-community.org/projects/bank-payment-14-0/bank-payment-14-0-account_payment_purchase/sv/ --- account_payment_purchase/i18n/sv.po | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/account_payment_purchase/i18n/sv.po b/account_payment_purchase/i18n/sv.po index 32b0335dbe58..e7ff200fd7fa 100644 --- a/account_payment_purchase/i18n/sv.po +++ b/account_payment_purchase/i18n/sv.po @@ -9,29 +9,30 @@ 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" +"PO-Revision-Date: 2021-11-17 13:36+0000\n" +"Last-Translator: Simon S \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" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.3.2\n" #. module: account_payment_purchase #: model:ir.model,name:account_payment_purchase.model_account_move msgid "Journal Entries" -msgstr "" +msgstr "Verifikat" #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__payment_mode_id msgid "Payment Mode" -msgstr "" +msgstr "Betalningssätt" #. module: account_payment_purchase #: model:ir.model,name:account_payment_purchase.model_purchase_order msgid "Purchase Order" -msgstr "" +msgstr "Inköpsorder" #. module: account_payment_purchase #: model:ir.model.fields,help:account_payment_purchase.field_purchase_order__supplier_partner_bank_id @@ -56,13 +57,13 @@ 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 "" +msgstr "Leverantörens bankkonto" #. module: account_payment_purchase #: code:addons/account_payment_purchase/models/account_invoice.py:0 #, python-format msgid "Warning" -msgstr "" +msgstr "Varning" #~ msgid "Invoice" #~ msgstr "Faktura" From 77a51dc0345246cf604a280c217bbccdb5730470 Mon Sep 17 00:00:00 2001 From: Jordi Ballester Date: Thu, 29 Apr 2021 01:56:38 +0200 Subject: [PATCH 40/45] [account_payment_purchase][fix] Only warn for non-blank payment mode or bank PO - Only issue a warning message if the PO had a non-blank payment mode or bank. --- account_payment_purchase/__manifest__.py | 2 +- .../models/account_invoice.py | 4 ++-- .../tests/test_account_payment_purchase.py | 15 ++++++++++----- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/account_payment_purchase/__manifest__.py b/account_payment_purchase/__manifest__.py index 7fbadc487854..3d4b4108cada 100644 --- a/account_payment_purchase/__manifest__.py +++ b/account_payment_purchase/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Account Payment Purchase", - "version": "14.0.1.0.0", + "version": "14.0.1.0.1", "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 6b043200654f..7748490382a0 100644 --- a/account_payment_purchase/models/account_invoice.py +++ b/account_payment_purchase/models/account_invoice.py @@ -13,14 +13,14 @@ def _onchange_purchase_auto_complete(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()._onchange_purchase_auto_complete() or {} - if self.payment_mode_id and self.payment_mode_id.id != new_mode: + if self.payment_mode_id and new_mode and self.payment_mode_id.id != new_mode: res["warning"] = { "title": _("Warning"), "message": _("Selected purchase order have different payment mode."), } return res self.payment_mode_id = new_mode - if self.partner_bank_id and self.partner_bank_id.id != new_bank: + if self.partner_bank_id and new_bank and self.partner_bank_id.id != new_bank: res["warning"] = { "title": _("Warning"), "message": _("Selected purchase order have different supplier bank."), diff --git a/account_payment_purchase/tests/test_account_payment_purchase.py b/account_payment_purchase/tests/test_account_payment_purchase.py index 47463454632c..3464aea6b79c 100644 --- a/account_payment_purchase/tests/test_account_payment_purchase.py +++ b/account_payment_purchase/tests/test_account_payment_purchase.py @@ -13,14 +13,20 @@ def setUpClass(cls): cls.journal = cls.env["account.journal"].create( {"name": "Test journal", "code": "TEST", "type": "general"} ) + cls.payment_method_out = cls.env["account.payment.method"].create( + { + "name": "Test payment method", + "code": "test", + "payment_type": "outbound", + "bank_account_required": True, + } + ) 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, + "payment_method_id": cls.payment_method_out.id, } ) cls.partner = cls.env["res.partner"].create( @@ -75,6 +81,7 @@ def test_onchange_partner_id_purchase_order(self): self.assertEqual(self.purchase.payment_mode_id, self.payment_mode) def test_purchase_order_invoicing(self): + self.purchase.onchange_partner_id() self.purchase.button_confirm() invoice = self.env["account.move"].create( @@ -113,10 +120,8 @@ def test_from_purchase_order_invoicing_bank(self): # Test partner_bank product = self.env["product.product"].create({"name": "Test product"}) self.purchase.order_line[0].product_id = product - self.purchase.payment_mode_id = False self.purchase.supplier_partner_bank_id = self.bank self.purchase.button_confirm() - invoice = self.env["account.move"].create( {"partner_id": self.partner.id, "move_type": "in_invoice"} ) From ce5da9d7ef4e636329774ca830e9a35894909d89 Mon Sep 17 00:00:00 2001 From: Koen Loodts Date: Thu, 16 Dec 2021 15:58:09 +0100 Subject: [PATCH 41/45] [MIG] account_payment_purchase: Migration to 15.0 --- account_payment_purchase/README.rst | 4 ++-- account_payment_purchase/__manifest__.py | 2 +- account_payment_purchase/models/__init__.py | 2 +- .../models/{account_invoice.py => account_move.py} | 6 ++++-- account_payment_purchase/models/purchase_order.py | 3 ++- .../tests/test_account_payment_purchase.py | 13 ++++--------- 6 files changed, 14 insertions(+), 16 deletions(-) rename account_payment_purchase/models/{account_invoice.py => account_move.py} (85%) diff --git a/account_payment_purchase/README.rst b/account_payment_purchase/README.rst index 1418325fa965..b1829004c52c 100644 --- a/account_payment_purchase/README.rst +++ b/account_payment_purchase/README.rst @@ -23,7 +23,7 @@ Account Payment Purchase :target: https://runbot.odoo-community.org/runbot/173/14.0 :alt: Try me on Runbot -|badge1| |badge2| |badge3| |badge4| |badge5| +|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 @@ -113,6 +113,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. -This module is part of the `OCA/bank-payment `_ project on GitHub. +This module is part of the `OCA/bank-payment `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/account_payment_purchase/__manifest__.py b/account_payment_purchase/__manifest__.py index 3d4b4108cada..a2d3a535d756 100644 --- a/account_payment_purchase/__manifest__.py +++ b/account_payment_purchase/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Account Payment Purchase", - "version": "14.0.1.0.1", + "version": "15.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/__init__.py b/account_payment_purchase/models/__init__.py index fbd9ff8ae118..1d9a05322d30 100644 --- a/account_payment_purchase/models/__init__.py +++ b/account_payment_purchase/models/__init__.py @@ -1,3 +1,3 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from . import account_invoice, purchase_order +from . import account_move, purchase_order diff --git a/account_payment_purchase/models/account_invoice.py b/account_payment_purchase/models/account_move.py similarity index 85% rename from account_payment_purchase/models/account_invoice.py rename to account_payment_purchase/models/account_move.py index 7748490382a0..04fc39c0169d 100644 --- a/account_payment_purchase/models/account_invoice.py +++ b/account_payment_purchase/models/account_move.py @@ -19,12 +19,14 @@ def _onchange_purchase_auto_complete(self): "message": _("Selected purchase order have different payment mode."), } return res - self.payment_mode_id = new_mode + elif self.payment_mode_id.id != new_mode: + self.payment_mode_id = new_mode if self.partner_bank_id and new_bank and self.partner_bank_id.id != new_bank: res["warning"] = { "title": _("Warning"), "message": _("Selected purchase order have different supplier bank."), } return res - self.partner_bank_id = new_bank + elif self.partner_bank_id.id != new_bank: + self.partner_bank_id = new_bank return res diff --git a/account_payment_purchase/models/purchase_order.py b/account_payment_purchase/models/purchase_order.py index dba0243e8fb0..6bb4f92af579 100644 --- a/account_payment_purchase/models/purchase_order.py +++ b/account_payment_purchase/models/purchase_order.py @@ -29,7 +29,7 @@ def _get_default_supplier_partner_bank(self, partner): @api.onchange("partner_id", "company_id") def onchange_partner_id(self): - super(PurchaseOrder, self).onchange_partner_id() + ret = super(PurchaseOrder, self).onchange_partner_id() if self.partner_id: self.supplier_partner_bank_id = self._get_default_supplier_partner_bank( self.partner_id @@ -38,3 +38,4 @@ def onchange_partner_id(self): else: self.supplier_partner_bank_id = False self.payment_mode_id = False + return ret diff --git a/account_payment_purchase/tests/test_account_payment_purchase.py b/account_payment_purchase/tests/test_account_payment_purchase.py index 3464aea6b79c..67b65d4ede08 100644 --- a/account_payment_purchase/tests/test_account_payment_purchase.py +++ b/account_payment_purchase/tests/test_account_payment_purchase.py @@ -3,23 +3,18 @@ # License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html from odoo import fields -from odoo.tests import Form, SavepointCase +from odoo.tests import Form, TransactionCase -class TestAccountPaymentPurchase(SavepointCase): +class TestAccountPaymentPurchase(TransactionCase): @classmethod def setUpClass(cls): super(TestAccountPaymentPurchase, cls).setUpClass() cls.journal = cls.env["account.journal"].create( {"name": "Test journal", "code": "TEST", "type": "general"} ) - cls.payment_method_out = cls.env["account.payment.method"].create( - { - "name": "Test payment method", - "code": "test", - "payment_type": "outbound", - "bank_account_required": True, - } + cls.payment_method_out = cls.env.ref( + "account.account_payment_method_manual_out" ) cls.payment_mode = cls.env["account.payment.mode"].create( { From 30511f9d0ee0208ca5c01a20172145e5db91832b Mon Sep 17 00:00:00 2001 From: Cramosh Date: Fri, 25 Feb 2022 12:51:44 +0100 Subject: [PATCH 42/45] [FIX] account_payment_purchase: solved error get payment mode and bank id close #899 --- account_payment_purchase/models/account_move.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/account_payment_purchase/models/account_move.py b/account_payment_purchase/models/account_move.py index 04fc39c0169d..52d1ba67de2c 100644 --- a/account_payment_purchase/models/account_move.py +++ b/account_payment_purchase/models/account_move.py @@ -10,8 +10,16 @@ class AccountMove(models.Model): @api.onchange("purchase_vendor_bill_id", "purchase_id") def _onchange_purchase_auto_complete(self): - new_mode = self.purchase_id.payment_mode_id.id or False - new_bank = self.purchase_id.supplier_partner_bank_id.id or False + + new_mode = ( + self.purchase_vendor_bill_id.purchase_order_id.payment_mode_id.id + or self.purchase_id.payment_mode_id.id + ) + new_bank = ( + self.purchase_vendor_bill_id.purchase_order_id.supplier_partner_bank_id.id + or self.purchase_id.supplier_partner_bank_id.id + ) + res = super()._onchange_purchase_auto_complete() or {} if self.payment_mode_id and new_mode and self.payment_mode_id.id != new_mode: res["warning"] = { From 6ab34e532bab514593a24fe4990561f5ad1f71be Mon Sep 17 00:00:00 2001 From: Vladimir Mitreski Date: Tue, 17 May 2022 12:44:45 +0200 Subject: [PATCH 43/45] [FIX] account_payment_purchase: Make payment method to require bank account Without this fix, the partner_bank_id was being reset to False on change of 'company_id' in the _onchange_purchase_auto_complete method in account.move in the following unit test: def test_from_purchase_order_invoicing_bank That's because in commit 9be9766535e46b53f30de1aa143d92d49bd97acd we switched to getting payment method from env.ref('account.account_payment_method_manual_out'), which has bank_account_required == False by default, while before that we were creating payment method for which we were explicitly setting bank_account_required as True Also tag unit test as post_install --- account_payment_purchase/README.rst | 10 +++---- .../i18n/account_payment_purchase.pot | 28 ++++--------------- .../static/description/index.html | 6 ++-- .../tests/test_account_payment_purchase.py | 4 ++- 4 files changed, 16 insertions(+), 32 deletions(-) diff --git a/account_payment_purchase/README.rst b/account_payment_purchase/README.rst index b1829004c52c..cbb05cd7bd47 100644 --- a/account_payment_purchase/README.rst +++ b/account_payment_purchase/README.rst @@ -14,16 +14,16 @@ Account Payment Purchase :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/14.0/account_payment_purchase + :target: https://github.com/OCA/bank-payment/tree/15.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-14-0/bank-payment-14-0-account_payment_purchase + :target: https://translation.odoo-community.org/projects/bank-payment-15-0/bank-payment-15-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/173/14.0 + :target: https://runbot.odoo-community.org/runbot/173/15.0 :alt: Try me on Runbot -|badge1| |badge2| |badge3| |badge4| |badge5| +|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 @@ -69,7 +69,7 @@ Bug Tracker Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. diff --git a/account_payment_purchase/i18n/account_payment_purchase.pot b/account_payment_purchase/i18n/account_payment_purchase.pot index a466db856370..9c7d4812f414 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 14.0\n" +"Project-Id-Version: Odoo Server 15.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: \n" "Language-Team: \n" @@ -13,29 +13,11 @@ msgstr "" "Content-Transfer-Encoding: \n" "Plural-Forms: \n" -#. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_account_move__display_name -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__display_name -msgid "Display Name" -msgstr "" - -#. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_account_move__id -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__id -msgid "ID" -msgstr "" - #. module: account_payment_purchase #: model:ir.model,name:account_payment_purchase.model_account_move msgid "Journal Entry" msgstr "" -#. module: account_payment_purchase -#: model:ir.model.fields,field_description:account_payment_purchase.field_account_move____last_update -#: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order____last_update -msgid "Last Modified on" -msgstr "" - #. module: account_payment_purchase #: model:ir.model.fields,field_description:account_payment_purchase.field_purchase_order__payment_mode_id msgid "Payment Mode" @@ -55,13 +37,13 @@ msgid "" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:0 +#: code:addons/account_payment_purchase/models/account_move.py:0 #, python-format msgid "Selected purchase order have different payment mode." msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:0 +#: code:addons/account_payment_purchase/models/account_move.py:0 #, python-format msgid "Selected purchase order have different supplier bank." msgstr "" @@ -72,8 +54,8 @@ msgid "Supplier Bank Account" msgstr "" #. module: account_payment_purchase -#: code:addons/account_payment_purchase/models/account_invoice.py:0 -#: code:addons/account_payment_purchase/models/account_invoice.py:0 +#: code:addons/account_payment_purchase/models/account_move.py:0 +#: code:addons/account_payment_purchase/models/account_move.py:0 #, python-format msgid "Warning" msgstr "" diff --git a/account_payment_purchase/static/description/index.html b/account_payment_purchase/static/description/index.html index 5db43ee376e7..02f1b00d5b48 100644 --- a/account_payment_purchase/static/description/index.html +++ b/account_payment_purchase/static/description/index.html @@ -367,7 +367,7 @@

    Account Payment Purchase

    !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

    +

    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.

    @@ -414,7 +414,7 @@

    Bug Tracker

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

    +feedback.

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

    @@ -452,7 +452,7 @@

    Maintainers

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

    -

    This module is part of the OCA/bank-payment project on GitHub.

    +

    This module is part of the OCA/bank-payment project on GitHub.

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

    diff --git a/account_payment_purchase/tests/test_account_payment_purchase.py b/account_payment_purchase/tests/test_account_payment_purchase.py index 67b65d4ede08..07dd5bc43f3e 100644 --- a/account_payment_purchase/tests/test_account_payment_purchase.py +++ b/account_payment_purchase/tests/test_account_payment_purchase.py @@ -3,9 +3,10 @@ # License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html from odoo import fields -from odoo.tests import Form, TransactionCase +from odoo.tests import Form, TransactionCase, tagged +@tagged("-at_install", "post_install") class TestAccountPaymentPurchase(TransactionCase): @classmethod def setUpClass(cls): @@ -16,6 +17,7 @@ def setUpClass(cls): cls.payment_method_out = cls.env.ref( "account.account_payment_method_manual_out" ) + cls.payment_method_out.bank_account_required = True cls.payment_mode = cls.env["account.payment.mode"].create( { "name": "Test payment mode", From 5235cb635d8d7adf8169cf69e1c6f23aa2f69966 Mon Sep 17 00:00:00 2001 From: David Ramia Date: Tue, 20 Dec 2022 07:54:52 +0100 Subject: [PATCH 44/45] [IMP] account_payment_purchase: pre-commit stuff --- .../odoo/addons/account_payment_purchase | 1 + setup/account_payment_purchase/setup.py | 6 ++++++ 2 files changed, 7 insertions(+) create mode 120000 setup/account_payment_purchase/odoo/addons/account_payment_purchase create mode 100644 setup/account_payment_purchase/setup.py diff --git a/setup/account_payment_purchase/odoo/addons/account_payment_purchase b/setup/account_payment_purchase/odoo/addons/account_payment_purchase new file mode 120000 index 000000000000..88258b048f7a --- /dev/null +++ b/setup/account_payment_purchase/odoo/addons/account_payment_purchase @@ -0,0 +1 @@ +../../../../account_payment_purchase \ No newline at end of file diff --git a/setup/account_payment_purchase/setup.py b/setup/account_payment_purchase/setup.py new file mode 100644 index 000000000000..e7b43cf42749 --- /dev/null +++ b/setup/account_payment_purchase/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) From 3094e7e25c8d2efa1c12461ba9b58ef2ddc3b283 Mon Sep 17 00:00:00 2001 From: David Ramia Date: Sun, 23 Oct 2022 18:32:55 +0200 Subject: [PATCH 45/45] [MIG] account_payment_purchase: Migration to 16.0 --- account_payment_purchase/__manifest__.py | 2 +- account_payment_purchase/models/purchase_order.py | 8 ++++++-- .../tests/test_account_payment_purchase.py | 11 ++++++----- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/account_payment_purchase/__manifest__.py b/account_payment_purchase/__manifest__.py index a2d3a535d756..89cb4a503f81 100644 --- a/account_payment_purchase/__manifest__.py +++ b/account_payment_purchase/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Account Payment Purchase", - "version": "15.0.1.0.0", + "version": "16.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/purchase_order.py b/account_payment_purchase/models/purchase_order.py index 6bb4f92af579..88dc46979ef4 100644 --- a/account_payment_purchase/models/purchase_order.py +++ b/account_payment_purchase/models/purchase_order.py @@ -25,11 +25,15 @@ class PurchaseOrder(models.Model): @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 + return ( + partner.bank_ids + and partner.bank_ids.sorted(lambda bank: not bank.allow_out_payment)[0].id + or False + ) @api.onchange("partner_id", "company_id") def onchange_partner_id(self): - ret = super(PurchaseOrder, self).onchange_partner_id() + ret = super().onchange_partner_id() if self.partner_id: self.supplier_partner_bank_id = self._get_default_supplier_partner_bank( self.partner_id diff --git a/account_payment_purchase/tests/test_account_payment_purchase.py b/account_payment_purchase/tests/test_account_payment_purchase.py index 07dd5bc43f3e..1f1501c79402 100644 --- a/account_payment_purchase/tests/test_account_payment_purchase.py +++ b/account_payment_purchase/tests/test_account_payment_purchase.py @@ -3,14 +3,15 @@ # License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html from odoo import fields -from odoo.tests import Form, TransactionCase, tagged +from odoo.tests import TransactionCase, tagged @tagged("-at_install", "post_install") class TestAccountPaymentPurchase(TransactionCase): @classmethod def setUpClass(cls): - super(TestAccountPaymentPurchase, cls).setUpClass() + super().setUpClass() + cls.env = cls.env(context=dict(cls.env.context, tracking_disable=True)) cls.journal = cls.env["account.journal"].create( {"name": "Test journal", "code": "TEST", "type": "general"} ) @@ -49,7 +50,7 @@ def setUpClass(cls): "name": "Test buy product", "uom_id": cls.uom_id, "uom_po_id": cls.uom_id, - "seller_ids": [(0, 0, {"name": cls.partner.id})], + "seller_ids": [(0, 0, {"partner_id": cls.partner.id})], } ) cls.purchase = cls.env["purchase.order"].create( @@ -84,8 +85,8 @@ def test_purchase_order_invoicing(self): invoice = self.env["account.move"].create( {"partner_id": self.partner.id, "move_type": "in_invoice"} ) - with Form(invoice) as inv: - inv.purchase_id = self.purchase + invoice.purchase_id = self.purchase + invoice._onchange_purchase_auto_complete() self.assertEqual( self.purchase.invoice_ids[0].payment_mode_id, self.payment_mode )