تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
5104 أدوات العرض

i have created a odoo module with 6 tabs(pages) under the form customers.when i select one customer it opens the form with all the tabs and i can go through the tabs.if i select 4th tab and go back to the customers list by clicking on the form name(here customers) and again select the customer it shows the same 4th tab.can i make the 1st tab as default without refreshing whole the browser? (i tried "autofocus="autofocus"" but it works only if we refresh the browser page) im using odoo version 10.

الصورة الرمزية
إهمال
its not working.what to do now

On Wed, Feb 14, 2018 at 10:59 PM, Hilar <hilarak@gmail.com> wrote:

A new answer on Default tab Issue has been posted. Click here to access the post :

See post



Sent by Odoo S.A. using Odoo.


أفضل إجابة

you are giving html5 attribute to the tabs and it doesn't works. you could try default_focus="1"
for example :

<field name="name" default_focus="1" placeholder="Name"/>

الصورة الرمزية
إهمال

Doesn't work with Odoo 11