# Part of Beyond. Collina Systems proprietary module. from odoo import fields, models class HrDepartment(models.Model): _inherit = 'hr.department' branch_id = fields.Many2one('beyond.branch', string='Sucursal', index=True) class HrEmployee(models.Model): _inherit = 'hr.employee' branch_id = fields.Many2one('beyond.branch', string='Sucursal', index=True) class HrAttendance(models.Model): _inherit = 'hr.attendance' # Cada checada registra su sucursal (BRIEF §5.4) vía el empleado. branch_id = fields.Many2one( related='employee_id.branch_id', string='Sucursal', store=True, index=True)