From 7d51af520a155b383ea2981982461804ef004089 Mon Sep 17 00:00:00 2001 From: Brian McMaster Date: Thu, 15 Oct 2020 12:32:24 -0400 Subject: [PATCH] [IMP] fieldservice_skill: Add back the color field --- fieldservice_skill/models/__init__.py | 1 + fieldservice_skill/models/hr_skill.py | 13 +++++++++++++ fieldservice_skill/views/hr_skill.xml | 13 ++++++++++++- 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 fieldservice_skill/models/hr_skill.py diff --git a/fieldservice_skill/models/__init__.py b/fieldservice_skill/models/__init__.py index d10774c085..729a9f51c3 100644 --- a/fieldservice_skill/models/__init__.py +++ b/fieldservice_skill/models/__init__.py @@ -6,3 +6,4 @@ from . import fsm_category from . import fsm_order from . import fsm_template +from . import hr_skill diff --git a/fieldservice_skill/models/hr_skill.py b/fieldservice_skill/models/hr_skill.py new file mode 100644 index 0000000000..ea9b7aefb9 --- /dev/null +++ b/fieldservice_skill/models/hr_skill.py @@ -0,0 +1,13 @@ +# Copyright (C) 2020, Brian McMaster +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class HRSkill(models.Model): + _inherit = "hr.skill" + + color = fields.Integer( + string="Color Index", + default=10, + ) diff --git a/fieldservice_skill/views/hr_skill.xml b/fieldservice_skill/views/hr_skill.xml index a8f57911d3..b02b3addfe 100644 --- a/fieldservice_skill/views/hr_skill.xml +++ b/fieldservice_skill/views/hr_skill.xml @@ -1,5 +1,16 @@ - + + + hr.skill.fsm.form + hr.skill + + + + + + + +