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.

27 lines
670 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. class BeesdooAccountWebsiteController(ExtendWebsiteAccountController):
  6. mandatory_billing_fields = [
  7. "phone",
  8. "city",
  9. "country_id",
  10. "street",
  11. "zipcode",
  12. ]
  13. optional_billing_fields = [
  14. "state_id",
  15. ]
  16. def _set_mandatory_fields(self, data):
  17. """This is not useful as the field 'company_name' is not present
  18. anymore.
  19. """
  20. pass