You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[FIX] hr_work_entry: Fix work entry type domain in multiselect
Reproduce step:
1. Go to work entries
2. Select some work entries to add using the multiselection in the gantt view.
3. Work entry types doesn't include the ones related to the country.
Reason:
The country_id is set to False, so the old domain will retrieve only the work entries which are not related to any country.
Fix:
Update work_entry_type_id domain and make it dynamic which depends on the situation, if we are going to create
work entries in the gantt views in multi company situation, we will display the
work entries types without a specific country only to avoid issues, since it is
possible to select employees from different companies at the same time. In the other
case (single company) we filter the work entry types based on the self.env.company.id
Related task: 5155691.
closesodoo#230746
Signed-off-by: Yannick Tivisse (yti) <[email protected]>
0 commit comments