|
276 | 276 | </group> |
277 | 277 | <notebook colspan="5"> |
278 | 278 | <page string="Tasks"> |
279 | | - <field name="task_ids" nolabel="1" widget="one2many_list" string="Task"> |
| 279 | + <field name="task_ids" string="Task"> |
280 | 280 | <tree string="Tasks" colors="red:kanban_state in ('normal'); |
281 | 281 | grey:kanban_state in ('blocked'); green:kanban_state in('done')"> |
282 | 282 | <field name="sequence" widget="handle"/> |
|
696 | 696 | <field name="search_view_id" ref="view_ps_tc_search"/> |
697 | 697 | <field name="help">The test case.</field> |
698 | 698 | </record> |
699 | | - |
700 | | -<!--access to sprint and user story from task form view--> |
701 | | - <record id="view_ps_sprint_task_form2" model="ir.ui.view"> |
702 | | - <field name="name">project.scrum.task.form</field> |
703 | | - <field name="model">project.task</field> |
704 | | - <field name= "inherit_id" ref="project.view_task_form2"/> |
705 | | - <field name="arch" type="xml"> |
706 | | - <field name="date_deadline" position="before"> |
707 | | - <field string="Sprint" name= "sprint_id" domain="[('project_id', '=', project_id)]"/> |
708 | | - <field string="User Story" name= "us_id" domain="[('project_id', '=', project_id)]"/> |
709 | | - </field> |
710 | | - </field> |
711 | | - </record> |
712 | | - |
713 | | -<!--menu for accessing to userstories--> |
714 | | - <menuitem |
715 | | - sequence="20" |
716 | | - action="action_ps_us_all" id="menu_action_ps_us_all" parent="menu_scrum"/> |
717 | | - |
718 | | -<!--menu for accessing to sprint--> |
719 | | - <menuitem |
720 | | - sequence="21" |
721 | | - action="action_ps_sprint_all" id="menu_action_ps_sprint_all" parent="menu_scrum"/> |
722 | 699 |
|
723 | | -<!--menu for accessing to meeting--> |
724 | | - <menuitem |
725 | | - sequence="22" |
726 | | - action="action_ps_meeting_all" id="menu_action_ps_meeting_all" parent="menu_scrum"/> |
727 | | - |
728 | | -<!-- menu for accessing to test case--> |
729 | | - <menuitem |
730 | | - sequence="23" |
731 | | - action="action_ps_tc_all" id="menu_action_ps_tc_all" parent="menu_scrum"/> |
732 | | - |
733 | 700 | <!--Add buttons on project form view that can connect to user stories and sprints--> |
734 | 701 | <record id="edit_ps_project" model="ir.ui.view"> |
735 | 702 | <field name="name">project.scrum.project.form</field> |
|
782 | 749 | </page> |
783 | 750 | </field> |
784 | 751 | </record> |
| 752 | + |
| 753 | +<!--access to sprint and user story from task form view--> |
| 754 | + <record id="view_ps_sprint_task_form2" model="ir.ui.view"> |
| 755 | + <field name="name">project.scrum.task.form</field> |
| 756 | + <field name="model">project.task</field> |
| 757 | + <field name= "inherit_id" ref="project.view_task_form2"/> |
| 758 | + <field name="arch" type="xml"> |
| 759 | + <field name="date_deadline" position="before"> |
| 760 | + <field name="use_scrum" invisible="1"/> <!--this field is related to the boolean field "use_scrum" in project--> |
| 761 | + <field string="Sprint" name= "sprint_id" attrs="{'invisible': [('use_scrum', '=', False)]}" domain="[('project_id', '=', project_id)]"/> |
| 762 | + <field string="User Story" name= "us_id" attrs="{'invisible': [('use_scrum', '=', False)]}" domain="[('project_id', '=', project_id)]"/> |
| 763 | + </field> |
| 764 | + </field> |
| 765 | + </record> |
785 | 766 |
|
| 767 | +<!--menu for accessing to userstories--> |
| 768 | + <menuitem |
| 769 | + sequence="20" |
| 770 | + action="action_ps_us_all" id="menu_action_ps_us_all" parent="menu_scrum"/> |
| 771 | + |
| 772 | +<!--menu for accessing to sprint--> |
| 773 | + <menuitem |
| 774 | + sequence="21" |
| 775 | + action="action_ps_sprint_all" id="menu_action_ps_sprint_all" parent="menu_scrum"/> |
| 776 | + |
| 777 | +<!--menu for accessing to meeting--> |
| 778 | + <menuitem |
| 779 | + sequence="22" |
| 780 | + action="action_ps_meeting_all" id="menu_action_ps_meeting_all" parent="menu_scrum"/> |
| 781 | + |
| 782 | +<!-- menu for accessing to test case--> |
| 783 | + <menuitem |
| 784 | + sequence="23" |
| 785 | + action="action_ps_tc_all" id="menu_action_ps_tc_all" parent="menu_scrum"/> |
| 786 | + |
786 | 787 | <!--user stories and sprints can be seen in project kanban view--> |
787 | 788 | <record id="view_ps_kanban" model="ir.ui.view"> |
788 | 789 | <field name="name">project.scrum.project.kanban</field> |
|
0 commit comments