Browse Source

[IMP] add value of the belgian localisation

pull/11/head
houssine 5 years ago
parent
commit
93437ff98f
  1. 2
      easy_my_coop/models/coop.py
  2. 2
      easy_my_coop/models/partner.py
  3. 1
      easy_my_coop_be/models/__init__.py
  4. 13
      easy_my_coop_be/models/partner.py

2
easy_my_coop/models/coop.py

@ -256,7 +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([('other', 'Other')],
company_type = fields.Selection([('', '')],
string="Company type", string="Company type",
readonly=True, readonly=True,
states={'draft': [('readonly', False)]}) states={'draft': [('readonly', False)]})

2
easy_my_coop/models/partner.py

@ -142,6 +142,8 @@ class ResPartner(models.Model):
subscription_request_ids = fields.One2many('subscription.request', subscription_request_ids = fields.One2many('subscription.request',
'partner_id', 'partner_id',
string="Subscription request") string="Subscription request")
legal_form = fields.Selection([('', '')],
string="Legal form")
data_policy_approved = fields.Boolean(string="Approved Data Policy") data_policy_approved = fields.Boolean(string="Approved Data Policy")
internal_rules_approved = fields.Boolean(string="Approved Internal Rules") internal_rules_approved = fields.Boolean(string="Approved Internal Rules")

1
easy_my_coop_be/models/__init__.py

@ -1 +1,2 @@
from . import coop from . import coop
from . import partner

13
easy_my_coop_be/models/partner.py

@ -0,0 +1,13 @@
# -*- coding: utf-8 -*-
from openerp import fields, models
class ResPartner(models.Model):
_inherit = 'res.partner'
legal_form = fields.Selection(selection_add=[
('scrl', 'SCRL'),
('asbl', 'ASBL'),
('sprl', 'SPRL'),
('sa', 'SA')
])
Loading…
Cancel
Save