mirror of
https://github.com/bringout/oca-ocb-hr.git
synced 2026-04-25 23:52:04 +02:00
12 lines
404 B
Python
12 lines
404 B
Python
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
|