You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
703 B

  1. # -*- coding: utf-8 -*-
  2. # Copyright 2017-2018 Rémy Taymans <remytaymans@gmail.com>
  3. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  4. from openerp.addons.website_portal_extend.controllers.main import ExtendWebsiteAccountController
  5. from openerp.http import request
  6. class BeesdooAccountWebsiteController(ExtendWebsiteAccountController):
  7. mandatory_billing_fields = [
  8. "phone",
  9. "city",
  10. "country_id",
  11. "street",
  12. "zipcode",
  13. ]
  14. optional_billing_fields = [
  15. "state_id",
  16. ]
  17. def _set_mandatory_fields(self, data):
  18. """This is not useful as the field 'company_name' is not present
  19. anymore.
  20. """
  21. pass