I have been struggling a lot while computing a payslip, I created contract for the said employee already. Every time I try to generate payslip or compute 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: contract_id - contract.id]
I would suggest you to create new database now and perform same operation again. If it doesnt work ,plz let me know.
Hey, I already created two three databases, every time I try, I get the same error. What is the issue can you help!
i have computed payslip on my system & working fine.
Have u customized your HR module? or can u list down steps what exactly you doing so that i can trace the issue coz im able generating payslip without any flaws.
Hi I create a new database with the demo data, install all the human resources modules first. Created an employee, a contract for the employee and tried to create a payslip. Please let me know what is wrong in this, I also created work schedules, and timesheet.
Kindly help on how to configure a new database mainly for payroll with accounting.
Is it Coming like this log code if it is the same then I amalso looking to resolve this issue 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: contract_id - contract.id] ZVEMPL openerp.sql_db: bad query: insert into "hr_payslip_line" (id,"slip_id","condition_select","code","amount_select","rate","sequence","condition_python","amount","amount_python_compute","company_id","quantity","amount_percentage","appears_on_payslip","condition_range","active","category_id","amount_fix","name",create_uid,create_date,write_uid,write_date) values (17,16,'none','BASIC','fix','100.00',5,' # Available variables: #---------------------- # payslip: object containing the payslips # employee: hr.employee object # contract: hr.contract object # rules: object containing the rules code (previously computed) # categories: object containing the computed salary rule categories (sum of amount of all rules belonging to that category). # worked_days: object containing the computed worked days # inputs: object containing the computed inputs # Note: returned value have to be set in the variable ''result'' result = rules.NET > categories.NET * 0.10','27000.00',' # Available variables: #---------------------- # payslip: object containing the payslips # employee: hr.employee object # contract: hr.contract object # rules: object containing the rules code (previously computed) # categories: object containing the computed salary rule categories (sum of amount of all rules belonging to that category). # worked_days: object containing the computed worked days. # inputs: object containing the computed inputs. # Note: returned value have to be set in the variable ''result'' result = contract.wage * 0.10',1,'1.00','0.0000','True','contract.wage','True',1,'0.00','Basic',1,(now() at time zone 'UTC'),1,(now() at time zone 'UTC')) Traceback (most recent call last): File "/home/server/workspace/openerp/openerp-7.0server/openerp/sql_db.py", line 226, in execute res = self._obj.execute(query, params) IntegrityError: null value in column "contract_id" violates not-null constraint