多的记录被过滤掉了,保安部
This commit is contained in:
@@ -43,3 +43,9 @@ class TxPlanningSlot(models.Model):
|
||||
'type': 'success',
|
||||
}
|
||||
}
|
||||
|
||||
@api.depends('role_id', 'employee_id')
|
||||
def _compute_template_autocomplete_ids(self):
|
||||
domain = self._get_domain_template_slots()
|
||||
templates = self.env['planning.slot.template'].search(domain, order='start_time', limit=15)
|
||||
self.template_autocomplete_ids = templates + self.template_id
|
||||
|
||||
Reference in New Issue
Block a user