[IMP]: Updated review changes

This commit is contained in:
Bhumika Trivedi 2018-08-06 18:17:29 +05:30
parent 0560884373
commit 77db61b89a
7 changed files with 12 additions and 10 deletions

View File

@ -30,4 +30,5 @@
], ],
'installable': True, 'installable': True,
'auto_install': False, 'auto_install': False,
'application': True,
} }

View File

@ -8,10 +8,11 @@ class HelpdeskStage(models.Model):
_order = 'sequence, id' _order = 'sequence, id'
_description = 'Helpdesk Stage' _description = 'Helpdesk Stage'
name = fields.Char('Name') name = fields.Char('Name', required=True)
description = fields.Text(translate=True) description = fields.Text(translate=True)
fold = fields.Boolean(string='Fold in Kanban') fold = fields.Boolean(string='Fold in Kanban')
stage_type = fields.Selection([('draft', 'Draft'), ('new', 'New'), stage_type = fields.Selection([('draft', 'Draft'), ('new', 'New'),
('in_progress', 'In Progress'), ('in_progress', 'In Progress'),
('done', 'Done')], string='Stage Type') ('done', 'Done')], string='Stage Type',
required=True)
sequence = fields.Integer(default=1) sequence = fields.Integer(default=1)

View File

@ -7,5 +7,5 @@ class HelpdeskTag(models.Model):
_name = 'helpdesk.tag' _name = 'helpdesk.tag'
_description = 'Helpdesk Tags' _description = 'Helpdesk Tags'
name = fields.Char('Name') name = fields.Char('Name', required=True)
code = fields.Char('Code') code = fields.Char('Code', required=True)

View File

@ -14,7 +14,7 @@ class HelpdeskTeam(models.Model):
_description = 'Helpdesk Team' _description = 'Helpdesk Team'
name = fields.Char(string='Helpdesk Team', translate=True, name = fields.Char(string='Helpdesk Team', translate=True,
track_visibility='always') track_visibility='always', required=True)
active = fields.Boolean(string='Active', default=True) active = fields.Boolean(string='Active', default=True)
color = fields.Integer(string='Color Index') color = fields.Integer(string='Color Index')
member_ids = fields.Many2many('res.users', string='Members') member_ids = fields.Many2many('res.users', string='Members')

View File

@ -9,9 +9,9 @@
<form string="Helpdesk"> <form string="Helpdesk">
<sheet> <sheet>
<group> <group>
<field name="name" required="1"/> <field name="name"/>
<field name="sequence" required="1"/> <field name="sequence" required="1"/>
<field name="stage_type" required="1"/> <field name="stage_type"/>
<field name="description"/> <field name="description"/>
</group> </group>
</sheet> </sheet>

View File

@ -9,8 +9,8 @@
<form string="Helpdesk"> <form string="Helpdesk">
<sheet> <sheet>
<group> <group>
<field name="name" required="1"/> <field name="name"/>
<field name="code" required="1"/> <field name="code"/>
</group> </group>
</sheet> </sheet>
</form> </form>

View File

@ -22,7 +22,7 @@
<sheet> <sheet>
<group> <group>
<group> <group>
<field name="name" required="1"/> <field name="name"/>
<field name="issue_type_ids" required="1" <field name="issue_type_ids" required="1"
widget="many2many_tags"/> widget="many2many_tags"/>
</group> </group>