Skip to content
Snippets Groups Projects
Commit c090d999 authored by Goffin Simon's avatar Goffin Simon
Browse files

[FIX] analytic: _default_user

The "user_id" linked to the employee_id set on the sheet must be used
when editing a sheet.

opw:659647
parent 9cbab8a0
No related branches found
No related tags found
No related merge requests found
......@@ -93,7 +93,7 @@ class account_analytic_line(models.Model):
@api.model
def _default_user(self):
return self.env.user.id
return self.env.context.get('user_id', self.env.user.id)
name = fields.Char('Description', required=True)
date = fields.Date('Date', required=True, index=True, default=fields.Date.context_today)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment