Browse Source

Feb 18: [FIX] Bug Fixed 'odoo_website_helpdesk'

pull/317/merge
Cybrosys Technologies 2 months ago
parent
commit
8ff32fbc59
  1. 2
      odoo_website_helpdesk/__manifest__.py
  2. 10
      odoo_website_helpdesk/controllers/website_form.py
  3. 6
      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.1', 'version': '17.0.1.0.2',
'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

10
odoo_website_helpdesk/controllers/website_form.py

@ -69,6 +69,12 @@ 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({
'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]
@ -81,7 +87,7 @@ class WebsiteFormInherit(WebsiteForm):
'priority': kwargs.get('priority'), 'priority': kwargs.get('priority'),
'product_ids': product_list, 'product_ids': product_list,
'stage_id': lowest_stage_id.id, 'stage_id': lowest_stage_id.id,
'customer_id': customer.id, 'customer_id': partner_create.id,
'ticket_type_id': kwargs.get('ticket_type_id'), 'ticket_type_id': kwargs.get('ticket_type_id'),
'category_id': kwargs.get('category'), 'category_id': kwargs.get('category'),
} }
@ -94,7 +100,7 @@ class WebsiteFormInherit(WebsiteForm):
'phone': kwargs.get('phone'), 'phone': kwargs.get('phone'),
'priority': kwargs.get('priority'), 'priority': kwargs.get('priority'),
'stage_id': lowest_stage_id.id, 'stage_id': lowest_stage_id.id,
'customer_id': customer.id, 'customer_id': partner_create.id,
'ticket_type_id': kwargs.get('ticket_type_id'), 'ticket_type_id': kwargs.get('ticket_type_id'),
'category_id': kwargs.get('category'), 'category_id': kwargs.get('category'),
} }

6
odoo_website_helpdesk/doc/RELEASE_NOTES.md

@ -9,3 +9,9 @@
#### Version 17.0.1.0.1 #### Version 17.0.1.0.1
##### ADD ##### ADD
- Updated access for the tickets in portal. - Updated access for the tickets in portal.
#### 12.02.2025
#### Version 17.0.1.0.2
##### UPDT
-A new contact record is created upon form submission.

Loading…
Cancel
Save