Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
5704 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 7 25
4032
1
thg 7 25
3162
0
thg 12 24
1863
0
thg 12 23
1655
0
thg 9 20
1557