summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/base.xml
diff options
context:
space:
mode:
authorFabien Meghazi <fme@openerp.com>2012-01-24 18:01:11 +0100
committerFabien Meghazi <fme@openerp.com>2012-01-24 18:01:11 +0100
commitb39e6ae7f122c98afb79e5bcb4ced467f472cbc5 (patch)
tree239383954f9c337f668e9a80021755dfa6388d9b /addons/web/static/src/xml/base.xml
parent518784cacacb80ab1d29e1b66579b9aa490133c8 (diff)
[ADD] Added View Log (perm_read) option in debug select box
lp bug: https://launchpad.net/bugs/914277 fixed bzr revid: fme@openerp.com-20120124170111-i35l4qclarypsrh1
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
-rw-r--r--addons/web/static/src/xml/base.xml26
1 files changed, 24 insertions, 2 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index 230ad629d3a..1b965bd4206 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -471,17 +471,39 @@
</t>
<t t-name="ViewManagerDebug">
<option value="">Debug View#<t t-esc="view.fields_view.view_id"/></option>
- <option value="fvg">Fields View Get</option>
+ <option t-if="_.indexOf(['form', 'page'], view_manager.active_view) gt -1" value="perm_read" data-views="form,page">View Log (perm_read)</option>
<option value="fields">View Fields</option>
+ <option value="fvg">Fields View Get</option>
<t t-if="view_manager.session.uid === 1">
<option value="manage_views">Manage Views</option>
<option value="edit" data-model="ir.ui.view" t-att-data-id="view.fields_view.view_id">Edit <t t-esc="_.str.capitalize(view.fields_view.type)"/>View</option>
<option t-if="view_manager.searchview" value="edit" data-model="ir.ui.view" t-att-data-id="view_manager.searchview.view_id">Edit SearchView</option>
<option t-if="view_manager.action" value="edit" t-att-data-model="view_manager.action.type" t-att-data-id="view_manager.action.id">Edit Action</option>
- <option value="customize_object">Customize Object</option>
<option value="edit_workflow">Edit Workflow</option>
+ <option value="customize_object">Customize Object</option>
</t>
</t>
+<t t-name="ViewManagerDebugViewLog">
+ <div class="oe_debug_view_log">
+ <label>ID:</label>
+ <span><t t-esc="perm.id"/></span>
+
+ <label>XML ID:</label>
+ <span><t t-esc="perm.xmlid"/></span>
+
+ <label>Creation User:</label>
+ <span><t t-esc="format(perm.create_uid, { 'type' : 'many2one' }, '/')"/></span>
+
+ <label>Creation Date:</label>
+ <span><t t-esc="format(perm.create_date, { 'type' : 'datetime' }, '/')"/></span>
+
+ <label>Latest Modification by:</label>
+ <span><t t-esc="format(perm.write_uid, { 'type' : 'many2one' }, '/')"/></span>
+
+ <label>Latest Modification Date:</label>
+ <span><t t-esc="format(perm.write_date, { 'type' : 'datetime' }, '/')"/></span>
+ </div>
+</t>
<t t-extend="ViewManager" t-name="One2Many.viewmanager">
<t t-jquery="span.oe_view_title_text" t-operation="replace"/>