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

Hi,

How to set the default country of the delivery address for the non-registered user?  I knew I can change the country code as default on  HTML/CSS editor? But I don't know where to change it for the non-registered user.

Thanks!

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

You can set a Country for the "Public User" and also a Default Country for all new contacts.

With the developer mode activated: go to contacts-> set filter "archived"->select Public User->Edit->Select desired Country->developer tools->set defaults->country=selected contry->all users->save default

Thanks

อวตาร
ละทิ้ง
ผู้เขียน

Thank You. I tried to follow your instruction. It didn't work out the first time. Then I tried to do it again. But after that, I got authorization error when accessing the shop as below:

Error message:

Error to render compiling AST
AccessError: You are not allowed to access 'Fiscal Position' (account.fiscal.position) records.

This operation is allowed for the following groups:
- Invoicing/Billing Administrator
- Purchase/User
- User types/Internal User
- User types/Portal

Contact your administrator to request access if necessary.
Template: website_sale.products_item
Path: /t/t[2]
Node: <t t-set="combination_info" t-value="product._get_combination_info(only_template=True, add_qty=add_qty or 1, pricelist=pricelist)"/>

The error occured while rendering the template website_sale.products_item and evaluating the following expression: <t t-set="combination_info" t-value="product._get_combination_info(only_template=True, add_qty=add_qty or 1, pricelist=pricelist)"/>

Did I do something wrong? Is there a way to rollback what I set for the default value?

Thanks,
Wilson

This error seems to have another origin!
In any case to remove a default setting: activate developer mode->go to settings->technical->user-defined Defaults-> select and delete "Country (res.partner)"

ผู้เขียน

Yes, I removed the user defined default "Country", but still it got 403 error.
Thanks anyway.

ผู้เขียน

With the developer mode activated: go to contacts-> set filter "archived"->select Public User->Edit->Select desired Country->developer tools->set defaults->country=selected contry->all users->save default
I followed instructions as the above. But still, I need to select the country (no default country) when I process "Checkout". Any things I was missed.

I saw Country(res.partner) has already been set in Technical -> User-defined-Defaults.

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

it looks like, that maybe you can try with auto actions.
https://odootricks.tips/about/automated-actions/


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

Hello

We have develop one application for website. Might it will helps you.

Please take a look on below link.

https://apps.odoo.com/apps/modules/14.0/eq_website_default_country/

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ก.พ. 22
2635
3
ก.ย. 25
2833
0
ส.ค. 25
427
1
ส.ค. 25
2514
2
ก.ค. 25
8242