Tuesday, March 26, 2019
2 changes · master
Resolved issues and error corrections
This change appears to address a locking conflict during automatic payroll loading, helping payroll processes run more reliably. It should reduce interruptions or failures when payroll data is loaded automatically, though the available PR details do not identify the exact files changed.
Original PR description
Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fixes an error that could prevent employees from opening the My Time Off dashboard. The Time Off dashboard now loads reliably by using the correct internal method setup.
Original PR description
Before 1ced3bfca, the get_days_all_request method was called with the context as an argument. As a consequence, because of the api.multi, the first arg is used as the ids of the record. As the id is not used in this method, it was not harmful. With the above mentioned fix, there is no more argument. This causes a traceback when clicking on menu "My Time Off/Dashboard". With this commit, the api.model is used instead, that way, the first arg is not considered as ids.