Browse Source

July 17: [FIX] Bug Fixed 'odoo_website_helpdesk'

17.0
Cybrosys Technologies 2 weeks ago
parent
commit
66916a0077
  1. 2
      odoo_website_helpdesk/__manifest__.py
  2. 21
      odoo_website_helpdesk/controllers/website_form.py
  3. 5
      odoo_website_helpdesk/doc/RELEASE_NOTES.md

2
odoo_website_helpdesk/__manifest__.py

@ -21,7 +21,7 @@
############################################################################ ############################################################################
{ {
'name': "Website Helpdesk Support Ticket Management", 'name': "Website Helpdesk Support Ticket Management",
'version': '17.0.1.0.3', 'version': '17.0.1.0.4',
'category': 'Website', 'category': 'Website',
'summary': """The website allows for the creation of tickets, which can 'summary': """The website allows for the creation of tickets, which can
then be controlled from the backend. Furthermore, a bill that includes then be controlled from the backend. Furthermore, a bill that includes

21
odoo_website_helpdesk/controllers/website_form.py

@ -55,7 +55,6 @@ class WebsiteFormInherit(WebsiteForm):
:return: JSON response indicating the success or failure of form submission. :return: JSON response indicating the success or failure of form submission.
:rtype: str :rtype: str
""" """
print('hiiii')
customer = request.env.user.partner_id customer = request.env.user.partner_id
lowest_stage_id = None lowest_stage_id = None
if model_name == 'ticket.helpdesk': if model_name == 'ticket.helpdesk':
@ -70,12 +69,20 @@ class WebsiteFormInherit(WebsiteForm):
return json.dumps( return json.dumps(
{'error': "No stage found with the lowest sequence."}) {'error': "No stage found with the lowest sequence."})
products = kwargs.get('product') products = kwargs.get('product')
partner_create = request.env['res.partner'].sudo().create({ # Check if partner already exists with the same email
'name': kwargs.get('customer_name'), email = kwargs.get('email_from')
'company_name': kwargs.get('company'), existing_partner = request.env['res.partner'].sudo().search([
'phone': kwargs.get('phone'), ('email', '=', email)
'email': kwargs.get('email_from') ], limit=1)
}) if existing_partner:
partner_create = existing_partner
else:
partner_create = request.env['res.partner'].sudo().create({
'name': kwargs.get('customer_name'),
'company_name': kwargs.get('company'),
'phone': kwargs.get('phone'),
'email': kwargs.get('email_from')
})
if products: if products:
split_product = products.split(',') split_product = products.split(',')
product_list = [int(i) for i in split_product] product_list = [int(i) for i in split_product]

5
odoo_website_helpdesk/doc/RELEASE_NOTES.md

@ -20,4 +20,9 @@
##### UPDT ##### UPDT
-A confirmation email will be sent to the customer upon ticket creation. -A confirmation email will be sent to the customer upon ticket creation.
#### 14.07.2025
#### Version 17.0.1.0.4
##### FIX
- Tickets created was not visible for the user.

Loading…
Cancel
Save