From 5b62e5310e376cf724599f1c05d7d0c669d53b0e Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Fri, 31 Oct 2014 23:54:24 +0100 Subject: [PATCH] account_payment_sale_stock: Split for removing stock dependency on sale [DEL] Remove old translations templates [IMP] More reorder on folder structure --- account_payment_purchase/__openerp__.py | 9 ++-- .../i18n/account_payment_purchase.pot | 42 ------------------- .../models/purchase_order.py | 3 +- account_payment_purchase/view/purchase.xml | 26 ------------ 4 files changed, 6 insertions(+), 74 deletions(-) delete mode 100644 account_payment_purchase/i18n/account_payment_purchase.pot delete mode 100644 account_payment_purchase/view/purchase.xml diff --git a/account_payment_purchase/__openerp__.py b/account_payment_purchase/__openerp__.py index e7c258f73..283d67477 100644 --- a/account_payment_purchase/__openerp__.py +++ b/account_payment_purchase/__openerp__.py @@ -30,13 +30,13 @@ Account Payment Purchase ======================== -This module adds 2 fields on purchase orders : *Bank Account* and *Payment +This module adds 2 fields on purchase orders: *Bank Account* and *Payment Mode*. These fields are copied from partner to purchase order and then from purchase order to supplier invoice. -This module is similar to the *purchase_payment* module ; the main difference +This module is similar to the *purchase_payment* module; the main difference is that it doesn't depend on the *account_payment_extension* module (it's not -the only module to conflict with *account_payment_extension* ; all the SEPA +the only module to conflict with *account_payment_extension*; all the SEPA modules in the banking addons conflict with *account_payment_extension*). """, 'author': 'Akretion', @@ -44,7 +44,6 @@ modules in the banking addons conflict with *account_payment_extension*). 'contributors': ['Pedro M. Baeza '], 'depends': [ 'purchase', - 'stock_account', 'account_payment_partner' ], 'conflicts': ['purchase_payment'], @@ -52,5 +51,5 @@ modules in the banking addons conflict with *account_payment_extension*). 'views/purchase_order_view.xml', ], 'installable': True, - 'active': False, + 'auto_install': True, } diff --git a/account_payment_purchase/i18n/account_payment_purchase.pot b/account_payment_purchase/i18n/account_payment_purchase.pot deleted file mode 100644 index 17ed963d5..000000000 --- a/account_payment_purchase/i18n/account_payment_purchase.pot +++ /dev/null @@ -1,42 +0,0 @@ -# Translation of OpenERP Server. -# This file contains the translation of the following modules: -# * account_payment_purchase -# -msgid "" -msgstr "" -"Project-Id-Version: OpenERP Server 7.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-06-09 23:23+0000\n" -"PO-Revision-Date: 2014-06-09 23:23+0000\n" -"Last-Translator: <>\n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Plural-Forms: \n" - -#. module: account_payment_purchase -#: field:purchase.order,payment_mode_id:0 -msgid "Payment Mode" -msgstr "" - -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_stock_picking -msgid "Picking List" -msgstr "" - -#. module: account_payment_purchase -#: model:ir.model,name:account_payment_purchase.model_purchase_order -msgid "Purchase Order" -msgstr "" - -#. module: account_payment_purchase -#: help:purchase.order,supplier_partner_bank_id:0 -msgid "Select the bank account of your supplier on which your company should send the payment. This field is copied from the partner and will be copied to the supplier invoice." -msgstr "" - -#. module: account_payment_purchase -#: field:purchase.order,supplier_partner_bank_id:0 -msgid "Supplier Bank Account" -msgstr "" - diff --git a/account_payment_purchase/models/purchase_order.py b/account_payment_purchase/models/purchase_order.py index e1ca139ff..a8d73c235 100644 --- a/account_payment_purchase/models/purchase_order.py +++ b/account_payment_purchase/models/purchase_order.py @@ -34,7 +34,8 @@ class PurchaseOrder(models.Model): "and will be copied to the supplier invoice.") payment_mode_id = fields.Many2one( 'payment.mode', string='Payment Mode', - domain="[('payment_order_type', '=', 'payment')]") + domain="['|', ('payment_order_type', '=', 'payment'), " + "('payment_order_type', '=', 'both')]") @api.model def _get_default_supplier_partner_bank(self, partner): diff --git a/account_payment_purchase/view/purchase.xml b/account_payment_purchase/view/purchase.xml deleted file mode 100644 index f6b2cffec..000000000 --- a/account_payment_purchase/view/purchase.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - account_payment_purchase.purchase_order.form - purchase.order - - - - - - - - - - -