Skip to Content
Menú
This question has been flagged
1260 Vistes

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
Descartar
Related Posts Respostes Vistes Activitat
0
d’abr. 25
906
1
d’ag. 22
2215
1
de març 22
2599
2
de gen. 21
4517
2
de juny 19
3657