[FIX] project: fix validation error of quick create view

In the quick create view, do not enter a value in the Task Title field and try
to create a task, a validation error is showing instead of a toast notification
highlighting that a required field is not set.

In this commit, display_name field is set as a required field so that when
required field is null, a toast notification is displayed instead of a
validation error

task-3274690

Part-of: odoo/odoo#118576
This commit is contained in:
Yashkumar Vaishnav
2023-05-05 10:29:42 +02:00
committed by Yash Vaishnav
parent 39f14ca2c9
commit 4e9a30bcfc
+1 -1
View File
@@ -497,7 +497,7 @@
<field name="arch" type="xml">
<form class="o_form_project_tasks">
<group>
<field name="display_name" string= "Task Title" placeholder="e.g. Send Invitations"/>
<field name="display_name" string= "Task Title" placeholder="e.g. Send Invitations" required="1"/>
<field name="project_id"
widget="project_private_task"
invisible="context.get('default_project_id', False)"