Mayur Maheshwari(OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-bug-1038023-mma into
lp:openobject-addons.
Requested reviews:
Purnendu Singh (OpenERP) (psi-tinyerp)
Mayur Maheshwari(OpenERP) (mma-openerp)
Related bugs:
Bug #1038023 in OpenERP Addons: "can't open timesheet by account from
timesheet form view"
https://bugs.launchpad.net/openobject-addons/+bug/1038023
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1038023-mma/+merge/120139
Hello,
hr_timesheet_sheet :I have fix the issue to open timesheet by account
from timesheet form view and pass a appropriate ids in name_get
Thanks,
Mayur
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1038023-mma/+merge/120139
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-1038023-mma.
=== modified file 'hr_timesheet_sheet/hr_timesheet_sheet.py'
--- hr_timesheet_sheet/hr_timesheet_sheet.py 2012-08-07 11:06:16 +0000
+++ hr_timesheet_sheet/hr_timesheet_sheet.py 2012-08-21 09:10:26 +0000
@@ -442,8 +442,10 @@
return True
def name_get(self, cr, uid, ids, context=None):
- if not len(ids):
+ if not ids:
return []
+ if isinstance(ids, int):
+ ids = [ids]
return [(r['id'], r['date_from'] + ' - ' + r['date_to']) \
for r in self.read(cr, uid, ids, ['date_from', 'date_to'],
context=context, load='_classic_write')]
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp