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

Hello everybody!!!

Can anyone help me know ho to make the activation of the developer mode automatically after the login action please.

Thanks a lot in advance.

Best Regards.

อวตาร
ละทิ้ง

redirect=/web?debug=1 in the login form

คำตอบที่ดีที่สุด

Please ! Be aware !

NEVER RUN ONLINE SERVER (available from internet) IN DEV MODE --dev ! (not secure since console available in traceback)

2 distinct thing:

dev mode (--dev cli) server which réad xml, show console in traceback, ...

debug mode  (?debug=1 in url) which display all technicals features, but don't load asset but each file one by one !


take a look at my first comment, I continue to think that it the simple way and free to do it !


So create a view with inherit view of 'login' and mode 'extented view' with xpath to update redirect input

<xpath expr="//input[@name='redirect']" position='attributes'>
    <attribute name="t-att-value">'%s%sdebug=1' % (redirect or '/web', redirect and '?' in redirect and '&amp;' or '?')</attribute>
</xpath>

That should do the job...


อวตาร
ละทิ้ง

How about making this only for a specific group?

คำตอบที่ดีที่สุด

Hi,

You can use the "Automatic Developer Mode" module available in the Odoo app store to activate the developer mode automatically after the login action in Odoo 9.

Here is the link to the app 

https://apps.odoo.com/apps/modules/9.0/developer_mode/

Regards

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Its not automatically but here chrome extension so in just one click you can activate debug mode. http://pinakinnayi.blogspot.in/2016/02/activate-debug-mode-in-one-click.html

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hello

please set option 

In windows 

openerp.config file

debug= true


อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ส.ค. 25
2547
1
ก.ค. 25
961
1
ส.ค. 25
1151
0
พ.ค. 25
1403
2
เม.ย. 25
3595