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

Adding Submenu to Sales Module

By
Colleen Jenkins
on 7/7/16, 5:30 PM 305 views

 (Enterprise Odoo V9) I am trying to add an Opportunities menu item as a sub-menu to sales.  It seems like Opportunities should inherently be a sub menu item under Sales but it is not. 

I have turned on developer mode > gone to Technical then Menus.  When I click on the Sales/Sales item, I can see all the current sub-menus, I added one for Opportunities following all the same criteria for the other sub-menus and save my work.  The menu item shows up, but I get the following error, can anyone help?


Error: NameError: name 'active_id' is not defined
http://10.79.1.11:8069/web/static/lib/py.js/lib/py.js:370
Traceback:
PY_ensurepy@http://10.79.1.11:8069/web/static/lib/py.js/lib/py.js:370:19
py.evaluate@http://10.79.1.11:8069/web/static/lib/py.js/lib/py.js:1340:20
py.evaluate@http://10.79.1.11:8069/web/static/lib/py.js/lib/py.js:1418:21
py.eval@http://10.79.1.11:8069/web/static/lib/py.js/lib/py.js:1453:16
eval_contexts/<@http://10.79.1.11:8069/web/static/src/js/framework/pyeval.js:823:25
iterator@http://10.79.1.11:8069/web/static/lib/underscore/underscore.js:176:16
createReduce/<@http://10.79.1.11:8069/web/static/lib/underscore/underscore.js:191:14
_.mixin/</_.prototype[name]@http://10.79.1.11:8069/web/static/lib/underscore/underscore.js:1484:29
eval_contexts@http://10.79.1.11:8069/web/static/src/js/framework/pyeval.js:811:12
eval_contexts/<@http://10.79.1.11:8069/web/static/src/js/framework/pyeval.js:827:25
iterator@http://10.79.1.11:8069/web/static/lib/underscore/underscore.js:176:16
createReduce/<@http://10.79.1.11:8069/web/static/lib/underscore/underscore.js:191:14
_.mixin/</_.prototype[name]@http://10.79.1.11:8069/web/static/lib/underscore/underscore.js:1484:29
eval_contexts@http://10.79.1.11:8069/web/static/src/js/framework/pyeval.js:811:12
pyeval@http://10.79.1.11:8069/web/static/src/js/framework/pyeval.js:929:16
ActionManager<.do_action@http://10.79.1.11:8069/web/static/src/js/action_manager.js:574:26
WebClient<.do_action@http://10.79.1.11:8069/web/static/src/js/web_client.js:292:16
WebClient<.on_menu_clicked/</<@http://10.79.1.11:8069/web/static/src/js/web_client.js:393:28
Mutex.prototype.exec/<@http://10.79.1.11:8069/web/static/src/js/framework/utils.js:205:23
.Deferred/promise.then/</</<@http://10.79.1.11:8069/web/static/lib/jquery/jquery.js:3276:86
jQuery.Callbacks/fire@http://10.79.1.11:8069/web/static/lib/jquery/jquery.js:3119:38
jQuery.Callbacks/self.add@http://10.79.1.11:8069/web/static/lib/jquery/jquery.js:3165:49
.Deferred/promise.then/</<@http://10.79.1.11:8069/web/static/lib/jquery/jquery.js:3275:57
.each@http://10.79.1.11:8069/web/static/lib/jquery/jquery.js:383:49
.Deferred/promise.then/<@http://10.79.1.11:8069/web/static/lib/jquery/jquery.js:3272:49
.Deferred@http://10.79.1.11:8069/web/static/lib/jquery/jquery.js:3332:25
.Deferred/promise.then@http://10.79.1.11:8069/web/static/lib/jquery/jquery.js:3271:48
Mutex.prototype.exec@http://10.79.1.11:8069/web/static/src/js/framework/utils.js:204:12
WebClient<.on_menu_clicked/<@http://10.79.1.11:8069/web/static/src/js/web_client.js:391:24
.Deferred/promise.then/</</<@http://10.79.1.11:8069/web/static/lib/jquery/jquery.js:3276:86
jQuery.Callbacks/fire@http://10.79.1.11:8069/web/static/lib/jquery/jquery.js:3119:38
jQuery.Callbacks/self.fireWith@http://10.79.1.11:8069/web/static/lib/jquery/jquery.js:3231:49
.Deferred/</deferred[tuple[0]]@http://10.79.1.11:8069/web/static/lib/jquery/jquery.js:3321:33
DropMisordered<.add/<@http://10.79.1.11:8069/web/static/src/js/framework/utils.js:402:17
jQuery.Callbacks/fire@http://10.79.1.11:8069/web/static/lib/jquery/jquery.js:3119:38
jQuery.Callbacks/self.fireWith@http://10.79.1.11:8069/web/static/lib/jquery/jquery.js:3231:49
.Deferred/</deferred[tuple[0]]@http://10.79.1.11:8069/web/static/lib/jquery/jquery.js:3321:33
ParentedMixin.alive/</<@http://10.79.1.11:8069/web/static/src/js/framework/mixins.js:79:21
.Deferred/promise.then/</</<@http://10.79.1.11:8069/web/static/lib/jquery/jquery.js:3276:86
jQuery.Callbacks/fire@http://10.79.1.11:8069/web/static/lib/jquery/jquery.js:3119:38
jQuery.Callbacks/self.fireWith@http://10.79.1.11:8069/web/static/lib/jquery/jquery.js:3231:49
.Deferred/</deferred[tuple[0]]@http://10.79.1.11:8069/web/static/lib/jquery/jquery.js:3321:33
jQuery.Callbacks/fire@http://10.79.1.11:8069/web/static/lib/jquery/jquery.js:3119:38
jQuery.Callbacks/self.fireWith@http://10.79.1.11:8069/web/static/lib/jquery/jquery.js:3231:49
.Deferred/promise.then/</</<@http://10.79.1.11:8069/web/static/lib/jquery/jquery.js:3283:73
jQuery.Callbacks/fire@http://10.79.1.11:8069/web/static/lib/jquery/jquery.js:3119:38
jQuery.Callbacks/self.fireWith@http://10.79.1.11:8069/web/static/lib/jquery/jquery.js:3231:49
.Deferred/promise.then/</</<@http://10.79.1.11:8069/web/static/lib/jquery/jquery.js:3283:73
jQuery.Callbacks/fire@http://10.79.1.11:8069/web/static/lib/jquery/jquery.js:3119:38
jQuery.Callbacks/self.fireWith@http://10.79.1.11:8069/web/static/lib/jquery/jquery.js:3231:49
done@http://10.79.1.11:8069/web/static/lib/jquery/jquery.js:9275:33
.send/callback@http://10.79.1.11:8069/web/static/lib/jquery/jquery.js:9685:57



1

Fabrice Henrion (fhe)

--Fabrice Henrion (fhe)--
5823
| 7 7 8
San Francisco, United States
--Fabrice Henrion (fhe)--

Director Odoo USA

Fabrice Henrion (fhe)
On 7/7/16, 11:22 PM

Why do you need to add a menu entry for Opportunities under the Sales menu? There is already one (called Your Pipeline). Just change the label from 'Your Pipeline' to 'Opportunities' and you're done.

Wow - Fabrice... apparently I am losing my mind. That is what I needed. Thank you!

Colleen Jenkins
on 7/11/16, 1:51 PM

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: 7/7/16, 5:30 PM
Seen: 305 times
Last updated: 7/11/16, 1:51 PM