19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:31:00 +01:00
parent a1137a1456
commit e1d89e11e3
2789 changed files with 1093187 additions and 605897 deletions

View file

@ -4,13 +4,17 @@
from odoo import fields, models
class WorkLocation(models.Model):
_name = "hr.work.location"
class HrWorkLocation(models.Model):
_name = 'hr.work.location'
_description = "Work Location"
_order = 'name'
active = fields.Boolean(default=True)
name = fields.Char(string="Work Location", required=True)
company_id = fields.Many2one('res.company', required=True, default=lambda self: self.env.company)
address_id = fields.Many2one('res.partner', required=True, string="Work Address", domain="['|', ('company_id', '=', False), ('company_id', '=', company_id)]")
location_type = fields.Selection([
('home', 'Home'),
('office', 'Office'),
('other', 'Other')], string='Cover Image', default='office', required=True)
address_id = fields.Many2one('res.partner', required=True, string="Work Address", check_company=True)
location_number = fields.Char()