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
- Boekhouding
- Voorraad
- PoS
- Project
- MRP
Deze vraag is gerapporteerd
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
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
AanmeldenGerelateerde posts | Antwoorden | Weergaven | Activiteit | |
---|---|---|---|---|
Manage views only for administrator?
Opgelost
|
|
1
mrt. 15
|
5829 | |
|
1
mrt. 15
|
5305 | ||
|
1
jul. 15
|
10713 | ||
|
1
mrt. 15
|
5194 | ||
|
3
feb. 23
|
5245 |