odoo的网店如何修改地址信息中的必填字段

admin 2020-7-31 13473

在odoo的网店中,如果想自定义必录字段,只需要修改

odoo/addons/website_sale/controllers/main.py

文件中以下两个方法即可:

 def _get_mandatory_billing_fields(self): 
     return ["name", "email", "street", "city", "country_id"] 
  
 def _get_mandatory_shipping_fields(self): 
     return ["name", "street", "city", "country_id"]


最新回复 (0)
返回