Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.0] Issue-161 Kanban state editable #169

Merged
merged 1 commit into from
Jun 8, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
7 changes: 0 additions & 7 deletions business_requirement_deliverable_project/models/business.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,6 @@ def generate_projects_wizard(self):
string='Total Planned Hour in RL related to business requirement',
compute='_compute_planned_hour'
)
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.model
def read_group(self, domain, fields, groupby, offset=0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@
<field name="model">business.requirement</field>
<field name="inherit_id" ref="business_requirement.view_business_requirement_form"/>
<field name="arch" type="xml">
<field name="name" position="before">
<div class="oe_left">
<field name="kanban_state" class="oe_inline" widget="kanban_state_selection"/>
</div>
</field>
<xpath expr="//header/button[@name='action_button_confirm']" position="attributes">
<attribute name="invisible">True</attribute>
</xpath>
Expand Down