[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,
'auto_install': False,
'application': True,
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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