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.

25 lines
743 B

  1. from odoo import fields, models
  2. class SubscriptionRequest(models.Model):
  3. _inherit = "subscription.request"
  4. company_type = fields.Selection(
  5. selection_add=[
  6. ("ei", "Individual company"),
  7. ("snc", "Partnership"),
  8. ("sa", "Limited company (SA)"),
  9. ("sarl", "Limited liability company (Ltd)"), # noqa
  10. ("sc", "Cooperative"),
  11. ("asso", "Association"),
  12. ("fond", "Foundation"),
  13. ("edp", "Company under public law"),
  14. ]
  15. )
  16. def get_required_field(self):
  17. req_fields = super(SubscriptionRequest, self).get_required_field()
  18. if "iban" in req_fields:
  19. req_fields.remove("iban")
  20. return req_fields