Merge lp:~vauxoo/addons-vauxoo/7.0-to_hide_help_text_hu_task_1274-dev-yani into lp:addons-vauxoo/7.0

Proposed by Yanina Aular (Vauxoo)
Status: Merged
Approved by: hbto [Vauxoo] http://www.vauxoo.com
Approved revision: 1006
Merged at revision: 1008
Proposed branch: lp:~vauxoo/addons-vauxoo/7.0-to_hide_help_text_hu_task_1274-dev-yani
Merge into: lp:addons-vauxoo/7.0
Diff against target: 65 lines (+15/-8)
2 files modified
user_story/model/user_story.py (+4/-1)
user_story/view/userstory_view.xml (+11/-7)
To merge this branch: bzr merge lp:~vauxoo/addons-vauxoo/7.0-to_hide_help_text_hu_task_1274-dev-yani
Reviewer Review Type Date Requested Status
Gabriela Quilarque Pending
Review via email: mp+217278@code.launchpad.net

Description of the change

Se requiere poder ocultar los textos de ayuda del form de user story

To post a comment you must log in.
1006. By Yanina Aular (Vauxoo)

[MERGE] from addons-vauxoo-7.0

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'user_story/model/user_story.py'
2--- user_story/model/user_story.py 2014-04-25 20:32:44 +0000
3+++ user_story/model/user_story.py 2014-04-25 23:34:36 +0000
4@@ -192,6 +192,8 @@
5 " orderpoint")),
6 'categ_ids': fields.many2many('project.category','project_category_user_story_rel','userstory_id','categ_id', string="Tags"),
7 'implementation': fields.text('Implementation Conclusions', translate=True),
8+ 'help': fields.boolean('Show Help', help='Allows you to show the help in the form'),
9+
10 }
11 _defaults = {
12 'name': lambda *a: None,
13@@ -201,7 +203,8 @@
14 'state': 'draft',
15 'priority_level': lambda self, cr, uid, ctx: self.pool.get(
16 'user.story.priority').search(
17- cr, uid, [('name', 'like', 'Secondary')], context=ctx)[0]
18+ cr, uid, [('name', 'like', 'Secondary')], context=ctx)[0],
19+ 'help' : True,
20 }
21
22 def do_draft(self, cr, uid, ids, context=None):
23
24=== modified file 'user_story/view/userstory_view.xml'
25--- user_story/view/userstory_view.xml 2014-04-24 22:30:40 +0000
26+++ user_story/view/userstory_view.xml 2014-04-25 23:34:36 +0000
27@@ -14,10 +14,12 @@
28 <button name="do_done" string="Done" type="object" states="draft,open,pending,cancelled"/>
29 <button name="do_cancel" string="Cancel" type="object" states="draft,open,pending,done"/>
30 <field name="state" widget="statusbar"/>
31+ <label for='help'/>
32+ <field name='help'/>
33 </header>
34 <sheet string="User Story">
35 <h1><label for="id" string="User Story Number: " class="oe_horizontal_separator oe_clear"/><field name="id"/></h1>
36- <div class="oe_form_sheet_width">
37+ <div class="oe_form_sheet_width" attrs="{'invisible':[('help','=',False)]}">
38 <p class="oe_grey">
39 A deeper explanation about what an user story is can be
40 found here.
41@@ -54,16 +56,18 @@
42 <label for="project_id" string="2.- Related Project" class="oe_horizontal_separator oe_clear"/>
43 </h3>
44 <div>
45- <p class="oe_grey">
46- <field name="project_id" domain="[('child_ids','=',False)]" context="{'current_model': 'project.project'}" />
47- The link to the project, all projects listed here
48- are of the lower level available in the Master WBS.
49- </p>
50+ <field name="project_id" domain="[('child_ids','=',False)]" context="{'current_model': 'project.project'}" />
51+ <div attrs="{'invisible':[('help','=',False)]}">
52+ <p class="oe_grey">
53+ The link to the project, all projects listed here
54+ are of the lower level available in the Master WBS.
55+ </p>
56+ </div>
57 </div>
58 <notebook colspan="4">
59 <page string="Details">
60 <h1><label for="description" string="3.- Description" colspan="4" class="oe_horizontal_separator oe_clear"/></h1>
61- <div>
62+ <div attrs="{'invisible':[('help','=',False)]}">
63 <p class="oe_grey">
64 Here in the description, you must be as explĂ­cit as you can,
65 Remember you can upload a Youtube video, and insert