[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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user