Я хочу добавить объект из другой таблицы. Я создал посещаемость. таблица посещаемости. Но в коде расчета python доступны только эти переменные.
# Available variables:
#----------------------
# payslip: an object containing the payslips
# employee: hr.employee object
# contract: hr.contract object
# rules: an object containing the rules code (previously computed)
# categories: an object containing the computed salary rule categories (sum of the amount of all rules belonging to that category).
# worked_days: an object containing the computed worked days.
# inputs: an object containing the computed inputs.
# Note: returned value have to be set in the variable 'result'
result = contract.wage * 0.10