Force company field in EnterLines
This allow to automatically hide the company field just like the employee. issue4920 review23371002
This commit is contained in:
1 parent
4013a98a93
commit
6a7548ee2b
1 file changed
+2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user