From dd88dc5dd519261919dbe9dec928c06a0b4ce9c0 Mon Sep 17 00:00:00 2001 From: "ARA (OpenERP)" Date: Wed, 5 Jan 2011 11:47:06 +0530 Subject: [PATCH] [IMP]account: account bank statement - usability bzr revid: ara@tinyerp.com-20110105061706-ac8ottk7uylvmafz --- addons/account/account_bank_statement.py | 4 ++-- addons/account/account_view.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/account/account_bank_statement.py b/addons/account/account_bank_statement.py index 0887c8b6c8a..f4a2451ce14 100755 --- a/addons/account/account_bank_statement.py +++ b/addons/account/account_bank_statement.py @@ -416,7 +416,7 @@ class account_bank_statement_line(osv.osv): type = 'supplier' if part.customer == True : type = 'customer' - return type + return {'value': {'type': type}} def onchange_type(self, cr, uid, line_id, partner_id, type, context=None): res = {'value': {}} @@ -428,7 +428,7 @@ class account_bank_statement_line(osv.osv): account_id = False line = self.browse(cr, uid, line_id, context=context) type=self.onchange_partner_id(cr, uid, partner_id=partner_id, type=type) - res.update({'value': {'type':type}}) + res.update({'value': {'type':type['value']['type']}}) if not line or (line and not line[0].account_id): part = obj_partner.browse(cr, uid, partner_id, context=context) if type == 'supplier': diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml index 2eb66aac911..9891e7bc51b 100755 --- a/addons/account/account_view.xml +++ b/addons/account/account_view.xml @@ -574,12 +574,12 @@
+ -