Skip to content

Commit

Permalink
[IMP] fieldservice_skill: Add back the color field
Browse files Browse the repository at this point in the history
  • Loading branch information
brian10048 committed Oct 15, 2020
1 parent cc3ab5d commit 7d51af5
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
1 change: 1 addition & 0 deletions fieldservice_skill/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
from . import fsm_category
from . import fsm_order
from . import fsm_template
from . import hr_skill
13 changes: 13 additions & 0 deletions fieldservice_skill/models/hr_skill.py
Original file line number Diff line number Diff line change
@@ -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,
)
13 changes: 12 additions & 1 deletion fieldservice_skill/views/hr_skill.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>

<record id="hr_skill_form_inherit_fsm" model="ir.ui.view">
<field name="name">hr.skill.fsm.form</field>
<field name="model">hr.skill</field>
<field name="inherit_id" ref="hr_skills.hr_skill_view_form"/>
<field name="arch" type="xml">
<field name="name" position="after">
<field name="color"/>
</field>
</field>
</record>

<menuitem
id="menu_hr_skill"
name="Skills"
Expand Down

0 comments on commit 7d51af5

Please sign in to comment.