Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
6049 มุมมอง

 (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!

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
มี.ค. 15
4226
1
พ.ค. 24
1965
4
เม.ย. 21
28655
1
ก.ค. 20
2695
How do I change the menu in v9 CE? แก้ไขแล้ว
1
มิ.ย. 16
3988