[PYTHON][VIEW] +welcome kit sent field
authorLudovic CHEVALIER <ludovic@beurresarrasin.net>
Sat, 10 Feb 2018 10:29:18 +0000 (11:29 +0100)
committerLudovic CHEVALIER <ludovic@beurresarrasin.net>
Sat, 10 Feb 2018 10:29:18 +0000 (11:29 +0100)
i18n/fr.po
i18n/lhc.pot
lhc.py
view/res_partner.xml

index 1307c05..10c8d38 100644 (file)
@@ -6,21 +6,26 @@ msgid ""
 msgstr ""
 "Project-Id-Version: OpenERP Server 6.0.4\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2017-09-30 15:23+0000\n"
-"PO-Revision-Date: 2017-09-30 17:24+0200\n"
+"POT-Creation-Date: 2018-02-10 10:26+0000\n"
+"PO-Revision-Date: 2018-02-10 11:27+0100\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 2.0.4\n"
+"X-Generator: Poedit 2.0.5\n"
 
 #. module: lhc
 #: view:account.invoice:0
 msgid "Customer"
 msgstr "Client"
 
+#. module: lhc
+#: view:account.invoice:0
+msgid "Unsent"
+msgstr "Non envoyée"
+
 #. module: lhc
 #: field:res.partner,usual_contact:0
 msgid "Usual contact"
@@ -36,6 +41,11 @@ msgstr "Organisation des rencontres"
 msgid "L'Heureux Cyclage"
 msgstr "L'Heureux Cyclage"
 
+#. module: lhc
+#: field:res.partner,kit_sent:0
+msgid "Welcome kit sent"
+msgstr "Kit de bienvenue envoyé"
+
 #. module: lhc
 #: help:res.partner,usual_contact:0
 msgid ""
@@ -50,16 +60,17 @@ msgstr ""
 msgid "Administration board members"
 msgstr "Membres du conseil d'administration"
 
+#. module: lhc
+#: model:ir.model,name:lhc.model_product_template
+#, fuzzy
+msgid "Product Template"
+msgstr "Modèle de produit"
+
 #. module: lhc
 #: model:ir.ui.menu,name:lhc.menu_rencontres_2016
 msgid "Rencontres 2016"
 msgstr "Rencontres 2016"
 
-#. module: lhc
-#: view:account.invoice:0
-msgid "Unsent"
-msgstr "Non envoyée"
-
 #. module: lhc
 #: view:account.invoice:0
 msgid "Sent by Email"
index 3df7e27..a5e98a5 100644 (file)
@@ -6,8 +6,8 @@ msgid ""
 msgstr ""
 "Project-Id-Version: OpenERP Server 7.0\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2017-09-30 15:23+0000\n"
-"PO-Revision-Date: 2017-09-30 15:23+0000\n"
+"POT-Creation-Date: 2018-02-10 10:26+0000\n"
+"PO-Revision-Date: 2018-02-10 10:26+0000\n"
 "Last-Translator: <>\n"
 "Language-Team: \n"
 "MIME-Version: 1.0\n"
@@ -20,6 +20,11 @@ msgstr ""
 msgid "Customer"
 msgstr ""
 
+#. module: lhc
+#: view:account.invoice:0
+msgid "Unsent"
+msgstr ""
+
 #. module: lhc
 #: field:res.partner,usual_contact:0
 msgid "Usual contact"
@@ -35,6 +40,11 @@ msgstr ""
 msgid "L'Heureux Cyclage"
 msgstr ""
 
+#. module: lhc
+#: field:res.partner,kit_sent:0
+msgid "Welcome kit sent"
+msgstr ""
+
 #. module: lhc
 #: help:res.partner,usual_contact:0
 msgid "This contact is a usual contact for L'Heureux Cyclage employees. This field can be used to discriminated contacts for differents usages."
@@ -46,13 +56,13 @@ msgid "Administration board members"
 msgstr ""
 
 #. module: lhc
-#: model:ir.ui.menu,name:lhc.menu_rencontres_2016
-msgid "Rencontres 2016"
+#: model:ir.model,name:lhc.model_product_template
+msgid "Product Template"
 msgstr ""
 
 #. module: lhc
-#: view:account.invoice:0
-msgid "Unsent"
+#: model:ir.ui.menu,name:lhc.menu_rencontres_2016
+msgid "Rencontres 2016"
 msgstr ""
 
 #. module: lhc
diff --git a/lhc.py b/lhc.py
index b172db2..8a7435a 100644 (file)
--- a/lhc.py
+++ b/lhc.py
@@ -32,6 +32,7 @@ class res_partner(orm.Model):
 
     _columns = {
         'usual_contact': fields.boolean('Usual contact', help='This contact is a usual contact for L\'Heureux Cyclage employees. This field can be used to discriminated contacts for differents usages.'),
+        'kit_sent': fields.boolean('Welcome kit sent'),
     }
 
 class product_template(orm.Model):
index 5a85d37..cd38786 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="//page[@string='Membership']/group/group/div" position="after">
+                    <field name="kit_sent" attrs="{'invisible': [('membership_state','not in', ('old', 'waiting', 'invoiced', 'free', 'paid'))]}"/>
+                </xpath>
             </field>
         </record>
     </data>