Odoo Help


This community 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.


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

Philipp Becker
on 9/29/15, 8:20 AM 672 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:

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


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