I wish to put res.country on the registration form, so whoever registers on my site selects what country they are from.
How can i list all the countries in `res.country`?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I wish to put res.country on the registration form, so whoever registers on my site selects what country they are from.
How can i list all the countries in `res.country`?
@Adrian Is this about Website Builder Module? Still you can try by using many2one relation in your registration Model.
Hi Adrian, Updating my answer .. add this code to xml of your registration part of your website reference is here
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
Inscribirse| Publicaciones relacionadas | Respuestas | Vistas | Actividad | |
|---|---|---|---|---|
|
|
4
ene 24
|
24483 | ||
|
Attrs attribute
Resuelto
|
2
ene 24
|
3342 | ||
|
0
ago 23
|
3116 | |||
|
0
nov 22
|
2455 | |||
|
5
sept 21
|
18654 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.
Links for adding code to controller https://github.com/odoo/odoo/blob/8.0/addons/website_sale/controllers/main.py#L367 link for adding code to xml https://github.com/odoo/odoo/blob/8.0/addons/website_sale/views/templates.xml#L888 Sorry due to low karma I couldn't answer you properly, but this will help you.