From 0a916741746fe89352bced294b1d415ec678b1a3 Mon Sep 17 00:00:00 2001 From: houssine Date: Fri, 2 Aug 2019 18:49:32 +0200 Subject: [PATCH] [REFACT] move belgian company type to belgian localisation --- easy_my_coop/models/coop.py | 6 +----- easy_my_coop_be/__init__.py | 1 + easy_my_coop_be/models/__init__.py | 1 + easy_my_coop_be/models/coop.py | 11 +++++++++++ 4 files changed, 14 insertions(+), 5 deletions(-) create mode 100644 easy_my_coop_be/models/__init__.py create mode 100644 easy_my_coop_be/models/coop.py 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')])