From 2fd6546653a93bce39e5cdc1303187d2aee4d476 Mon Sep 17 00:00:00 2001 From: houssine Date: Fri, 2 Aug 2019 20:28:23 +0200 Subject: [PATCH] [IMP] add value for the switzerland --- easy_my_coop_ch/models/__init__.py | 3 ++- easy_my_coop_ch/models/partner.py | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 easy_my_coop_ch/models/partner.py diff --git a/easy_my_coop_ch/models/__init__.py b/easy_my_coop_ch/models/__init__.py index 0b75654..35c42e8 100644 --- a/easy_my_coop_ch/models/__init__.py +++ b/easy_my_coop_ch/models/__init__.py @@ -1 +1,2 @@ -from . import coop \ No newline at end of file +from . import coop +from . import partner diff --git a/easy_my_coop_ch/models/partner.py b/easy_my_coop_ch/models/partner.py new file mode 100644 index 0000000..63fd456 --- /dev/null +++ b/easy_my_coop_ch/models/partner.py @@ -0,0 +1,17 @@ +# -*- coding: utf-8 -*- +from openerp import fields, models + + +class ResPartner(models.Model): + _inherit = 'res.partner' + + legal_form = fields.Selection(selection_add=[ + ('ei', 'Individual company'), + ('snc', 'Partnership'), + ('sa', 'Limited company (SA)'), + ('sarl', 'Limited liability company (Ltd)'), + ('sc', 'Cooperative'), + ('asso', 'Association'), + ('fond', 'Foundation'), + ('edp', 'Company under public law') + ])