Как получить объект из другой таблицы в odoo - PullRequest
0 голосов
/ 16 июня 2020

Screenshot

Я хочу добавить объект из другой таблицы. Я создал посещаемость. таблица посещаемости. Но в коде расчета 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
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...