[IMP] hr_timesheet: inline project and task creation

For the sake of consistency with other views and general usability, the user is allowed to create new tasks and projects from the timesheet lines list view.
This commit is contained in:
Tanguy Charlier
2016-05-19 11:23:20 +02:00
parent ca3418f6df
commit 6a430678b5
+2 -2
View File
@@ -12,8 +12,8 @@
<field name="date"/>
<field name="user_id" required="1" options='{"no_open": True}'/>
<field name="name"/>
<field name="project_id" options="{'no_open': True, 'no_create': True}" required="1"/>
<field name="task_id" options="{'no_open': True, 'no_create': True}" domain="[('project_id', '=', project_id)]"/>
<field name="project_id" required="1"/>
<field name="task_id" context="{'default_project_id': project_id}" domain="[('project_id', '=', project_id)]"/>
<field name="unit_amount" string="Duration" sum="Total time" widget="float_time"/>
</tree>
</field>