Odoo Help

1

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

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



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

I found the solution:

The answer is in the website_sale modul.

website_sale/controllers/main.py
(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:
https://github.com/KontorConsulting/Odoo-8-Modules/tree/master/website_sale_mandatory_mod

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.

Register

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)

Stats

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