Skip to content

Commit

Permalink
[14.0][ADD] helpdesk_mgmt_timesheet: add optional ticket field in view
Browse files Browse the repository at this point in the history
  • Loading branch information
SergiCForgeFlow authored and vincent-hatakeyama committed Nov 28, 2023
1 parent 877e6ae commit 114a22d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions helpdesk_mgmt_timesheet/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"views/helpdesk_team_view.xml",
"views/helpdesk_ticket_view.xml",
"views/hr_timesheet_view.xml",
"views/helpdesk_project_task_view.xml",
"report/report_timesheet_templates.xml",
],
"demo": ["demo/helpdesk_mgmt_timesheet_demo.xml"],
Expand Down
17 changes: 17 additions & 0 deletions helpdesk_mgmt_timesheet/views/helpdesk_project_task_view.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8" ?>
<data>
<record id="view_task_form2_inherited" model="ir.ui.view">
<field name="name">project.task.form.ticket.inherited</field>
<field name="model">project.task</field>
<field name="inherit_id" ref="hr_timesheet.view_task_form2_inherited" />
<field name="arch" type="xml">
<xpath expr="//tree/field[@name='name']" position="after">
<field
name="ticket_id"
optional="hide"
groups="helpdesk_mgmt.group_helpdesk_user"
/>
</xpath>
</field>
</record>
</data>

0 comments on commit 114a22d

Please sign in to comment.