Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][IMP] helpdesk_mgmt_timesheet: add optional ticket field in view and add avatar widget #582

Merged
merged 2 commits into from
Jun 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>
8 changes: 6 additions & 2 deletions helpdesk_mgmt_timesheet/views/helpdesk_ticket_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,11 @@
<field name="task_id" invisible="1" />
<field name="date" widget="date" invisible="1" />
<field name="date_time" string="Date" required="1" />
<field name="user_id" required="1" />
<field
name="user_id"
required="1"
widget="many2one_avatar_user"
/>
<field name="name" />
<field
name="unit_amount"
Expand Down Expand Up @@ -199,7 +203,7 @@
</div>
<group>
<field name="date" />
<field name="user_id" />
<field name="user_id" widget="many2one_avatar_user" />
<field name="name" />
<field
name="unit_amount"
Expand Down
Loading