blob: 3c5f593a24e25b60321a70bb774e9f4e9659e254 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
|
<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
<t t-name="WebClient.DebugManager">
<li class="o_debug_manager" role="menuitem">
<t t-set="_devtool_button_title">Open Developer Tools</t>
<a role="button" href="#" class="o_debug_mode"
t-att-title="_devtool_button_title + widget.debug_mode_help"
t-att-aria-label="_devtool_button_title + widget.debug_mode_help"
t-att-data-debug-mode="widget.debug_mode"
data-toggle="dropdown" aria-expanded="false" tabindex="-1" data-display="static">
<span class="fa fa-bug"/>
</a>
<div class="dropdown-menu dropdown-menu-right o_debug_dropdown" role="menu"/>
</li>
</t>
<t t-name="WebClient.DebugManager.Global">
<a role="menuitem" href="#" data-action="split_assets" class="dropdown-item o_debug_split_assets">Activate Assets Debugging</a>
<a role="menuitem" href="#" data-action="tests_assets" class="dropdown-item">Activate Tests Assets Debugging</a>
<a role="menuitem" href="#" data-action="regenerateAssets" class="dropdown-item">Regenerate Assets Bundles</a>
<a t-if="manager._is_admin" role="menuitem" href="/web/become" class="dropdown-item">Become Superuser</a>
<a role="menuitem" href="#" data-action="leave_debug_mode" class="dropdown-item">Leave the Developer Tools</a>
</t>
<t t-name="WebClient.DebugManager.Backend">
<a role="menuitem" href="#" data-action="perform_js_tests" class="dropdown-item">Run JS Tests</a>
<a role="menuitem" href="#" data-action="perform_js_mobile_tests" class="dropdown-item">Run JS Mobile Tests</a>
<a role="menuitem" href="#" data-action="perform_click_everywhere_test" class="dropdown-item">Run Click Everywhere Test</a>
<a role="menuitem" href="#" data-action="select_view" class="dropdown-item">Open View</a>
<t t-if="manager._events">
<div class="dropdown-divider" role="separator"/>
<a role="menuitem" href="#" data-action="show_timelines" class="dropdown-item">Toggle Timelines</a>
<a role="menuitem" href="#" data-action="requests_clear" class="dropdown-item">Clear Events</a>
</t>
<div class="dropdown-divider o_debug_leave_section" role="separator"/>
</t>
<t t-name="WebClient.DebugManager.Action">
<t t-if="action">
<div class="dropdown-divider" role="separator"/>
<a role="menuitem" href="#" data-action="edit" t-att-data-model="action.type" t-att-data-id="action.id" class="dropdown-item">Edit Action</a>
<t t-if="action.res_model">
<a role="menuitem" href="#" data-action="get_view_fields" class="dropdown-item">View Fields</a>
<a role="menuitem" href="#" data-action="manage_filters" class="dropdown-item">Manage Filters</a>
<a role="menuitem" href="#" data-action="translate" class="dropdown-item">Technical Translation</a>
<div t-if="manager.canSeeModelAccess || manager.canSeeRecordRules" class="dropdown-divider" role="separator"/>
<a t-if="manager.canSeeModelAccess" role="menuitem" href="#" data-action="actionModelAccess" class="dropdown-item">View Access Rights</a>
<a t-if="manager.canSeeRecordRules" role="menuitem" href="#" data-action="actionRecordRules" class="dropdown-item">View Record Rules</a>
</t>
</t>
</t>
<t t-name="WebClient.DebugManager.View">
<t t-if="view">
<div role="separator" class="dropdown-divider"/>
<t t-if="view.type === 'form'">
<a role="menuitem" href="#" data-action="set_defaults" class="dropdown-item">Set Defaults</a>
<t t-if="controller.getSelectedIds().length === 1">
<a role="menuitem" href="#" data-action="get_metadata" class="dropdown-item">View Metadata</a>
<a role="menuitem" href="#" data-action="get_attachments" class="dropdown-item">Manage Attachments</a>
</t>
</t>
<a role="menuitem" href="#" data-action="fvg" class="dropdown-item">Fields View Get</a>
<t t-if="can_edit">
<a role="menuitem" href="#" data-action="edit" data-model="ir.ui.view" t-att-data-id="view.fieldsView.view_id" class="dropdown-item">
Edit View: <t t-esc="view.displayName"/>
</a>
<a t-if="withControlPanel" role="menuitem" href="#" data-action="edit" data-model="ir.ui.view" t-att-data-id="action.controlPanelFieldsView.view_id" class="dropdown-item">Edit ControlPanelView</a>
</t>
</t>
</t>
<t t-name="WebClient.DebugViewLog">
<table class="table table-sm table-striped">
<tr>
<th>ID:</th>
<td><t t-esc="perm.id"/></td>
</tr>
<tr>
<th>XML ID:</th>
<td><t t-esc="perm.xmlid or '/'"/></td>
</tr>
<tr>
<th>No Update:</th>
<td>
<t t-esc="perm.noupdate"/>
<t t-if="perm.xmlid">
<a data-action="toggle_noupdate">(change)</a>
</t>
</td>
</tr>
<tr>
<th>Creation User:</th>
<td><t t-esc="perm.creator"/></td>
</tr>
<tr>
<th>Creation Date:</th>
<td><t t-esc="perm.create_date"/></td>
</tr>
<tr>
<th>Latest Modification by:</th>
<td><t t-esc="perm.lastModifiedBy"/></td>
</tr>
<tr>
<th>Latest Modification Date:</th>
<td><t t-esc="perm.write_date"/></td>
</tr>
</table>
</t>
<div t-name="WebClient.DebugManager.RequestsOverlay" class="o_debug_manager_overlay">
<header>
<!-- enough height to display all tracks + 1px spacing between tracks -->
<t t-set="canvas_height" t-value="widget.TRACKS * (widget.TRACK_WIDTH + 1)"/>
<canvas t-att-height="canvas_height" id="o_debug_requests_summary"/>
<!-- transparent overlay to display selected range -->
<canvas t-att-height="canvas_height" id="o_debug_requests_selector"/>
</header>
<div class="o_debug_requests"/>
<div class="o_debug_tooltip"/>
</div>
</templates>
|