Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
6046 Widoki

 (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



Awatar
Odrzuć
Najlepsza odpowiedź

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.

Awatar
Odrzuć
Autor

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

Powiązane posty Odpowiedzi Widoki Czynność
0
mar 15
4226
1
maj 24
1958
4
kwi 21
28653
1
lip 20
2695
1
cze 16
3988