63e8624b016c034e9642b0947d66892571a79b93
Currently, the error occurs while updating a work contract without selecting any employee. Steps to reproduce: - Install a 'Work Entries - Contract' module. - Go to Employees> Employees> Contracts, And create a new contract without selecting any employee and also the 'Contract Start Date ' and 'Contract End Date' fields should be after or before the current date. - Then save it . - Then change 'Working Schedule' field of the created contract and save it. - The error is generated. Error: DatatypeMismatch : column 'hr_employee_id' is of type integer but expression is of type boolean LINE 1: ...neration_wizard_id', 'hr_employee_id') VALUES (1, false) ON ... There's an issue while updating the contract without selecting any employee; As the system is trying to recompute work entries without employee_id [1]. This commit solves this issue by adding a condition which states that recompute the work entries; if employee_id is available. [1]-https://github.com/odoo/odoo/blob/1b504038ce270540ddab28db4ab995d22f2ab2a7/addons/hr_work_entry_contract/models/hr_contract.py#L448-L452 sentry-4654142515 closes odoo/odoo#144180 X-original-commit: 8fc11c9c9be7a654de49664da44d5ba68d23cbd3 Signed-off-by: Sofie Gvaladze (sgv) <sgv@odoo.com>
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%