Browse Source

[REFACT] move belgian company type to belgian localisation

pull/11/head
houssine 5 years ago
parent
commit
0a91674174
  1. 6
      easy_my_coop/models/coop.py
  2. 1
      easy_my_coop_be/__init__.py
  3. 1
      easy_my_coop_be/models/__init__.py
  4. 11
      easy_my_coop_be/models/coop.py

6
easy_my_coop/models/coop.py

@ -256,11 +256,7 @@ class subscription_request(models.Model):
company_register_number = fields.Char(string='Company register number', company_register_number = fields.Char(string='Company register number',
readonly=True, readonly=True,
states={'draft': [('readonly', False)]}) 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", string="Company type",
readonly=True, readonly=True,
states={'draft': [('readonly', False)]}) states={'draft': [('readonly', False)]})

1
easy_my_coop_be/__init__.py

@ -0,0 +1 @@
from . import models

1
easy_my_coop_be/models/__init__.py

@ -0,0 +1 @@
from . import coop

11
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')])
Loading…
Cancel
Save