Skip to content

Commit ebb0798

Browse files
project_scrum: business process removed (odoo-bpm will add better)
1 parent f794e5e commit ebb0798

File tree

4 files changed

+46
-84
lines changed

4 files changed

+46
-84
lines changed

project_scrum/models/project_scrum.p.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,8 @@ class ProjectActors(models.Model):
247247
_description = 'Actors in user stories'
248248

249249
name = fields.Char(string='Name', size=60)
250+
role = fields.Text(string='Role',)
251+
goal = fields.Text(string='Goal',)
250252

251253

252254
class ScrumMeeting(models.Model):
@@ -370,13 +372,13 @@ class SprintType(models.Model):
370372
sequence = fields.Integer()
371373

372374

373-
class ProjectSprintBusinessProcess(models.Model):
374-
_name = 'project.scrum.business.process'
375-
_order = 'sequence'
376-
_description = 'Business Process'
375+
# ~ class ProjectSprintBusinessProcess(models.Model):
376+
# ~ _name = 'project.scrum.business.process'
377+
# ~ _order = 'sequence'
378+
# ~ _description = 'Business Process'
377379

378-
name = fields.Char(string="Description")
379-
sequence = fields.Integer()
380+
# ~ name = fields.Char(string="Description")
381+
# ~ sequence = fields.Integer()
380382

381383

382384

project_scrum/models/project_scrum.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,8 @@ class ProjectActors(models.Model):
227227
_description = 'Actors in user stories'
228228

229229
name = fields.Char(string='Name', size=60)
230+
role = fields.Text(string='Role',)
231+
goal = fields.Text(string='Goal',)
230232

231233

232234
class ScrumMeeting(models.Model):

project_scrum/views/project_scrum_view.p.xml

Lines changed: 20 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1232,6 +1232,14 @@
12321232
<group>
12331233
<field name="name"/>
12341234
</group>
1235+
<notebook>
1236+
<page id="role" string="Role">
1237+
<field name="role" />
1238+
</page>
1239+
<page id="goal" string="Goal">
1240+
<field name="goal" />
1241+
</page>
1242+
</notebook>
12351243
</sheet>
12361244
</form>
12371245
</field>
@@ -1244,9 +1252,11 @@
12441252
<!-- #if VERSION <= "17.0" -->
12451253
<tree string="Actors" editable="bottom" sample="1">
12461254
<!-- #else -->
1247-
<list>
1255+
<list >
12481256
<!-- #endif -->
12491257
<field name="name"/>
1258+
<field name="role"/>
1259+
<field name="goal"/>
12501260
<!-- #if VERSION <= "17.0" -->
12511261
</tree>
12521262
<!-- #else -->
@@ -1258,56 +1268,23 @@
12581268
<record id="project_scrum_actors_action" model="ir.actions.act_window">
12591269
<field name="name">Actors</field>
12601270
<field name="res_model">project.scrum.actors</field>
1271+
<!-- #if VERSION <= "17.0" -->
1272+
<field name="view_mode">tree,form</field>
1273+
<!-- #else -->
1274+
<field name="view_mode">list,form</field>
1275+
<!-- #endif -->
1276+
<!--
12611277
<field name="help" type="html">
12621278
<p class="o_view_nocontent_smiling_face">
12631279
No actors found. Let's create one!
12641280
</p>
12651281
</field>
1282+
-->
12661283
</record>
1267-
<menuitem action="project_scrum_actors_action" id="menu_project_scrum_action_act" parent="project.menu_project_config"/>
12681284

1269-
<record model="ir.ui.view" id="project_scrum_business_process_form_view">
1270-
<field name="name">Business Process</field>
1271-
<field name="model">project.scrum.business.process</field>
1272-
<field name="arch" type="xml">
1273-
<form string="Business Process">
1274-
<sheet>
1275-
<group>
1276-
<field name="name"/>
1277-
</group>
1278-
</sheet>
1279-
</form>
1280-
</field>
1281-
</record>
1282-
1283-
<record model="ir.ui.view" id="project_scrum_business_process_tree_view">
1284-
<field name="name">Business Process</field>
1285-
<field name="model">project.scrum.business.process</field>
1286-
<field name="arch" type="xml">
1287-
<!-- #if VERSION <= "17.0" -->
1288-
<tree string="Business Process" editable="bottom" sample="1">
1289-
<!-- #else -->
1290-
<list>
1291-
<!-- #endif -->
1292-
<field name="name"/>
1293-
<!-- #if VERSION <= "17.0" -->
1294-
</tree>
1295-
<!-- #else -->
1296-
</list>
1297-
<!-- #endif -->
1298-
</field>
1299-
</record>
1285+
1286+
<menuitem action="project_scrum_actors_action" id="menu_project_scrum_action_act" parent="project.menu_project_config"/>
13001287

