mirror of
https://github.com/bringout/oca-ocb-hr.git
synced 2026-04-26 20:52:06 +02:00
19.0 vanilla
This commit is contained in:
parent
a1137a1456
commit
e1d89e11e3
2789 changed files with 1093187 additions and 605897 deletions
|
|
@ -0,0 +1,12 @@
|
|||
from odoo import api, models
|
||||
|
||||
|
||||
class ResConfigSettings(models.TransientModel):
|
||||
_inherit = 'res.config.settings'
|
||||
|
||||
@api.model_create_multi
|
||||
def create(self, vals_list):
|
||||
configs = super().create(vals_list)
|
||||
if any(config.hr_presence_control_ip or config.hr_presence_control_email for config in configs):
|
||||
self.env['hr.employee']._check_presence()
|
||||
return configs
|
||||
Loading…
Add table
Add a link
Reference in a new issue