Hello all,
I'm on odoo 10.
1) After an hour searching, I can't find where is declared the many2one field user_id of the model hr_employee... Where is the 'user_id = fields....' in the Python code?
2) Also, still in the model hr_employee, why this sql works :
select distinct("resource_id") FROM "hr_employee" where "resource_id" is not null
But not this one (ERROR: column "user_id" does not exist) :
select distinct("user_id") FROM "hr_employee" where "user_id" is not null
Both fields resource_id and user_id are many2one fields on the model hr_employee...
Thanks for you help!