Odoo Help


Change required fields on billing information frontend? (eCommerce / Webshop )

Philipp Becker
on 9/29/15, 8:20 AM 1,500 views

If a user want to checkout in my shop he has to fill out the basic required fields like Name, Email etc.
Is there any way to change which fields are requiered and which are not necessary?

I want the ZIP Code to be checked and I dont want the phone number to be required.

Philipp Becker
On 10/5/15, 4:00 AM

I found the solution:

The answer is in the website_sale modul.

(row 447-450)

    mandatory_billing_fields = ["name", "phone", "email", "street2", "city", "country_id"]

optional_billing_fields = ["street", "state_id", "vat", "vat_subjected", "zip"]
mandatory_shipping_fields = ["name", "phone", "street", "city", "country_id"]
optional_shipping_fields = ["state_id", "zip"]

My team created a Modul to change the mandatory fields and we will put it online soon.

But for now this should help. 

Edit: Here is the module:

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 9/29/15, 8:20 AM
Seen: 1500 times
Last updated: 10/16/15, 6:39 AM