Hello, I have a user account which is supposed to have admin rights, but for some reason I cant manage a view when OpenERP is in developer mode. I can see a list of some options, but the Manage Views option is not available. If I log in as admin on a test database then the option shows up. Does anyone know what I need to do to allow my real user account to manage the views like the admin?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
Hi everyone, I actually stumbled upon this answer when trying to figure out another problem lol. The problem exists in the base.xml file in the Web module. The path to this file is: addons/web/static/src/xml/base.xml
Search the file for "ViewManagerDebug" and you will see a section of code like this:
<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>
About half way down that section you will see an opening tag:
<t t-if="view_manager.session.uid === 1">
Here you can change the test condition to allow another user to see the rest of the options on the menu
<t t-if="view_manager.session.uid === 1 or view_manager.session.uid === 2">
Note: I am using a Windows version for OpenERP
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
Manage views only for administrator?
Đã xử lý
|
|
1
thg 3 15
|
5893 | |
|
1
thg 3 15
|
5407 | ||
|
1
thg 7 15
|
10782 | ||
|
1
thg 3 15
|
5268 | ||
|
3
thg 2 23
|
5310 |