Skip to content
Snippets Groups Projects
Commit c9461b31 authored by Nicolas Lempereur's avatar Nicolas Lempereur
Browse files

[FIX] crm_helpdesk: typo for closing date

The value associated to the the "Closed" is done and not close.

opw-645808
parent ab54722e
Branches
Tags
No related merge requests found
......@@ -100,7 +100,7 @@ class crm_helpdesk(osv.osv):
if values.get('state'):
if values.get('state') in ['draft', 'open'] and not values.get('date_open'):
values['date_open'] = fields.datetime.now()
elif values.get('state') == 'close' and not values.get('date_closed'):
elif values.get('state') == 'done' and not values.get('date_closed'):
values['date_closed'] = fields.datetime.now()
return super(crm_helpdesk, self).write(cr, uid, ids, values, context=context)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment