Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

After upgrading a module OpenERP every times goes to Messaging

By
Stefan Reisich
on 4/2/13, 2:40 PM 2,223 views

I'm developing and testing my modules. Every time I make a change I need to update my module. Is it possible to make OpenERP 7 NOT to jump to Messaging every time I update my module? That is very annoying.

This is the same issue as in the "Initial screen" question which still has yet to be answered and the corresponding bug in Launchpad which has since vanished.

mike
on 4/2/13, 5:12 PM
0

Fabien Pinckaers (fp)

--Fabien Pinckaers (fp)--
6598
| 6 8 8
fsdsdfsdf, Belgium
--Fabien Pinckaers (fp)--

Odoo Founder & CEO

Fabien Pinckaers (fp)
On 4/2/13, 5:19 PM

Update your module by relaunching the server with -u

0

saad

--saad--
1008
| 5 4 8
Casablanca, Morocco
--saad--
saad
On 4/2/13, 4:08 PM

Refresh with ctrl+r to stay on the same page.

0

Use ERPpeek in a separate terminal window and issue a client.upgrade command - See https://erppeek.readthedocs.org/en/latest/api.html#erppeek.Client.upgrade

0
Turkesh Patel (tpa)
On 4/3/13, 4:38 AM

you can apply this patch this changes in server it will open setting menu not messaging. when we "Apply Scheduled Upgrades" it will search for next TODO and if it will not get any TODO then it will search for menu which have not any parent and it will launch first from search result.

=== modified file 'openerp/addons/base/res/res_config.py' --- openerp/addons/base/res/res_config.py 2013-03-27 11:10:14 +0000

+++ openerp/addons/base/res/res_config.py 2013-04-03 06:28:07 +0000

@@ -74,10 +74,11 @@

     # reload the client; open the first available root menu

     menu_obj = self.pool['ir.ui.menu']

     menu_ids = menu_obj.search(cr, uid, [('parent_id', '=', False)], context=context)

++ setting_menu = self.pool['ir.model.data'].get_object(cr, uid, 'base', 'menu_administration')

     return {
         'type': 'ir.actions.client',
         'tag': 'reload',

+- 'params': {'menu_id': menu_ids and menu_ids[0] or False},

++ 'params': {'menu_id': setting_menu and setting_menu.id or False}, }

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 4/2/13, 2:40 PM
Seen: 2223 times
Last updated: 3/16/15, 8:10 AM