From 9583855a6557bd404a91335dd542ed77722c4995 Mon Sep 17 00:00:00 2001 From: Ruchir Shukla Date: Tue, 21 Jan 2014 13:25:55 +0530 Subject: [PATCH] link partner funtionality without remote owner --- account_banking/banking_import_transaction.py | 1 - account_banking/wizard/link_partner.py | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/account_banking/banking_import_transaction.py b/account_banking/banking_import_transaction.py index e2b6e2c87..a9b9ac132 100644 --- a/account_banking/banking_import_transaction.py +++ b/account_banking/banking_import_transaction.py @@ -1409,7 +1409,6 @@ class account_bank_statement_line(orm.Model): line.state == 'draft' and not line.partner_id and line.import_transaction_id - and line.import_transaction_id.remote_owner and line.import_transaction_id.remote_account) return res diff --git a/account_banking/wizard/link_partner.py b/account_banking/wizard/link_partner.py index 719843a77..3a74bd6c2 100644 --- a/account_banking/wizard/link_partner.py +++ b/account_banking/wizard/link_partner.py @@ -87,7 +87,7 @@ class link_partner(orm.TransientModel): _('Error'), _('Statement line is already linked to a bank account ')) - if not(transaction and transaction.remote_owner + if not(transaction and transaction.remote_account): raise orm.except_orm( _('Error'), @@ -117,6 +117,8 @@ class link_partner(orm.TransientModel): self.pool, cr, uid, transaction, context=context) if not vals.get('name'): vals['name'] = transaction.remote_owner + if not vals['name']: + vals['name'] = '/' if not vals.get('remote_account'): vals['remote_account'] = transaction.remote_account