Skip to Content
Menu
This question has been flagged
3 Replies
2466 Views

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!

Avatar
Discard
Best Answer

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

Avatar
Discard
Author

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)"

Author

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

Author

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.

Best Answer

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


Avatar
Discard
Best Answer

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/

Avatar
Discard
Related Posts Replies Views Activity
0
Feb 22
1434
1
Nov 24
1482
1
Nov 24
1188
2
Sep 24
1047
1
Aug 24
2451