Open robinkeunen opened 8 months ago
From the readme :
This module also makes the working hours (resource calendar) of an employee always equal to the company’s working hours, and hides its field on the employee form view.
c’est donc pour éviter qu’on puisse le changer, sinon ça casse le fonctionnement du module. mais comme il est caché et que read-only est que pour les vues, on s’en fout en fait. ça date de mes débuts dans odoo, je pensais peut-être encore que read-only empêchait de le changer même en script.
https://github.com/coopiteasy/addons/blob/5abf60e8de6b3d13cf896f4bf7cd2c7606fc224c/resource_work_time_from_contracts/models/resource_mixin.py#L15-L20
This line has the side effect of issuing a warning for all models that inherit this mixin and set defaults to
resource_calendar_id
More information on the warning :