Skip to content

Commit

Permalink
[FIX] kanban state editable in BR (OCA#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
serpentcs-dev1 authored and Ruter Lv committed Mar 15, 2019
1 parent 035162a commit 03debbd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions business_requirement/models/business.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,13 @@ def _get_default_company(self):
to_be_reviewed = fields.Boolean(
string='To be Reviewed'
)
kanban_state = fields.Selection([('normal', 'In Progress'),
('on_hold', 'On Hold'),
('done', 'Ready for next stage')],
'Kanban State',
track_visibility='onchange',
required=False,
copy=False, default='normal')

@api.multi
@api.onchange('project_id')
Expand Down
3 changes: 3 additions & 0 deletions business_requirement/views/business_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
statusbar_visible="draft,confirmed,approved,stakeholder_approval,in_progress,done,cancel,drop"/>
</header>
<sheet>
<div class="oe_left">
<field name="kanban_state" class="oe_inline" widget="kanban_state_selection"/>
</div>
<div class="oe_right oe_button_box" name="buttons" groups="base.group_user">
<button class="oe_inline oe_stat_button" type="action" name="%(act_view_sub_br_all)d" icon="fa-tasks">
<field name="sub_br_count" string="Sub Bus. Req." widget="statinfo"/>
Expand Down

0 comments on commit 03debbd

Please sign in to comment.