Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
8182 Представления

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 !

Аватар
Отменить
Лучший ответ

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>

 

Аватар
Отменить
Автор Лучший ответ

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 ?

Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
авг. 22
2684
3
дек. 23
18295
1
апр. 25
941
Odoo Server Error Решено
1
апр. 25
1087
0
нояб. 24
1344