This question has been flagged

Hello, I am not as experienced with Python code as I am with others, and am in particular facing more issues transferring one2many fields between models than most other field types. 

I am trying to have the Payroll Salary Computation line_ids automatically fill when registering a payment, as I have for the Amount and Partner fields. I have added the line_ids one2many field into the Register Payment popup, but do not know how to code it to be automatically filled with the Payslip's line_ids.

Salary Computation Fields:

https://drive.google.com/file/d/1bZZKssrfc0sySYQcx99PFQMzTnk8sPdu/view?usp=sharing

Register Payment Popup:

https://drive.google.com/file/d/1mdhIEGZGoJDtIoPv-q-PFgoI1JXomIGR/view?usp=sharing


Any help is appreciated. Thanks

Avatar
Discard