|
50 | 50 | <group colspan="4" col="4"> |
51 | 51 | <field name="name" select="1"/> |
52 | 52 | <field name="project_id"/> <!--on_change="onchange_project_id(project_id)"--> |
| 53 | +<!-- |
53 | 54 | <field name="scrum_master_id"/> |
54 | 55 | <field name="product_owner_id"/> |
| 56 | +--> |
55 | 57 | <field name="date_start" select="1"/> |
56 | 58 | <field name="date_stop"/> |
57 | 59 | <!-- |
|
100 | 102 |
|
101 | 103 | <!--Scrum User Stories--> |
102 | 104 | <!--user stories kanban view--> |
103 | | -<!-- |
104 | 105 | <record id="view_scrum_us_kanban" model="ir.ui.view"> |
105 | 106 | <field name="name">project.scrum.us.kanban</field> |
106 | 107 | <field name="model">project.scrum.us</field> |
107 | 108 | <field name="type">kanban</field> |
108 | 109 | <field name="arch" type="xml"> |
109 | | - <kanban> |
| 110 | + <kanban default_group_by="sprint_id"> |
| 111 | + <field name="color"/> |
| 112 | + <field name="name"/> |
| 113 | + <field name="task_ids"/> |
| 114 | + <field name="sprint_id"/> |
| 115 | + <field name="project_id"/> |
110 | 116 | <templates> |
111 | 117 | <t t-name="kanban-box"> |
112 | | - <li><p>Actor: <field name="actor_ids"/></p></li> |
113 | | - <li><p>User Story: <field name="name"/></p></li> |
114 | | - <li><p>Task: <field name="task_ids"/></p></li> |
115 | | - <li><p>Sprint: <field name="sprint_id"/></p></li> |
116 | | - <li><p>Project: <field name="project_id"/></p></li> |
| 118 | + <div t-attf-class="oe_kanban_color_#{kanban_getcolor(record.color.raw_value)} oe_kanban_card oe_kanban_global_click"> |
| 119 | + <div class="oe_dropdown_toggle oe_dropdown_kanban" groups="base.group_user"> |
| 120 | + <span class="oe_e">í</span> |
| 121 | + <ul class="oe_dropdown_menu"> |
| 122 | + <li> |
| 123 | + <t t-if="widget.view.is_action_enabled('edit')"><li><a type="edit">Edit...</a></li></t> |
| 124 | + <t t-if="widget.view.is_action_enabled('delete')"><li><a type="delete">Delete</a></li></t> |
| 125 | + </li> |
| 126 | + </ul> |
| 127 | + </div> |
| 128 | + |
| 129 | + <div class="oe_kanban_content"> |
| 130 | + <div><b><field name="name"/></b></div> |
| 131 | + </div> |
| 132 | + <div class="oe_clear"></div> |
| 133 | + </div> |
117 | 134 | </t> |
118 | 135 | </templates> |
119 | 136 | </kanban> |
120 | 137 | </field> |
121 | 138 | </record> |
122 | | ---> |
123 | | - |
124 | | - <!--user stories tree view--> |
125 | | - <record id="view_scrum_us_tree" model="ir.ui.view"> |
126 | | - <field name="name">project.scrum.us.tree</field> |
127 | | - <field name="model">project.scrum.us</field> |
128 | | - <field name="type">tree</field> |
129 | | - <field name="arch" type="xml"> |
130 | | - <tree string="User Stories"> |
131 | | - <field name="actor_ids"/> |
132 | | - <field name="name"/> |
133 | | - <field name="sprint_id"/> |
134 | | - <field name="project_id"/> |
135 | | - </tree> |
136 | | - </field> |
137 | | - </record> |
138 | 139 |
|
139 | 140 | <!--user stories form view--> |
140 | 141 | <record id="view_scrum_us_form" model="ir.ui.view"> |
|
147 | 148 | <field name="project_id"/> |
148 | 149 | <field name="sprint_id"/> |
149 | 150 | </group> |
150 | | - <group> |
| 151 | + <group col="4"> |
| 152 | + <field name="name"/> |
151 | 153 | <field name="actor_ids" widget="many2many_tags"/> |
152 | 154 | </group> |
153 | 155 | <group> |
154 | | - <field name="name"/> |
| 156 | + |
155 | 157 | <field name="description"/> |
156 | 158 | </group> |
157 | 159 | <notebook colspan="5"> |
158 | 160 | <page string="Tasks"> |
159 | | - <field colspan="2" col="1" name="task_ids" nolabel="1" widget="one2many_list"> |
160 | | - <tree string="Sprint Backlog" colors="green:priority in ('0'); |
161 | | - orange:priority in ('1'); red:priority in('2')"> |
| 161 | + <field name="task_ids" nolabel="1" widget="one2many_list"> |
| 162 | + <tree string="Tasks"> |
162 | 163 | <field name="sequence" widget="handle"/> |
163 | 164 | <field name="priority"/> |
164 | 165 | <field name="name"/> |
|
172 | 173 | </form> |
173 | 174 | </field> |
174 | 175 | </record> |
| 176 | + |
| 177 | + <!--user stories tree view--> |
| 178 | + <record id="view_scrum_us_tree" model="ir.ui.view"> |
| 179 | + <field name="name">project.scrum.us.tree</field> |
| 180 | + <field name="model">project.scrum.us</field> |
| 181 | + <field name="type">tree</field> |
| 182 | + <field name="arch" type="xml" > |
| 183 | + <tree> |
| 184 | + <field name="actor_ids"/> |
| 185 | + <field name="name"/> |
| 186 | + <field name="sprint_id"/> |
| 187 | + <field name="project_id"/> |
| 188 | + </tree> |
| 189 | + </field> |
| 190 | + </record> |
175 | 191 |
|
176 | 192 | <!--Scrum Meeting--> |
177 | 193 | <!--daily meeting tree view--> |
|
199 | 215 | <field name="date_meeting"/> |
200 | 216 | <field name="user_id_meeting"/> |
201 | 217 | <field name="sprint_id"/> |
| 218 | + <field name="project_id"/> |
202 | 219 | <button name="send_email" string="Send Email" type="object" |
203 | 220 | icon="terp-mail-message-new" /> |
204 | 221 | </group> |
|
340 | 357 | <field name="name">User Stories</field> |
341 | 358 | <field name="res_model">project.scrum.us</field> |
342 | 359 | <field name="view_type">form</field> |
343 | | - <field name="view_mode">tree,form</field> |
344 | | - <field name="view_id" ref="view_scrum_us_tree"/> |
| 360 | + <field name="view_mode">kanban,tree,form</field> |
| 361 | + <field name="view_id" ref="view_scrum_us_kanban"/> |
345 | 362 | <field name="context">{"search_default_current": 1}</field> |
346 | 363 | <field name="search_view_id" ref="view_scrum_us_search"/> |
347 | 364 | <field name="help">The user stories of scrum.</field> |
|
359 | 376 | </field> |
360 | 377 | </field> |
361 | 378 | </record> |
362 | | - |
363 | | -<!--menu for accessing to sprint--> |
| 379 | + |
| 380 | +<!--menu for accessing to userstories--> |
364 | 381 | <menuitem |
365 | 382 | sequence="20" |
366 | | - action="action_sprint_all_tree" id="menu_action_sprint_all_tree" parent="menu_scrum"/> |
367 | | - |
368 | | -<!--menu for accessing to userstories--> |
| 383 | + action="action_us_all_tree" id="menu_action_us_all_tree" parent="menu_scrum"/> |
| 384 | + |
| 385 | +<!--menu for accessing to sprint--> |
369 | 386 | <menuitem |
370 | 387 | sequence="21" |
371 | | - action="action_us_all_tree" id="menu_action_us_all_tree" parent="menu_scrum"/> |
| 388 | + action="action_sprint_all_tree" id="menu_action_sprint_all_tree" parent="menu_scrum"/> |
372 | 389 |
|
373 | 390 | <!--menu for accessing to meeting--> |
374 | 391 | <menuitem |
|
0 commit comments