Ir al contenido
Menú
Se marcó esta pregunta
936 Vistas

When creating a Journal Entry from a Payslip, the Net Salary rule automatically applies the employee's name to the journal item lines. This is great.


I have created a new salary rule, intending to use it as an 'Other Input' occassionally.

The Python condition for the rule is:

result = 'KASBON' in inputs

And the computation code is:

result = inputs['KASBON'].amount

result_name = inputs['KASBON'].name

My rule works fine EXCEPT that on the created Journal Items, the Partner field is blank. Could anyone offer any advance on how to make sure that the Journal Items created from my above Salary Rule are created with the Partner field pre-filled?

Avatar
Descartar