From 00901adf2b3a18fccaf472f41c6fab6021758fc2 Mon Sep 17 00:00:00 2001 From: Stefan Rijnhart Date: Mon, 15 Jul 2013 15:31:34 +0200 Subject: [PATCH] [FIX] Clearing lines should not have a partner, because of the new constraint on the reconciliation object that prevents reconciliation between various partners. [MGR] Adaptation of the debit module to view changes --- account_banking_payment/model/account_payment.py | 3 ++- account_direct_debit/view/account_payment.xml | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/account_banking_payment/model/account_payment.py b/account_banking_payment/model/account_payment.py index 30a283f33..b238cbeef 100644 --- a/account_banking_payment/model/account_payment.py +++ b/account_banking_payment/model/account_payment.py @@ -315,7 +315,7 @@ class payment_order(orm.Model): line.move_line_id.invoice.number or line.move_line_id.name), 'move_id': move_id, - 'partner_id': line.partner_id.id, + 'partner_id': False, 'account_id': order.mode.transfer_account_id.id, 'credit': (order.payment_order_type == 'payment' and line.amount or 0.0), @@ -329,6 +329,7 @@ class payment_order(orm.Model): # create the debit move line on the receivable account vals.update({ + 'partner_id': line.partner_id.id, 'account_id': line.move_line_id.account_id.id, 'credit': (order.payment_order_type == 'debit' and line.amount or 0.0), diff --git a/account_direct_debit/view/account_payment.xml b/account_direct_debit/view/account_payment.xml index 05797f0b1..74c6bc5a1 100644 --- a/account_direct_debit/view/account_payment.xml +++ b/account_direct_debit/view/account_payment.xml @@ -32,13 +32,13 @@ - {'invisible':['|',('state','!=','draft'),('payment_order_type', '!=', 'payment')]} -