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
=== modified file 'project_work_planning/project_work_planning.py'
--- project_work_planning/project_work_planning.py 2013-05-16 07:51:44 +0000
+++ project_work_planning/project_work_planning.py 2014-07-30 11:37:07 +0000
@@ -153,6 +153,7 @@
153 _inherit = 'project.task.type'153 _inherit = 'project.task.type'
154 _columns = {154 _columns = {
155 'stage_type': fields.selection([('default','Default'),('on_hold','Working - on hold'),('in_progress','Working - in progress')], 'Stage type', required=True),155 'stage_type': fields.selection([('default','Default'),('on_hold','Working - on hold'),('in_progress','Working - in progress')], 'Stage type', required=True),
156 'active': fields.boolean('Active', help="If the active field is set to False, you will be able to hide task type without removing it."),
156 }157 }
157158
158 _defaults = {159 _defaults = {
@@ -172,7 +173,7 @@
172 return True173 return True
173174
174 _constraints = [175 _constraints = [
175 (_check_stage_type, '\n\nStage type "Working - on hold" and "Working - in progress" can be assigned only ones!', ['stage_type'])176 (_check_stage_type, '\n\nStage type "Working - on hold" and "Working - in progress" can be assigned only once!', ['stage_type'])
176 ]177 ]
177178
178project_task_type()179project_task_type()
179180
=== modified file 'project_work_planning/project_work_planning_view.xml'
--- project_work_planning/project_work_planning_view.xml 2013-05-16 07:51:44 +0000
+++ project_work_planning/project_work_planning_view.xml 2014-07-30 11:37:07 +0000
@@ -58,6 +58,7 @@
58 <field name="arch" type="xml">58 <field name="arch" type="xml">
59 <field name="case_default" position="after">59 <field name="case_default" position="after">
60 <field name="stage_type"/>60 <field name="stage_type"/>
61 <field name="active"/>
61 </field>62 </field>
62 </field>63 </field>
63 </record>64 </record>

Subscribers

People subscribed via source and target branches