From 590f7de673ac2bfb84e7a7c5000962a1464a5b02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 23 Jan 2012 12:48:07 +0100 Subject: [PATCH] Use id instead of BrowseRecord in context issue2415 --- account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account.py b/account.py index ffea76b011..28dcb5b31a 100644 --- a/account.py +++ b/account.py @@ -1066,7 +1066,7 @@ class OpenChartAccount(Wizard): def do_open_(self, session, action): action['pyson_context'] = PYSONEncoder().encode({ - 'fiscalyear': session.start.fiscalyear, + 'fiscalyear': session.start.fiscalyear.id, 'posted': session.start.posted, }) return action, {}