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

When new customer register on website, the timezone default is UTM, I want setting default UTM + xx. Please help me!

Thanks for reading!

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

Hi,

go to the top right menu "administrator"  (where you can log out too), push section  "about odoo", in the opened wizard, at the top right push "activate developer mode", close the wizard.

Go to a user form, in notebook for field timezone, change the timezone value, save, change a second time value with Asia/Ho_Chi_Minh and save.

now on the top left of the form, push button "debug view", in the list choose "set defaults", in the new opened wizard, for field "default", choose in the list "Timezone = Asia/Ho_Chi_Minh", select other field "all users" and save. Now your next created user will have Timezone = Asia/Ho_Chi_Minh as default value.

see this example with pictures :


https://www.odoo.com/forum/help-1/question/default-field-value-of-a-form-view-45265

Bye

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Thank you Cyril Gaspard for reply. My timezone is Asia/Ho_Chi_Minh, but I don't now how to make your tutorial with commando in ubuntu. Can you help me?

อวตาร
ละทิ้ง

Hi, I update my answer which explain how to set a default value by using interfaces (without coding). Bye

Related Posts ตอบกลับ มุมมอง กิจกรรม
2
เม.ย. 23
3254
2
ม.ค. 23
2476
1
ส.ค. 22
5435
2
ก.พ. 21
16404
1
ต.ค. 20
3475