21d4788a326d615c05030427a89c79f6c095a7d3
Before this commit, when the user wants to create a timesheet in the list or form view of this model, the user can quick create a project and a task if he wishes. The problem is when the user wants to quick create a task without defining a project in the form view of timesheet, because the default_project_id of the task will be false and a task without project will be created. This commit checks when the user clicks on the task_id field if the default_project_id exists in the context and if the default_project_id is not false, then we allow to the user to quick create a task for this timesheet, otherwise he can just select a task. Moreover, the js file is updated to fit with the new syntax. closes odoo/odoo#69420 X-original-commit: d3693ad15eae23829e5ed6ef6dfa915eeab5c8cc Signed-off-by: Yannick Tivisse (yti) <yti@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%