Skip to Content
Menú
This question has been flagged
2 Respostes
8012 Vistes

While all the tutorials shows a menu list with a dozen of lines, I can't see the "Edit FromView", "Edit Action", .. actually all the edit modes.

I only have stuff like :

  • Debug View#517
  • View Log (perm_read)
  • Toggle Form Layout Online
  • Set Defaults
  • JS Tests
  • View Fields
  • Fields View Get
  • Manage Filters

But no "Edit..." menus...

I activated the developer's mode, I have the technical accessrights. 

Thank you !

Avatar
Descartar
Best Answer

These EDIT views are available only for Super User account i.e. ADMIN user.

If you need to show these views for other users also, then remove the if condition in template definition @ web/addons/web/static/src/xml/base.xml (Line no. 554)

<t t-if="view_manager.session.uid === 1">
to 
<t>

<t t-name="ViewManagerDebug">
    <option value="">Debug View#<t t-esc="view.fields_view.view_id"/></option>
    <t t-if="view_manager.active_view === 'form'">
        <option value="perm_read">View Log (perm_read)</option>
        <option value="toggle_layout_outline">Toggle Form Layout Outline</option>
        <option value="set_defaults">Set Defaults</option>
    </t>
    <option value="tests">JS Tests</option>
    <option value="fields">View Fields</option>
    <option value="fvg">Fields View Get</option>
    <option value="manage_filters">Manage Filters</option>
    <t t-if="view_manager.session.uid === 1">
        <option value="translate">Technical translation</option>
        <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="edit_workflow">Edit Workflow</option>
        <option value="print_workflow">Print Workflow</option>
    </t>
</t>

 

Avatar
Descartar
Autor Best Answer

Thank you for your fast answer, but can we create more super users, for development purpose ? Otherwise only one account is able to develop directement on the website, right ?

Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
d’ag. 22
2537
3
de des. 23
18032
1
d’abr. 25
752
1
d’abr. 25
891
0
de nov. 24
1182