Skip to content
This repository has been archived by the owner on Dec 17, 2019. It is now read-only.

An error when try to merge ticket (ticket drop down list) website_sup… #79

Open
wants to merge 1 commit into
base: 11.0
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions website_support/models/website_support_ticket.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def _default_approval_id(self):
support_email = fields.Char(string="Support Email")
category = fields.Many2one('website.support.ticket.categories', string="Category", track_visibility='onchange')
sub_category_id = fields.Many2one('website.support.ticket.subcategory', string="Sub Category")
subject = fields.Char(string="Subject")
subject = fields.Char(string="Subject", required = True)
description = fields.Text(string="Description")
state = fields.Many2one('website.support.ticket.states', group_expand='_read_group_state', default=_default_state,
string="State")
Expand Down Expand Up @@ -799,4 +799,4 @@ def send_reply(self):
else:
#Change the ticket state to staff replied
staff_replied = self.env['ir.model.data'].get_object('website_support','website_ticket_state_staff_replied')
self.ticket_id.state = staff_replied.id
self.ticket_id.state = staff_replied.id