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.

19 lines
626 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([
  6. ('asso', 'Association'),
  7. ('eurl', 'EURL / Entreprise individuelle'),
  8. ('sarl', 'SARL'),
  9. ('sa', 'SA / SAS')])
  10. def get_required_field(self):
  11. req_fields = super(SubscriptionRequest, self).get_required_field()
  12. if 'iban' in req_fields:
  13. req_fields.remove('iban')
  14. return req_fields