Skip to content

Commit 445646a

Browse files
Merge pull request #100 from OpenSPP/fix/spp-session-tracking-improvements
fix(spp_session_tracking): harden security, improve views, and add comprehensive tests
2 parents 6851b6a + 34e44c1 commit 445646a

File tree

20 files changed

+3498
-142
lines changed

20 files changed

+3498
-142
lines changed

spp_case_session/views/session_views.xml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,15 @@
66
<field name="model">spp.session</field>
77
<field name="inherit_id" ref="spp_session_tracking.view_session_form" />
88
<field name="arch" type="xml">
9-
<xpath expr="//sheet/group[1]" position="before">
10-
<div class="oe_button_box" name="button_box">
11-
<button
12-
name="action_view_cases"
13-
type="object"
14-
class="oe_stat_button"
15-
icon="fa-folder-open"
16-
>
17-
<field name="case_count" widget="statinfo" string="Cases" />
18-
</button>
19-
</div>
9+
<xpath expr="//div[hasclass('oe_button_box')]" position="inside">
10+
<button
11+
name="action_view_cases"
12+
type="object"
13+
class="oe_stat_button"
14+
icon="fa-folder-open"
15+
>
16+
<field name="case_count" widget="statinfo" string="Cases" />
17+
</button>
2018
</xpath>
2119
</field>
2220
</record>

0 commit comments

Comments
 (0)