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

When you click on Sales | Sales | Customers, you get a Kanban view of your customers.   My goal is to default that to the list view of my customers.    The first attempt I modified the order of the buttons and put List View first.   That worked until I updated Odoo and it reverted my changes.

My second attempt was to create a brand new Customer menu item, which worked, but now after an update, I have two Customers menu items, one that is the Kanban View.    The other is my new List View.

What is the right way to modify the menu so that it'll survive an update of Odoo?    Do I have to create a module that'll run automatically after update to replace all my changes?

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

http://ursainfosystems.com/homesite/upgrade-safe-changes-to-odoo-views/ 


For menus:


1. Create a new group - NOBODY - with no users in it.

2. Duplicate the menu, so you have your 'own' copy.

3. Set the permissions of the original to NOBODY.

Аватар
Отменить
Автор

Excellent. I know how to extend views, just didn't know about menus. The "NOBODY" group seems like a very easy fix.