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

Validation Error

The operation cannot be completed: Another model requires the record being deleted, if possible, archive it instead. Model: 'Payslip Line' (hr.payslip.line) Foreign key: 'Rule' (salary_rule_id)

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

You are (or an action you're executing is) trying to delete a salary rule in the payroll configuration. The error message says you can't do that, because it is used in one or more payslips (payslip lines to be precise) already.

Set the flag "Active" to "not being active" instead.

Ảnh đại diện
Huỷ bỏ