跳至內容
選單
此問題已被標幟
1 回覆
6063 瀏覽次數

 (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



頭像
捨棄
最佳答案

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!

相關帖文 回覆 瀏覽次數 活動
0
3月 15
4241
1
5月 24
1973
4
4月 21
28664
1
7月 20
2705
1
6月 16
3993