1301-
<record id="project_scrum_business_process_action" model="ir.actions.act_window">
1302-
<field name="name">Business Process</field>
1303-
<field name="res_model">project.scrum.business.process</field>
1304-
<field name="help" type="html">
1305-
<p class="o_view_nocontent_smiling_face">
1306-
No Business Process found. Let's create one!
1307-
</p>
1308-
</field>
1309-
</record>
1310-
<menuitem action="project_scrum_business_process_action" id="menu_project_scrum_business_process_act" parent="project.menu_project_config"/>
13111288

13121289

13131290
<record id="merge_project_stages_action" model="ir.actions.server">

project_scrum/views/project_scrum_view.xml

Lines changed: 16 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -958,6 +958,14 @@
958958
<group>
959959
<field name="name"/>
960960
</group>
961+
<notebook>
962+
<page id="role" string="Role">
963+
<field name="role" />
964+
</page>
965+
<page id="goal" string="Goal">
966+
<field name="goal" />
967+
</page>
968+
</notebook>
961969
</sheet>
962970
</form>
963971
</field>
@@ -967,57 +975,30 @@
967975
<field name="name">Actors</field>
968976
<field name="model">project.scrum.actors</field>
969977
<field name="arch" type="xml">
970-
<list>
978+
<list >
971979
<field name="name"/>
980+
<field name="role"/>
981+
<field name="goal"/>
972982
</list>
973983
</field>
974984
</record>
975985

976986
<record id="project_scrum_actors_action" model="ir.actions.act_window">
977987
<field name="name">Actors</field>
978988
<field name="res_model">project.scrum.actors</field>
989+
<field name="view_mode">list,form</field>
990+
<!--
979991
<field name="help" type="html">
980992
<p class="o_view_nocontent_smiling_face">
981993
No actors found. Let's create one!
982994
</p>
983995
</field>
984-
</record>
985-
<menuitem action="project_scrum_actors_action" id="menu_project_scrum_action_act" parent="project.menu_project_config"/>
986-
987-
<record model="ir.ui.view" id="project_scrum_business_process_form_view">
988-
<field name="name">Business Process</field>
989-
<field name="model">project.scrum.business.process</field>
990-
<field name="arch" type="xml">
991-
<form string="Business Process">
992-
<sheet>
993-
<group>
994-
<field name="name"/>
995-
</group>
996-
</sheet>
997-
</form>
998-
</field>
996+
-->
999997
</record>
1000998

1001-
<record model="ir.ui.view" id="project_scrum_business_process_tree_view">
1002-
<field name="name">Business Process</field>
1003-
<field name="model">project.scrum.business.process</field>
1004-
<field name="arch" type="xml">
1005-
<list>
1006-
<field name="name"/>
1007-
</list>
1008-
</field>
1009-
</record>
999+
1000+
<menuitem action="project_scrum_actors_action" id="menu_project_scrum_action_act" parent="project.menu_project_config"/>
10101001

1011-
<record id="project_scrum_business_process_action" model="ir.actions.act_window">
1012-
<field name="name">Business Process</field>
1013-
<field name="res_model">project.scrum.business.process</field>
1014-
<field name="help" type="html">
1015-
<p class="o_view_nocontent_smiling_face">
1016-
No Business Process found. Let's create one!
1017-
</p>
1018-
</field>
1019-
</record>
1020-
<menuitem action="project_scrum_business_process_action" id="menu_project_scrum_business_process_act" parent="project.menu_project_config"/>
10211002

10221003

10231004
<record id="merge_project_stages_action" model="ir.actions.server">

0 commit comments

Comments
 (0)