Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Payment advice creation in indian payroll module

By
Koffi KPONOUGLO
on 6/12/15, 10:39 AM 853 views

Hi everybody,

I install l10n_in_hr_payroll module on odoo7. I create a payslip batch and i would like to create payment advice according to the bacth but i get this error :

Integrity Error

The operation cannot be completed, probably due to the following:

- deletion: you may be trying to delete a record while other records still reference it

- creation/update: a mandatory field is not correctly set

[object with reference: Bank - res.bank]

I define bank account for every employee and also for my company but i still get this error.

Thanks in advance.

0
Jayanthi
On 1/25/16, 9:39 AM

Try changing the code in     l10n_in_hr_payroll/l10n_in_hr_payroll.py

from 


'bank_id': users[0].company_id.bank_ids and users[0].company_id.bank_ids[0].id or False



to

'bank_id': users[0].company_id.bank_ids and users[0].company_id.bank_ids[0].bank.id or False



it worked for me

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 6/12/15, 10:39 AM
Seen: 853 times
Last updated: 1/25/16, 9:39 AM