Force company field in EnterLines

This allow to automatically hide the company field just like the employee.

issue4920
review23371002
This commit is contained in:
Cédric Krier committed 2015-08-22 08:58:28 +02:00
1 parent 4013a98a93
commit 6a7548ee2b
1 file changed
+2
+2
View File
@@ -171,10 +171,12 @@ class EnterLines(Wizard):
date = Date(date.year, date.month, date.day)
action['pyson_domain'] = PYSONEncoder().encode([
('employee', '=', self.start.employee.id),
('company', '=', self.start.employee.company.id),
('date', '=', date),
])
action['pyson_context'] = PYSONEncoder().encode({
'employee': self.start.employee.id,
'company': self.start.employee.company.id,
'date': date,
})
action['name'] += " - " + self.start.employee.rec_name