From 8e34540eebaf0ff5e75e68c700d419310180983a Mon Sep 17 00:00:00 2001 From: "hda (Tiny)" Date: Wed, 7 Jan 2009 18:19:42 +0530 Subject: [PATCH] bugfix lp bug: https://launchpad.net/bugs/314649 fixed bzr revid: hda@tinyerp.com-20090107124942-hfkwl249gqs993ig --- addons/account/wizard/wizard_fiscalyear_close.py | 2 +- addons/hr_timesheet_project/wizard/timesheet_hour_encode.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/account/wizard/wizard_fiscalyear_close.py b/addons/account/wizard/wizard_fiscalyear_close.py index c30878aae71..7dfc86ac5c3 100644 --- a/addons/account/wizard/wizard_fiscalyear_close.py +++ b/addons/account/wizard/wizard_fiscalyear_close.py @@ -163,7 +163,7 @@ def _data_save(self, cr, uid, data, context): 'WHERE fiscalyear_id = %s', ('done',fy_id)) cr.execute('UPDATE account_fiscalyear ' \ 'SET state = %s, end_journal_period_id = %s' \ - 'WHERE id = %s', ('done',start_jp,fy_id)) + 'WHERE id = %s', ('done',start_jp.id,fy_id)) return {} class wiz_journal_close(wizard.interface): diff --git a/addons/hr_timesheet_project/wizard/timesheet_hour_encode.py b/addons/hr_timesheet_project/wizard/timesheet_hour_encode.py index 94456e40209..29979afd03a 100644 --- a/addons/hr_timesheet_project/wizard/timesheet_hour_encode.py +++ b/addons/hr_timesheet_project/wizard/timesheet_hour_encode.py @@ -57,7 +57,7 @@ def _action_line_create(self, cr, uid, data, context): if res2: res.update(res2['value']) if hasattr(ts, 'on_change_account_id'): - res2 = ts.on_change_account_id(cr, uid, False, aa.id) + res2 = ts.on_change_account_id(cr, uid, False, uid, aa.id, context) if res2: res.update(res2['value']) id = ts.create(cr, uid, res, context)