Ila Rana(Open ERP) has proposed merging
lp:~openerp-dev/openobject-addons/6.0-opw-57608-ira into
lp:openobject-addons/6.0.
Requested reviews:
Naresh(OpenERP) (nch-openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-57608-ira/+merge/93344
Hello Naresh,
The proper company_id of analytic_line object is not restored in postgres. So
the issue of "Timesheet: company_id not updated in analytic.account.line" is
resolved now through this branch.
Thanks,
Ila Rana
--
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-57608-ira/+merge/93344
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/6.0-opw-57608-ira.
=== modified file 'hr_timesheet_sheet/hr_timesheet_sheet.py'
--- hr_timesheet_sheet/hr_timesheet_sheet.py 2011-11-23 09:52:46 +0000
+++ hr_timesheet_sheet/hr_timesheet_sheet.py 2012-02-16 07:21:18 +0000
@@ -478,6 +478,8 @@
ts = self.pool.get('hr_timesheet_sheet.sheet').browse(cr, uid, vals['sheet_id'])
if not ts.state in ('draft', 'new'):
raise osv.except_osv(_('Error !'), _('You can not modify an entry in a confirmed timesheet !'))
+ company = self.pool.get('account.analytic.account').read(cr, uid, [vals['account_id']], ['company_id'])[0]['company_id']
+ vals.update({'company_id': company[0]})
return super(hr_timesheet_line,self).create(cr, uid, vals, *args, **kwargs)
def unlink(self, cr, uid, ids, *args, **kwargs):
_______________________________________________
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