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
756 B

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