diff --git a/easy_my_coop/models/coop.py b/easy_my_coop/models/coop.py index 3044765..75b81c6 100644 --- a/easy_my_coop/models/coop.py +++ b/easy_my_coop/models/coop.py @@ -256,11 +256,7 @@ class subscription_request(models.Model): company_register_number = fields.Char(string='Company register number', readonly=True, states={'draft': [('readonly', False)]}) - company_type = fields.Selection([('scrl', 'SCRL'), - ('asbl', 'ASBL'), - ('sprl', 'SPRL'), - ('sa', 'SA'), - ('other', 'Other')], + company_type = fields.Selection([('other', 'Other')], string="Company type", readonly=True, states={'draft': [('readonly', False)]}) diff --git a/easy_my_coop_be/__init__.py b/easy_my_coop_be/__init__.py index e69de29..7f0969e 100644 --- a/easy_my_coop_be/__init__.py +++ b/easy_my_coop_be/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/easy_my_coop_be/models/__init__.py b/easy_my_coop_be/models/__init__.py new file mode 100644 index 0000000..bb5197b --- /dev/null +++ b/easy_my_coop_be/models/__init__.py @@ -0,0 +1 @@ +from . import coop diff --git a/easy_my_coop_be/models/coop.py b/easy_my_coop_be/models/coop.py new file mode 100644 index 0000000..c490fda --- /dev/null +++ b/easy_my_coop_be/models/coop.py @@ -0,0 +1,11 @@ +# -*- coding: utf-8 -*- +from openerp import fields, models + + +class subscription_request(models.Model): + _inherit = 'subscription.request' + + company_type = fields.Selection([('scrl', 'SCRL'), + ('asbl', 'ASBL'), + ('sprl', 'SPRL'), + ('sa', 'SA')])