Skip to Content
Menu
This question has been flagged
668 Views

So I overrode default_get method from hr.payslip.employees model, so I can pre load some employees by some filters on payslip Run form, now I need to add some employees that are active and some that are inactive, I got this part right until I click on Save or when I click Generate from the hr.payslip.employees Wizard form view, that automatically removes inactive employees, to give some context I'm trying to add those employees because this special kind of payslip from my country gets processed the year after it's computing. (For example this payslip goes from 2023-01-01 to 2023-12-31 but gets payed on 2024-03-31). I'm working on Odoo 12.

How can I persist keep inactive employees in this form view so I can process individual payslip from these employees?




Avatar
Discard
Related Posts Replies Views Activity
0
Apr 25
336
1
Aug 22
2215
1
Mar 22
2019
2
Jan 21
3811
2
Jun 19
3012