8e3c9b76564d6a69eb1b93b0beefec56ed15e805
Steps to reproduce: 1) Install the timesheet application. 2) Open the grid view and select a project. 3) Search for a task that does not exist, for example, 'xyz' 4) Notice that both 'Create xyz' and 'No records' are displayed Cause: -The issue arises when using the timesheet grid view, as the default_project_id is passed through the context. However, when a project is initially selected, the props do not update, resulting in the 'canCreate' value being set to false. Fix: -This change will allow canCreate value to be set as true when the project is selected. -In the timesheet grid view 'no_create_edit=True' is passed, indicating that the user should not create and edit new tasks. Modifying this value is not appropriate as it goes against the functionality of preventing the user from editing the tasks. task-3318851 closes odoo/odoo#122485 Related: odoo/enterprise#41500 Signed-off-by: Xavier Bol (xbo) <xbo@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%