Purpose: -------- This commit adds properties (and related properties definitions) on the following models: - hr.employee (hr.department) - hr_recruitment.hr_applicant (hr_recruitment.hr_job) - product.product (product.category) - stock.picking (stock.picking_type) These have been added to the related form, kanban and calendar views when applicable. Properties have also been added to kanban and calendar views of - crm.lead - event.event - project.task (Properties had already been added on these models and form views) Task-3458627 Part-of: odoo/odoo#132578
13 lines
437 B
Python
13 lines
437 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class Company(models.Model):
|
|
_inherit = 'res.company'
|
|
|
|
hr_presence_control_email_amount = fields.Integer(string="# emails to send")
|
|
hr_presence_control_ip_list = fields.Char(string="Valid IP addresses")
|
|
employee_properties_definition = fields.PropertiesDefinition('Employee Properties')
|