[VIEW] +join membership button in member form
authorLudovic CHEVALIER <ludovic@beurresarrasin.net>
Wed, 10 Dec 2014 11:01:27 +0000 (12:01 +0100)
committerLudovic CHEVALIER <ludovic@beurresarrasin.net>
Wed, 10 Dec 2014 11:01:27 +0000 (12:01 +0100)
__openerp__.py
i18n/eturecup.pot [new file with mode: 0644]
i18n/fr.po [new file with mode: 0644]
view/bikecoop.xml [new file with mode: 0644]

index 804dc40..3502047 100644 (file)
@@ -33,8 +33,8 @@ This module is a profile module for Étu'Récup
 It installs the profile for bike co-ops to manage some features like:
     * ...
     """,
-    'author': 'Cycles & Manivelles',
-    'website': 'http://www.heureux-cyclage.org/',
+    'author': 'Étu\'Récup',
+    'website': 'http://www.eturecup.org/',
     'depends': [
         'bikecoop',
         'bikecoop_l10n_fr'
@@ -42,6 +42,7 @@ It installs the profile for bike co-ops to manage some features like:
     'init_xml': [
     ],
     'update_xml': [
+        'view/bikecoop.xml',
     ],
     'installable': True,
     'auto_install': False,
diff --git a/i18n/eturecup.pot b/i18n/eturecup.pot
new file mode 100644 (file)
index 0000000..8529fbc
--- /dev/null
@@ -0,0 +1,32 @@
+# Translation of OpenERP Server.
+# This file contains the translation of the following modules:
+#      * eturecup
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: OpenERP Server 7.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2014-12-10 10:57+0000\n"
+"PO-Revision-Date: 2014-12-10 10:57+0000\n"
+"Last-Translator: <>\n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Plural-Forms: \n"
+
+#. module: eturecup
+#: view:res.partner:0
+msgid "This is a special functionnality for Étu'Récup that doesn't use the point of sale at moment. It's not a permanent functionnality."
+msgstr ""
+
+#. module: eturecup
+#: view:res.partner:0
+msgid "Invoice membership"
+msgstr ""
+
+#. module: eturecup
+#: view:res.partner:0
+msgid "Join membership"
+msgstr ""
+
diff --git a/i18n/fr.po b/i18n/fr.po
new file mode 100644 (file)
index 0000000..a83f260
--- /dev/null
@@ -0,0 +1,37 @@
+# Translation of OpenERP Server.
+# This file contains the translation of the following modules:
+#      * cyclesetmanivelles
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: OpenERP Server 7.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2014-12-10 10:57+0000\n"
+"PO-Revision-Date: 2014-12-10 11:58+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"
+"Plural-Forms: nplurals=2; plural=(n > 1);\n"
+"X-Generator: Poedit 1.6.10\n"
+
+#. module: eturecup
+#: view:res.partner:0
+msgid ""
+"This is a special functionnality for Étu'Récup that doesn't use the point of "
+"sale at moment. It's not a permanent functionnality."
+msgstr ""
+"Ceci est une fonctionnalité pour Étu'Récup qui n'utilise pas le point de "
+"vente pour le moment. Ce n'est pas une fonctionnalité permanente."
+
+#. module: eturecup
+#: view:res.partner:0
+msgid "Invoice membership"
+msgstr "Facturer une cotisation"
+
+#. module: eturecup
+#: view:res.partner:0
+msgid "Join membership"
+msgstr "Prendre une adhésion"
diff --git a/view/bikecoop.xml b/view/bikecoop.xml
new file mode 100644 (file)
index 0000000..4ec3683
--- /dev/null
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<openerp>
+    <data>
+        <record id="view_bikecoop_l10n_fr_members_form" model="ir.ui.view">
+            <field name="name">res.partner.form</field>
+            <field name="model">res.partner</field>
+            <field name="inherit_id" ref="bikecoop_l10n_fr.view_bikecoop_l10n_fr_members_form"/>
+            <field name="arch" type="xml">
+                <xpath expr="//page[@string='Memberships']" position="after">
+                    <page string="Invoice membership" groups="base.group_user">
+                        <p>This is a special functionnality for Étu'Récup that doesn't use the point of sale at moment. It's not a permanent functionnality.</p>
+                        <button name="%(membership.action_membership_invoice_view)d" type="action" string="Join membership"/>
+                    </page>
+                </xpath>
+            </field>
+        </record>
+    </data>
+</openerp>