Merge lp:~sandi-dirntis/openerpsl/20140717_1 into lp:openerpsl/7.0

Proposed by Aleksander Dirntiš
Status: Needs review
Proposed branch: lp:~sandi-dirntis/openerpsl/20140717_1
Merge into: lp:openerpsl/7.0
Diff against target: 32 lines (+3/-1)
2 files modified
project_work_planning/project_work_planning.py (+2/-1)
project_work_planning/project_work_planning_view.xml (+1/-0)
To merge this branch: bzr merge lp:~sandi-dirntis/openerpsl/20140717_1
Reviewer Review Type Date Requested Status
Mentis Pending
Review via email: mp+228830@code.launchpad.net

Description of the change

[MOD] Added field active to project task type

To post a comment you must log in.

Unmerged revisions

437. By Aleksander Dirntiš

[MOD] Added field active to project task type

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'project_work_planning/project_work_planning.py'
2--- project_work_planning/project_work_planning.py 2013-05-16 07:51:44 +0000
3+++ project_work_planning/project_work_planning.py 2014-07-30 11:37:07 +0000
4@@ -153,6 +153,7 @@
5 _inherit = 'project.task.type'
6 _columns = {
7 'stage_type': fields.selection([('default','Default'),('on_hold','Working - on hold'),('in_progress','Working - in progress')], 'Stage type', required=True),
8+ 'active': fields.boolean('Active', help="If the active field is set to False, you will be able to hide task type without removing it."),
9 }
10
11 _defaults = {
12@@ -172,7 +173,7 @@
13 return True
14
15 _constraints = [
16- (_check_stage_type, '\n\nStage type "Working - on hold" and "Working - in progress" can be assigned only ones!', ['stage_type'])
17+ (_check_stage_type, '\n\nStage type "Working - on hold" and "Working - in progress" can be assigned only once!', ['stage_type'])
18 ]
19
20 project_task_type()
21
22=== modified file 'project_work_planning/project_work_planning_view.xml'
23--- project_work_planning/project_work_planning_view.xml 2013-05-16 07:51:44 +0000
24+++ project_work_planning/project_work_planning_view.xml 2014-07-30 11:37:07 +0000
25@@ -58,6 +58,7 @@
26 <field name="arch" type="xml">
27 <field name="case_default" position="after">
28 <field name="stage_type"/>
29+ <field name="active"/>
30 </field>
31 </field>
32 </record>

Subscribers

People subscribed via source and target branches