تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
7649 أدوات العرض

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 ?

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
أغسطس 22
2266
3
ديسمبر 23
17570
1
أبريل 25
349
Odoo Server Error تم الحل
1
أبريل 25
403
0
نوفمبر 24
715