Skip to content

Commit

Permalink
[FIX] helpdesk_mgmt_activity: Update stage after create activity is f…
Browse files Browse the repository at this point in the history
…ixed and for activity set default activity user or current user
  • Loading branch information
geomer198 committed Nov 4, 2024
1 parent 2c3d806 commit 76b5791
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 14 deletions.
12 changes: 7 additions & 5 deletions helpdesk_mgmt_activity/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@ Helpdesk Management Activity

The module adds the following features:

- Refer a ticket to the Odoo model record
- Set the list of models available for a Helpdesk team
- Pre-configure ticket description template based on it's category
- Create an activity for the referring record right from the Ticket
- Change the Ticket's stage based on the activity state
* Link a ticket to an Odoo model record
* Set the list of available models for a Helpdesk team
* Pre-configure ticket description template based on it's category
* Create an activity for the linked record right from the Ticket
* Change the Ticket's stage based on the activity state



**Table of contents**

Expand Down
2 changes: 1 addition & 1 deletion helpdesk_mgmt_activity/models/helpdesk_ticket.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ def perform_action(self):
date_deadline=self.date_deadline,
activity_type_id=self.source_activity_type_id.id,
ticket_id=self.id,
user_id=self.assigned_user_id.id,
)
self.set_next_stage()
except Exception as e:
Expand All @@ -152,5 +151,6 @@ def perform_action(self):
"params": {
"type": "success",
"message": _("Activity has been created!"),
"next": {"type": "ir.actions.act_window_close"},
},
}
12 changes: 7 additions & 5 deletions helpdesk_mgmt_activity/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
The module adds the following features:

- Refer a ticket to the Odoo model record
- Set the list of models available for a Helpdesk team
- Pre-configure ticket description template based on it's category
- Create an activity for the referring record right from the Ticket
- Change the Ticket's stage based on the activity state
* Link a ticket to an Odoo model record
* Set the list of available models for a Helpdesk team
* Pre-configure ticket description template based on it's category
* Create an activity for the linked record right from the Ticket
* Change the Ticket's stage based on the activity state


6 changes: 3 additions & 3 deletions helpdesk_mgmt_activity/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -371,10 +371,10 @@ <h1 class="title">Helpdesk Management Activity</h1>
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/helpdesk/tree/16.0/helpdesk_mgmt_activity"><img alt="OCA/helpdesk" src="https://img.shields.io/badge/github-OCA%2Fhelpdesk-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/helpdesk-16-0/helpdesk-16-0-helpdesk_mgmt_activity"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/helpdesk&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>The module adds the following features:</p>
<ul class="simple">
<li>Refer a ticket to the Odoo model record</li>
<li>Set the list of models available for a Helpdesk team</li>
<li>Link a ticket to an Odoo model record</li>
<li>Set the list of available models for a Helpdesk team</li>
<li>Pre-configure ticket description template based on it’s category</li>
<li>Create an activity for the referring record right from the Ticket</li>
<li>Create an activity for the linked record right from the Ticket</li>
<li>Change the Ticket’s stage based on the activity state</li>
</ul>
<p><strong>Table of contents</strong></p>
Expand Down
1 change: 1 addition & 0 deletions helpdesk_mgmt_activity/tests/test_helpdesk_ticket.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ def test_perform_action(self):
"params": {
"type": "success",
"message": "Activity has been created!",
"next": {"type": "ir.actions.act_window_close"},
},
},
)
Expand Down

0 comments on commit 76b5791

Please sign in to comment.