forked from OCA/field-service
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] Connect fsm.skill to fsm.template (OCA#113)
* [IMP] Connect fsm.skill to fsm.template
- Loading branch information
1 parent
6341241
commit d9f5021
Showing
6 changed files
with
42 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,5 @@ | |
fsm_person, | ||
fsm_category, | ||
fsm_order, | ||
fsm_template | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Copyright (C) 2018 - TODAY, Open Source Integrators | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
from odoo import fields, models | ||
|
||
|
||
class FSMTemplate(models.Model): | ||
_inherit = 'fsm.template' | ||
|
||
skill_ids = fields.Many2many('hr.skill', string="Required Skills") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<odoo> | ||
<!-- Field Service Order Form Extended--> | ||
<record id="fsm_template_form" model="ir.ui.view"> | ||
<field name="name">fsm.template.form</field> | ||
<field name="model">fsm.template</field> | ||
<field name="inherit_id" ref="fieldservice.fsm_template_form_view"/> | ||
<field name="arch" type="xml"> | ||
<field name="category_ids" position="after"> | ||
<field name="skill_ids" | ||
widget="many2many_tags" | ||
options="{'color_field': 'color'}"/> | ||
</field> | ||
</field> | ||
</record> | ||
|
||
</odoo> |