mirror of
https://github.com/bringout/oca-ocb-hr.git
synced 2026-04-24 09:32:05 +02:00
19.0 vanilla
This commit is contained in:
parent
a1137a1456
commit
e1d89e11e3
2789 changed files with 1093187 additions and 605897 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue