Skip to content

Commit

Permalink
[12.0][ADD] Added context in fsm dashboard kanban.
Browse files Browse the repository at this point in the history
  • Loading branch information
rutul-serpentcs committed Oct 6, 2020
1 parent 5f832ff commit 12648da
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fieldservice/models/fsm_stage.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def _default_team_ids(self):
stage_type = fields.Selection([('order', 'Order'),
('equipment', 'Equipment'),
('location', 'Location'),
('worker', 'Worker')], 'Type')
('worker', 'Worker')], 'Type', require=True)
company_id = fields.Many2one(
'res.company', string='Company',
default=lambda self: self.env.user.company_id.id)
Expand Down
1 change: 1 addition & 0 deletions fieldservice/views/fsm_order.xml
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@
<field name="res_model">fsm.order</field>
<field name="view_type">form</field>
<field name="view_mode">kanban,timeline,tree,form,calendar</field>
<field name="context">{'default_stage_type':'order'}</field>
<field name="search_view_id" ref="fsm_order_search_view"/>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Expand Down
2 changes: 1 addition & 1 deletion fieldservice/views/fsm_stage.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<field name="team_ids"
widget="many2many_tags"
groups="fieldservice.group_fsm_team"/>
<field name="stage_type" required="1"/>
<field name="stage_type"/>
</group>
<group>
<field name="custom_color"/>
Expand Down

0 comments on commit 12648da

Please sign in to comment.