From 9ed7cbfb291c49dbee368c392d74cc849d4f0908 Mon Sep 17 00:00:00 2001 From: Ludovic CHEVALIER Date: Wed, 22 Jun 2016 10:44:21 +0200 Subject: [PATCH] [WIZARD] +manual member identification number attribution --- __init__.py | 1 + __openerp__.py | 1 + i18n/cyclofficine_pantin.pot | 325 +++++++++++++++++++++++- i18n/fr.po | 335 ++++++++++++++++++++++++- res_partner.py | 25 ++ view/bikecoop.xml | 17 ++ wizard/__init__.py | 29 +++ wizard/attribute_member_ident.py | 94 +++++++ wizard/attribute_member_ident_view.xml | 32 +++ 9 files changed, 851 insertions(+), 8 deletions(-) create mode 100644 wizard/__init__.py create mode 100644 wizard/attribute_member_ident.py create mode 100644 wizard/attribute_member_ident_view.xml diff --git a/__init__.py b/__init__.py index 2cac66c..8bff973 100644 --- a/__init__.py +++ b/__init__.py @@ -25,5 +25,6 @@ ############################################################################## import res_partner +import wizard # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/__openerp__.py b/__openerp__.py index d9b8e72..b47dc6f 100644 --- a/__openerp__.py +++ b/__openerp__.py @@ -56,6 +56,7 @@ It installs the profile for bike co-ops to manage some features like: 'data/remembership.xml', 'data/members.xml', 'data/users.xml', + 'wizard/attribute_member_ident_view.xml', 'view/account.xml', 'view/bikecoop.xml', 'view/stock.xml', diff --git a/i18n/cyclofficine_pantin.pot b/i18n/cyclofficine_pantin.pot index 893badc..9219dbf 100644 --- a/i18n/cyclofficine_pantin.pot +++ b/i18n/cyclofficine_pantin.pot @@ -1,12 +1,13 @@ # Translation of OpenERP Server. # This file contains the translation of the following modules: +# * cyclofficine_pantin # msgid "" msgstr "" "Project-Id-Version: OpenERP Server 7.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-12-04 12:00+0000\n" -"PO-Revision-Date: 2015-12-04 12:00+0000\n" +"POT-Creation-Date: 2016-06-22 08:56+0000\n" +"PO-Revision-Date: 2016-06-22 08:56+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -14,3 +15,323 @@ msgstr "" "Content-Transfer-Encoding: \n" "Plural-Forms: \n" +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_23_product_template +msgid "Outillage rue" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_30_product_template +msgid "Équipement atelier" +msgstr "" + +#. module: cyclofficine_pantin +#: code:addons/cyclofficine_pantin/wizard/attribute_member_ident.py:54 +#, python-format +msgid "Not possible" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.category,name:cyclofficine_pantin.cyclofficine_pantin_product_category_2 +msgid "PRIX LIBRE" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.category,name:cyclofficine_pantin.cyclofficine_pantin_product_category_8 +msgid "OUTILLAGE" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_24_product_template +msgid "Fournitures de bureau" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.category,name:cyclofficine_pantin.cyclofficine_pantin_product_category_10 +msgid "SERVICES" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_17_product_template +msgid "Formation pédagogie" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_22_product_template +msgid "Outillage fixe" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.category,name:cyclofficine_pantin.cyclofficine_pantin_product_category_6 +msgid "COMMISSION Bourse aux Vélos" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_7_product_template +msgid "Boite à dons fixe" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_25_product_template +msgid "Électricité" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_19_product_template +msgid "Graphisme / cmmunication" +msgstr "" + +#. module: cyclofficine_pantin +#: code:addons/cyclofficine_pantin/wizard/attribute_member_ident.py:54 +#, python-format +msgid "This member identifier is greater than the previous next number" +msgstr "" + +#. module: cyclofficine_pantin +#: field:attribute_member_ident,member_ident:0 +msgid "Member identification number" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_34_product_template +msgid "Assurance" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_20_product_template +msgid "Conseil" +msgstr "" + +#. module: cyclofficine_pantin +#: help:attribute_member_ident,previous_member_ident:0 +msgid "This number is the one that is logical to attribute now." +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_33_product_template +msgid "Charges locatives" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_11_product_template +msgid "Bricorecyclo" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_10_product_template +msgid "Atelier de rue 2h" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.category,name:cyclofficine_pantin.cyclofficine_pantin_product_category_1 +msgid "COTISATIONS" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_32_product_template +msgid "Loyer" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.category,name:cyclofficine_pantin.cyclofficine_pantin_product_category_0 +msgid "Tous" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_6_product_template +msgid "Consommables neufs rue" +msgstr "" + +#. module: cyclofficine_pantin +#: view:attribute_member_ident:0 +#: model:ir.actions.act_window,name:cyclofficine_pantin.attribute_member_ident_wizard_action +#: model:ir.model,name:cyclofficine_pantin.model_attribute_member_ident +#: view:res.partner:0 +msgid "Attribute member identification number" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_14_product_template +msgid "Troc vélo" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_31_product_template +msgid "Travaux" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_9_product_template +msgid "Atelier de rue 4h" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_21_product_template +msgid "Commission bourse " +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.category,name:cyclofficine_pantin.cyclofficine_pantin_product_category_9 +msgid "FOURNITURES DIVERSES" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_16_product_template +msgid "Formation mécanique" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.category,name:cyclofficine_pantin.cyclofficine_pantin_product_category_3 +msgid "PREST'ACTIONS" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_2_product_template +msgid "Cotisation prix libre" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_13_product_template +msgid "Cyclofolies" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_18_product_template +msgid "Démonstration" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_1_product_template +msgid "Cotisation mini" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_35_product_template +msgid "Mise à dispo salarié⋅e⋅s" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.category,name:cyclofficine_pantin.cyclofficine_pantin_product_category_7 +msgid "ATELIER" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_12_product_template +msgid "Atelier remorques" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.category,name:cyclofficine_pantin.cyclofficine_pantin_product_category_11 +msgid "AUTRES CHARGES GESTION COURANTE" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_48_product_template +msgid "Cotisations liées à la vie statutaire " +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_29_product_template +msgid "Entretient (pq, éponges, produits…)" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_3_product_template +msgid "Cotisation familiale " +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_28_product_template +msgid "Matos sérigraphie" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_15_product_template +msgid "Bourse aux vélos" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_37_product_template +msgid "Services bancaires" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_39_product_template +msgid "Déplacements" +msgstr "" + +#. module: cyclofficine_pantin +#: constraint:res.partner:0 +msgid "This member indentifier has not a good length." +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.category,name:cyclofficine_pantin.cyclofficine_pantin_product_category_5 +msgid "COMMUNICATION" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_38_product_template +msgid "Mission" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_0_product_template +msgid "Autre produit" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_27_product_template +msgid "Petit équipement" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.category,name:cyclofficine_pantin.cyclofficine_pantin_product_category_4 +msgid "FORMATION" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_5_product_template +msgid "Vélos" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_26_product_template +msgid "Gaz (bonbonne)" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_8_product_template +msgid "Boite à dons rue" +msgstr "" + +#. module: cyclofficine_pantin +#: view:attribute_member_ident:0 +msgid "Cancel" +msgstr "" + +#. module: cyclofficine_pantin +#: model:ir.model,name:cyclofficine_pantin.model_res_partner +msgid "Partner" +msgstr "" + +#. module: cyclofficine_pantin +#: view:attribute_member_ident:0 +msgid "Attribute this number" +msgstr "" + +#. module: cyclofficine_pantin +#: field:attribute_member_ident,previous_member_ident:0 +msgid "Previous member identification number" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_36_product_template +msgid "Telecom (internet, tel et timbres)" +msgstr "" + +#. module: cyclofficine_pantin +#: view:attribute_member_ident:0 +msgid "or" +msgstr "" + diff --git a/i18n/fr.po b/i18n/fr.po index dd9e875..f255d51 100644 --- a/i18n/fr.po +++ b/i18n/fr.po @@ -5,13 +5,336 @@ msgid "" msgstr "" "Project-Id-Version: OpenERP Server 7.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-12-04 13:02+0100\n" -"PO-Revision-Date: 2015-12-04 13:02+0100\n" +"POT-Creation-Date: 2016-06-22 10:56+0200\n" +"PO-Revision-Date: 2016-06-22 10:56+0200\n" +"Last-Translator: Ludovic CHEVALIER \n" "Language-Team: \n" +"Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=2; plural=(n > 1);\n" -"X-Generator: Poedit 1.8.6\n" -"Last-Translator: Ludovic CHEVALIER \n" -"Language: fr\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Poedit 1.8.8\n" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_23_product_template +msgid "Outillage rue" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_30_product_template +msgid "Équipement atelier" +msgstr "" + +#. module: cyclofficine_pantin +#: code:addons/cyclofficine_pantin/wizard/attribute_member_ident.py:54 +#, python-format +msgid "Not possible" +msgstr "Pas possible" + +#. module: cyclofficine_pantin +#: model:product.category,name:cyclofficine_pantin.cyclofficine_pantin_product_category_2 +msgid "PRIX LIBRE" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.category,name:cyclofficine_pantin.cyclofficine_pantin_product_category_8 +msgid "OUTILLAGE" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_24_product_template +msgid "Fournitures de bureau" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.category,name:cyclofficine_pantin.cyclofficine_pantin_product_category_10 +msgid "SERVICES" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_17_product_template +msgid "Formation pédagogie" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_22_product_template +msgid "Outillage fixe" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.category,name:cyclofficine_pantin.cyclofficine_pantin_product_category_6 +msgid "COMMISSION Bourse aux Vélos" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_7_product_template +msgid "Boite à dons fixe" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_25_product_template +msgid "Électricité" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_19_product_template +msgid "Graphisme / cmmunication" +msgstr "" + +#. module: cyclofficine_pantin +#: code:addons/cyclofficine_pantin/wizard/attribute_member_ident.py:54 +#, python-format +msgid "This member identifier is greater than the previous next number" +msgstr "Cet identifiant est plus grand que le numéro suivant prévu." + +#. module: cyclofficine_pantin +#: field:attribute_member_ident,member_ident:0 +msgid "Member identification number" +msgstr "Identifiant de l'adhérent·e" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_34_product_template +msgid "Assurance" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_20_product_template +msgid "Conseil" +msgstr "" + +#. module: cyclofficine_pantin +#: help:attribute_member_ident,previous_member_ident:0 +msgid "This number is the one that is logical to attribute now." +msgstr "Ce numéro est celui qu'il est logique d'attribuer maintenant." + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_33_product_template +msgid "Charges locatives" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_11_product_template +msgid "Bricorecyclo" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_10_product_template +msgid "Atelier de rue 2h" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.category,name:cyclofficine_pantin.cyclofficine_pantin_product_category_1 +msgid "COTISATIONS" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_32_product_template +msgid "Loyer" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.category,name:cyclofficine_pantin.cyclofficine_pantin_product_category_0 +msgid "Tous" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_6_product_template +msgid "Consommables neufs rue" +msgstr "" + +#. module: cyclofficine_pantin +#: view:attribute_member_ident:0 +#: model:ir.actions.act_window,name:cyclofficine_pantin.attribute_member_ident_wizard_action +#: model:ir.model,name:cyclofficine_pantin.model_attribute_member_ident +#: view:res.partner:0 +msgid "Attribute member identification number" +msgstr "Attribuer l'identifiant d'adhérent·e" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_14_product_template +msgid "Troc vélo" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_31_product_template +msgid "Travaux" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_9_product_template +msgid "Atelier de rue 4h" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_21_product_template +msgid "Commission bourse " +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.category,name:cyclofficine_pantin.cyclofficine_pantin_product_category_9 +msgid "FOURNITURES DIVERSES" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_16_product_template +msgid "Formation mécanique" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.category,name:cyclofficine_pantin.cyclofficine_pantin_product_category_3 +msgid "PREST'ACTIONS" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_2_product_template +msgid "Cotisation prix libre" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_13_product_template +msgid "Cyclofolies" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_18_product_template +msgid "Démonstration" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_1_product_template +msgid "Cotisation mini" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_35_product_template +msgid "Mise à dispo salarié⋅e⋅s" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.category,name:cyclofficine_pantin.cyclofficine_pantin_product_category_7 +msgid "ATELIER" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_12_product_template +msgid "Atelier remorques" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.category,name:cyclofficine_pantin.cyclofficine_pantin_product_category_11 +msgid "AUTRES CHARGES GESTION COURANTE" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_48_product_template +msgid "Cotisations liées à la vie statutaire " +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_29_product_template +msgid "Entretient (pq, éponges, produits…)" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_3_product_template +msgid "Cotisation familiale " +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_28_product_template +msgid "Matos sérigraphie" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_15_product_template +msgid "Bourse aux vélos" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_37_product_template +msgid "Services bancaires" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_39_product_template +msgid "Déplacements" +msgstr "" + +#. module: cyclofficine_pantin +#: constraint:res.partner:0 +msgid "This member indentifier has not a good length." +msgstr "Cet identifiant d'adhérent·e n'a pas la bonne taille." + +#. module: cyclofficine_pantin +#: model:product.category,name:cyclofficine_pantin.cyclofficine_pantin_product_category_5 +msgid "COMMUNICATION" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_38_product_template +msgid "Mission" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_0_product_template +msgid "Autre produit" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_27_product_template +msgid "Petit équipement" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.category,name:cyclofficine_pantin.cyclofficine_pantin_product_category_4 +msgid "FORMATION" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_5_product_template +msgid "Vélos" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_26_product_template +msgid "Gaz (bonbonne)" +msgstr "" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_8_product_template +msgid "Boite à dons rue" +msgstr "" + +#. module: cyclofficine_pantin +#: view:attribute_member_ident:0 +msgid "Cancel" +msgstr "Annuler" + +#. module: cyclofficine_pantin +#: model:ir.model,name:cyclofficine_pantin.model_res_partner +msgid "Partner" +msgstr "Partenaire" + +#. module: cyclofficine_pantin +#: view:attribute_member_ident:0 +msgid "Attribute this number" +msgstr "Attribuer ce numéro" + +#. module: cyclofficine_pantin +#: field:attribute_member_ident,previous_member_ident:0 +msgid "Previous member identification number" +msgstr "Identifiant d'adhérent·e prévu" + +#. module: cyclofficine_pantin +#: model:product.template,name:cyclofficine_pantin.cyclofficine_pantin_product_product_36_product_template +msgid "Telecom (internet, tel et timbres)" +msgstr "" + +#. module: cyclofficine_pantin +#: view:attribute_member_ident:0 +msgid "or" +msgstr "ou" + +#~ msgid "Point of Sale" +#~ msgstr "Point de vente" diff --git a/res_partner.py b/res_partner.py index f06e714..e221350 100644 --- a/res_partner.py +++ b/res_partner.py @@ -33,4 +33,29 @@ class Partner(orm.Model): _order = 'member_ident,name asc' + def _check_member_ident_length(self, cr, uid, ids, context=None): + # Check if member ident length is equal to sequence padding. + sequences = self.pool.get('ir.sequence') + id_mb_seq = sequences.search(cr, uid, + [('name', '=', 'Member identifier')], + limit=1, context=context) + mb_sequences = sequences.browse(cr, uid, id_mb_seq, context=context) + + partners = self.browse(cr, uid, ids, context=context) + for mb_seq in mb_sequences: + padding = mb_seq.padding + + for partner in partners: + if partner.member_ident: + mb_ident_length = len(partner.member_ident) + if not mb_ident_length == padding: + return False + + return True + + _constraints = [ + (_check_member_ident_length, + 'This member indentifier has not a good length.', ['member_ident']), + ] + # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/view/bikecoop.xml b/view/bikecoop.xml index f49dc6e..b366931 100644 --- a/view/bikecoop.xml +++ b/view/bikecoop.xml @@ -11,11 +11,28 @@ + + res.partner.form + res.partner + + + + +