From 542e5234bee0e5cede5582c094a9775faa5978f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 26 May 2008 12:10:08 +0200 Subject: [PATCH] Add missing domain on open_account --- line.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/line.py b/line.py index 7f9a8a873d..4712f490da 100644 --- a/line.py +++ b/line.py @@ -117,12 +117,15 @@ class OpenAccount(Wizard): model_data = model_data_obj.browse(cursor, user, model_data_ids[0], context=context) res = act_window_obj.read(cursor, user, model_data.db_id, context=context) - res['domain'] = [] + res['domain'] = [ + ('account', '=', data['id']), + ] if context.get('start_date'): res['domain'].append(('date', '>=', context['start_date'])) if context.get('end_date'): res['domain'].append(('date', '<=', context['end_date'])) + res['domain'] = str(res['domain']) return res OpenAccount()