Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
7689 Lượt xem

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 !

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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>

 

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhấ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 ?

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 8 22
2290
3
thg 12 23
17620
1
thg 4 25
387
Odoo Server Error Đã xử lý
1
thg 4 25
435
0
thg 11 24
758