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.

20 lines
670 B

6 years ago
6 years ago
6 years ago
  1. # -*- coding: utf-8 -*-
  2. from openerp import fields, models
  3. class SubscriptionRequest(models.Model):
  4. _inherit = 'subscription.request'
  5. company_type = fields.Selection(selection_add=[
  6. ('asso', 'Association'),
  7. ('eurl', 'EURL / Entreprise individuelle'),
  8. ('sarl', 'SARL'),
  9. ('sa', 'SA / SAS')
  10. ])
  11. def get_required_field(self):
  12. req_fields = super(SubscriptionRequest, self).get_required_field()
  13. if 'iban' in req_fields:
  14. req_fields.remove('iban')
  15. return req_fields