448fe8fce10c592cf5160a6976ba232f867b77d9
Before this commit, when the user creates a timesheet in task form view, the `_onchange_so_line` is triggered after the compute method of `so_line`. This behavior is not expected because it break the employee rate feature to correctly determine the SOL of a timesheet. This commit deprecates the onchange method to avoid change the `is_so_line_manually_edited` when the user has not manually selected an SOL for the timesheet. Instead of changing the `is_so_line_manually_edited` field in the onchange method, a new widget is created to override the `_onFieldChanged` defined many2one widget. This widget will be linked to the `so_line` field in the list and form view of timesheet. So, when the user manually changes the `so_line` field, the `_onFieldChanged` method changes the `is_so_line_manually_changed` to notify that is the user is manually changed the `so_line` field on a timesheet. task-2665899 closes #79034 X-original-commit: 9b1bfe597167d1a849ef3df850300ae8ec673fd3 Part-of: odoo/odoo#79291
…
…
…
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%