[PYTHON][VIEW] +secondary email for partners
authorLudovic CHEVALIER <ludovic@beurresarrasin.net>
Sun, 25 Sep 2022 13:41:15 +0000 (15:41 +0200)
committerLudovic CHEVALIER <ludovic@beurresarrasin.net>
Sun, 25 Sep 2022 13:41:15 +0000 (15:41 +0200)
i18n/fr.po
i18n/lhc.pot
lhc.py
view/res_partner.xml

index e194b98..e20a4b6 100644 (file)
@@ -6,15 +6,15 @@ msgid ""
 msgstr ""
 "Project-Id-Version: OpenERP Server 6.0.4\n"
 "Report-Msgid-Bugs-To: \n"
 msgstr ""
 "Project-Id-Version: OpenERP Server 6.0.4\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2022-02-22 16:38+0000\n"
-"PO-Revision-Date: 2022-02-22 17:40+0100\n"
+"POT-Creation-Date: 2022-09-25 13:22+0000\n"
+"PO-Revision-Date: 2022-09-25 15:24+0200\n"
 "Last-Translator: Ludovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>\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"
 "Last-Translator: Ludovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>\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"
-"X-Generator: Poedit 3.0.1\n"
+"X-Generator: Poedit 3.1.1\n"
 
 #. module: lhc
 #: field:res.partner,county_code:0
 
 #. module: lhc
 #: field:res.partner,county_code:0
@@ -32,9 +32,14 @@ msgid "All Companies Members"
 msgstr "Toutes les structures membres"
 
 #. module: lhc
 msgstr "Toutes les structures membres"
 
 #. module: lhc
-#: field:res.partner,kit_sent:0
-msgid "Welcome kit sent"
-msgstr "Kit de bienvenue envoyé"
+#: help:res.partner,email2:0
+msgid ""
+"One more email. Warning: there are no email notification\n"
+"            with this email. Only the main email can receive notifications."
+msgstr ""
+"Un autre courriel. Attention: il n'y a pas notification par courriel avec "
+"cette adresse\n"
+"    Seul le courriel principal peut recevoir des notifications."
 
 #. module: lhc
 #: model:ir.model,name:lhc.model_res_users
 
 #. module: lhc
 #: model:ir.model,name:lhc.model_res_users
@@ -76,6 +81,11 @@ msgstr "Facturation"
 msgid "Annual meeting organisation"
 msgstr "Organisation des rencontres"
 
 msgid "Annual meeting organisation"
 msgstr "Organisation des rencontres"
 
+#. module: lhc
+#: field:res.partner,email2:0
+msgid "Secondary email"
+msgstr "Courriel alternatif"
+
 #. module: lhc
 #: selection:event.registration,funding_main:0
 msgid "Company"
 #. module: lhc
 #: selection:event.registration,funding_main:0
 msgid "Company"
@@ -96,6 +106,11 @@ msgstr "Inscriptions"
 msgid "Customize OpenERP for L'Heureux Cyclage usages."
 msgstr "Personnalisation d'OpenERP pour les besoins de L'Heureux Cyclage."
 
 msgid "Customize OpenERP for L'Heureux Cyclage usages."
 msgstr "Personnalisation d'OpenERP pour les besoins de L'Heureux Cyclage."
 
+#. module: lhc
+#: field:res.partner,kit_sent:0
+msgid "Welcome kit sent"
+msgstr "Kit de bienvenue envoyé"
+
 #. module: lhc
 #: model:ir.actions.act_window,name:lhc.act_open_rencontres_2016_project_view
 #: model:ir.ui.menu,name:lhc.menu_rencontres_2016_projects
 #. module: lhc
 #: model:ir.actions.act_window,name:lhc.act_open_rencontres_2016_project_view
 #: model:ir.ui.menu,name:lhc.menu_rencontres_2016_projects
@@ -123,6 +138,11 @@ msgstr "Financement principal"
 msgid "Usual contact"
 msgstr "Contact fréquent"
 
 msgid "Usual contact"
 msgstr "Contact fréquent"
 
+#. module: lhc
+#: model:ir.model,name:lhc.model_crossovered_budget_lines
+msgid "Budget Line"
+msgstr "Ligne de budget"
+
 #. module: lhc
 #: field:event.registration,gender:0
 msgid "Gender"
 #. module: lhc
 #: field:event.registration,gender:0
 msgid "Gender"
@@ -165,10 +185,6 @@ msgstr "Homme"
 
 #. module: lhc
 #: help:res.partner,usual_contact:0
 
 #. module: lhc
 #: help:res.partner,usual_contact:0
