Instanciate directly with the id instead of using browse

Model.browse takes only list of ids now.

issue2820
This commit is contained in:
Cédric Krier committed 2012-10-10 10:34:57 +02:00
1 parent d7611e22e7
commit 096955b675
1 file changed
+1 -1
+1 -1
View File
@@ -685,7 +685,7 @@ class ModelGraph(Report):
])
if not action_report_ids:
raise Exception('Error', 'Report (%s) not find!' % cls.__name__)
action_report = ActionReport.browse(action_report_ids[0])
action_report = ActionReport(action_report_ids[0])
models = Model.browse(ids)