Daily updates from Odoo
Monday, June 3, 2019
5 changes
Resolved issues and error corrections
This update reduces false alarms in inventory-related automated checks by allowing a tiny timing difference when comparing dates. It helps keep development and release validation stable without changing how users work with inventory.
Original PR description
The comparison of two datetimes is never exactly perfect. This commit adds one second tolerance in those two tests to ensure any false positive result is avoided 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
The stock demo data setup now starts inventory using the correct process. This prevents errors when the stock module is reinstalled with demo data, making setup and testing more reliable.
Original PR description
The demo data inventory didn't call the right method (`action_start` instead of `_action_start`), so, if user tried to re-install stock module, the `ensure_once` check will fail when reinstall the demo data.
Payslip reports now keep the correct amounts for work days instead of showing them as zero. The report also avoids repeating the work days name, making payroll documents clearer for employees and payroll teams.
IoT action requests now show a more accurate warning when an error occurs, including cases related to SSL issues. This helps users and support teams understand the problem faster instead of seeing only a generic connection failure message.
Original PR description
Before this commit when we make a action request and that the answer is an error we only return a connection problem message. Task: 1973942
This fix prevents errors when processing payments without an active payment line and ensures receipt content is placed in the correct section for printing. It helps reduce failed or incomplete ticket printing for point-of-sale users using IoT devices.
Original PR description
We check if a selected_paymentline is not undefined before retrieving the status We replace the class name pos-sale-ticket by after-footer. Because this class don't exist in XmlReceipt