-#, fuzzy
-#| msgid ""
-#| "This contact is a usual contact for L'Heureux Cyclage employees. This "
-#| "field can be used to discriminated contacts for differents usages."
 msgid ""
 "This contact is a usual contact for L'Heureux Cyclage\n"
 "            employees. This field can be used to discriminated contacts "
 msgid ""
 "This contact is a usual contact for L'Heureux Cyclage\n"
 "            employees. This field can be used to discriminated contacts "
index d2d6bb6..73dd117 100644 (file)
@@ -6,8 +6,8 @@ msgid ""
 msgstr ""
 "Project-Id-Version: OpenERP Server 7.0\n"
 "Report-Msgid-Bugs-To: \n"
 msgstr ""
 "Project-Id-Version: OpenERP Server 7.0\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2022-02-22 16:38+0000\n"
-"PO-Revision-Date: 2022-02-22 16:38+0000\n"
+"POT-Creation-Date: 2022-09-25 13:22+0000\n"
+"PO-Revision-Date: 2022-09-25 13:22+0000\n"
 "Last-Translator: <>\n"
 "Language-Team: \n"
 "MIME-Version: 1.0\n"
 "Last-Translator: <>\n"
 "Language-Team: \n"
 "MIME-Version: 1.0\n"
@@ -31,8 +31,9 @@ msgid "All Companies Members"
 msgstr ""
 
 #. module: lhc
 msgstr ""
 
 #. module: lhc
-#: field:res.partner,kit_sent:0
-msgid "Welcome kit sent"
+#: help:res.partner,email2:0
+msgid "One more email. Warning: there are no email notification\n"
+"            with this email. Only the main email can receive notifications."
 msgstr ""
 
 #. module: lhc
 msgstr ""
 
 #. module: lhc
@@ -75,6 +76,11 @@ msgstr ""
 msgid "Annual meeting organisation"
 msgstr ""
 
 msgid "Annual meeting organisation"
 msgstr ""
 
+#. module: lhc
+#: field:res.partner,email2:0
+msgid "Secondary email"
+msgstr ""
+
 #. module: lhc
 #: selection:event.registration,funding_main:0
 msgid "Company"
 #. module: lhc
 #: selection:event.registration,funding_main:0
 msgid "Company"
@@ -95,6 +101,11 @@ msgstr ""
 msgid "Customize OpenERP for L'Heureux Cyclage usages."
 msgstr ""
 
 msgid "Customize OpenERP for L'Heureux Cyclage usages."
 msgstr ""
 
+#. module: lhc
+#: field:res.partner,kit_sent:0
+msgid "Welcome kit sent"
+msgstr ""
+
 #. module: lhc
 #: model:ir.actions.act_window,name:lhc.act_open_rencontres_2016_project_view
 #: model:ir.ui.menu,name:lhc.menu_rencontres_2016_projects
 #. module: lhc
 #: model:ir.actions.act_window,name:lhc.act_open_rencontres_2016_project_view
 #: model:ir.ui.menu,name:lhc.menu_rencontres_2016_projects
@@ -122,6 +133,11 @@ msgstr ""
 msgid "Usual contact"
 msgstr ""
 
 msgid "Usual contact"
 msgstr ""
 
+#. module: lhc
+#: model:ir.model,name:lhc.model_crossovered_budget_lines
+msgid "Budget Line"
+msgstr ""
+
 #. module: lhc
 #: field:event.registration,gender:0
 msgid "Gender"
 #. module: lhc
 #: field:event.registration,gender:0
 msgid "Gender"
diff --git a/lhc.py b/lhc.py
index 32ac0bf..b1fca6a 100644 (file)
--- a/lhc.py
+++ b/lhc.py
@@ -60,6 +60,11 @@ class res_partner(orm.Model):
                     lambda self, cr, uid, ids, c={}: ids,
                     ['zip'], 10)},
         ),
                     lambda self, cr, uid, ids, c={}: ids,
                     ['zip'], 10)},
         ),
+        'email2': fields.char(
+            'Secondary email',
+            size=240,
+            help="""One more email. Warning: there are no email notification
+            with this email. Only the main email can receive notifications."""),
     }
 
     _defaults = {
     }
 
     _defaults = {
index 92d963a..fd59a92 100644 (file)
@@ -9,6 +9,9 @@
                 <xpath expr="//field[@name='title']" position="after">
                     <field name="usual_contact" groups="lhc.group_employee_lhc"/>
                 </xpath>
                 <xpath expr="//field[@name='title']" position="after">
                     <field name="usual_contact" groups="lhc.group_employee_lhc"/>
                 </xpath>
+                <xpath expr="//field[@name='email']" position="after">
+                    <field name="email2" widget="email"/>
+                </xpath>
             </field>
         </record>
         <record id="view_res_partner_search" model="ir.ui.view">
             </field>
         </record>
         <record id="view_res_partner_search" model="ir.ui.view">