From 946d72449b19e5961b620aaa3ded1f787f95d674 Mon Sep 17 00:00:00 2001 From: Jose Maria Alzaga Date: Tue, 15 Nov 2016 09:20:44 +0100 Subject: [PATCH] [IMP] account_payment_order: Remove internal_type=other restriction for transfer account (#312) --- account_payment_order/README.rst | 1 + account_payment_order/__openerp__.py | 4 +++- account_payment_order/models/account_payment_mode.py | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/account_payment_order/README.rst b/account_payment_order/README.rst index b752fee40..155cd61e5 100644 --- a/account_payment_order/README.rst +++ b/account_payment_order/README.rst @@ -67,6 +67,7 @@ Contributors * Raphaël Valyi * Sandy Carter * Angel Moya +* Jose Maria Alzaga Maintainer ---------- diff --git a/account_payment_order/__openerp__.py b/account_payment_order/__openerp__.py index 391c1afbb..0f6b47760 100644 --- a/account_payment_order/__openerp__.py +++ b/account_payment_order/__openerp__.py @@ -4,16 +4,18 @@ # © 2013-2014 ACSONE SA (). # © 2014-2016 Serv. Tecnol. Avanzados - Pedro M. Baeza # © 2016 Akretion (). +# © 2016 Aselcis Consulting (). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { 'name': 'Account Payment Order', - 'version': '9.0.1.1.0', + 'version': '9.0.1.1.1', 'license': 'AGPL-3', 'author': "ACSONE SA/NV, " "Therp BV, " "Serv. Tecnol. Avanzados - Pedro M. Baeza, " "Akretion, " + "Aselcis, " "Odoo Community Association (OCA)", 'website': 'https://github.com/OCA/bank-payment', 'category': 'Banking addons', diff --git a/account_payment_order/models/account_payment_mode.py b/account_payment_order/models/account_payment_mode.py index 9773ab8c0..f0abb3fdb 100644 --- a/account_payment_order/models/account_payment_mode.py +++ b/account_payment_order/models/account_payment_mode.py @@ -61,9 +61,9 @@ class AccountPaymentMode(models.Model): ], string='Offsetting Account', default='bank_account') transfer_account_id = fields.Many2one( 'account.account', string='Transfer Account', - domain=[('internal_type', '=', 'other'), ('reconcile', '=', True)], + domain=[('reconcile', '=', True)], help="Pay off lines in 'file uploaded' payment orders with a move on " - "this account. You can only select accounts of type regular " + "this account. You can only select accounts " "that are marked for reconciliation") transfer_journal_id = fields.Many2one( 'account.journal', string='Transfer Journal',