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

  1. # Copyright 2017 - Today Coop IT Easy SCRLfs (<http://www.coopiteasy.be>)
  2. # - Rémy Taymans <remy@coopiteasy.be>
  3. # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
  4. from odoo.addons.website_portal_extend.controllers.main import ExtendWebsiteAccountController
  5. from odoo.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