Error when selecting 2010 for generating payslips

Asked by Bushair

Hi,
Am getting the below error when i generate the payslip

  File "/usr/lib/openerp-server/osv/orm.py", line 168, in <lambda>
    return lambda *args, **argv: getattr(self._table, name)(self._cr, self._uid, [self._id], *args, **argv)
  File "/usr/lib/openerp-server/addons/hr_payroll/hr_payroll.py", line 906, in verify_sheet
    period_id = self.pool.get('account.period').search(cr,uid,[('date_start','<=',slip.date),('date_stop','>=',slip.date)])[0]
IndexError: list index out of range

This error is generated When i select the "Complete Accountant Checking" button .
The previous 2 steps (Verify Sheet button and ComputeSheet Button ) is working properly.

This error is happening only when i select the date in Empolyee payslip as 01/04/2010 or any date in 2010.
If i change the date to 12/31/2009 , it is working fine.

why is this error generated?

Thanks
Bushair

Question information

Language:
English Edit question
Status:
Answered
For:
Odoo Addons (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) said :
#1

Hello,

You need to make your date according to fiscal year so May be you did not define the 2010 fiscal year.
and the related period is not find.
Now this problem is fixed in following revision :
4202 <email address hidden>

Thanks.

Revision history for this message
Bushair (bushairka) said :
#2

Hi,
Thank you very much for the infomatin

Can you please tell me how to access the revised code from

4202 <email address hidden> ?

i never tried this

thanks

Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) said :
#3

Hello,

You just update the following branch link where i have committed the changes so this changes will apply in your code.

https://code.launchpad.net/~openerp-commiter/openobject-addons/trunk-extra-addons

Thanks.

Revision history for this message
Bushair (bushairka) said :
#4

Hi,
I have the open erp installation in my linux machine.
so how to update the branch from the link https://code.launchpad.net/~openerp-commiter/openobject-addons/trunk-extra-addons ?

Thanks

Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) said :
#5

Hello,

You have check-out this branch with help bzr so use command :-> bzr up or bzr pull in your terminal nothing else.

Thanks.

Revision history for this message
Soorayah (soorayah-aumeer) said :
#6

Hello
I am getting the following error in executing openerp

Environment Information :
System : Windows-Vista-6.0.6001-SP1
OS Name : nt
Operating System Release : Vista
Operating System Version : 6.0.6001
Operating System Architecture : 32bit
Operating System Locale : en_US.cp1252
Python Version : 2.5.2
OpenERP-Client Version : 5.0.6
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
  File "netsvc.pyo", line 244, in dispatch
  File "netsvc.pyo", line 73, in __call__
  File "C:\Program Files\OpenERP AllInOne\Server\addons\base_module_record\base_module_record.py", line 38, in execute
  File "service\web_services.pyo", line 583, in execute
  File "osv\osv.pyo", line 59, in wrapper
  File "osv\osv.pyo", line 118, in execute
  File "osv\osv.pyo", line 110, in execute_cr
  File "osv\orm.pyo", line 1279, in fields_view_get
  File "osv\orm.pyo", line 1054, in __view_look_dom_arch
  File "osv\orm.pyo", line 1049, in __view_look_dom
  File "osv\orm.pyo", line 1049, in __view_look_dom
  File "osv\orm.pyo", line 1049, in __view_look_dom
  File "osv\orm.pyo", line 1049, in __view_look_dom
  File "osv\orm.pyo", line 995, in __view_look_dom
  File "osv\orm.pyo", line 1086, in __view_look_dom_arch
IndexError: list index out of range

Please help

Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) said :
#7

Hello Soorayah,

I have already solved the date problem error in hr_payroll module so please take the updated code module from lauchpad bzr repository.

Take the module from following branch link :
https://code.launchpad.net/~openerp-commiter/openobject-addons/trunk-extra-addons
Copy this updated module in C:\Program Files\OpenERP AllInOne\Server\addons\ path.

Thanks.

Can you help with this problem?

Provide an answer of your own, or ask Bushair for more information if necessary.

To post a message you must log in.