Add work types and in-form technician slot suggestions
This commit is contained in:
@@ -1 +1,2 @@
|
||||
from . import fsm_zone
|
||||
from . import work_type
|
||||
|
||||
12
odoo/addons/dsrpt_repair_config/models/work_type.py
Normal file
12
odoo/addons/dsrpt_repair_config/models/work_type.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class RepairWorkType(models.Model):
|
||||
_name = "repair.work.type"
|
||||
_description = "Repair Work Type"
|
||||
_order = "name"
|
||||
_inherit = ["mail.thread", "mail.activity.mixin"]
|
||||
|
||||
name = fields.Char(required=True, tracking=True)
|
||||
duration_min = fields.Integer(default=120, required=True, tracking=True)
|
||||
active = fields.Boolean(default=True, tracking=True)
|
||||
Reference in New Issue
Block a user