[DATA] +company description and membership_product
authorLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Fri, 20 Dec 2013 15:58:20 +0000 (16:58 +0100)
committerLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Fri, 20 Dec 2013 16:10:49 +0000 (17:10 +0100)
__openerp__.py [new file with mode: 0644]
data/base.xml [new file with mode: 0644]
data/product.xml [new file with mode: 0644]

diff --git a/__openerp__.py b/__openerp__.py
new file mode 100644 (file)
index 0000000..6211cb4
--- /dev/null
@@ -0,0 +1,52 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+#    dynamo module for OpenERP, Dynamo specifities
+#    Copyright (C) 2013-2014 Dynamo (<http://www.atelierdynamo.fr/>)
+#
+#    This file is a part of dynamo
+#
+#    dynamo module is free software: you can redistribute it and/or modify
+#    it under the terms of the GNU General Public License as published by
+#    the Free Software Foundation, either version 3 of the License, or
+#    (at your option) any later version.
+#
+#    dynamo module is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU General Public License for more details.
+#
+#    You should have received a copy of the GNU General Public License
+#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+
+{
+    'name': 'Custom Dynamo',
+    'version': '0.1',
+    'category': 'Association',
+    'complexity': "normal",
+    'description': """
+This module is a profile module for Dynamo
+==========================================
+
+It installs the profile for bike co-ops to manage some features like:
+    * ...
+    """,
+    'author': 'Dynamo',
+    'website': 'http://www.atelierdynamo.fr',
+    'depends': [
+        'bikecoop',
+        'bikecoop_l10n_fr'
+    ],
+    'update_xml': [
+        'data/base.xml',
+        'data/product.xml',
+        'data/res_partner.xml',
+    ],
+    'installable': True,
+    'auto_install': False,
+    'images': [],
+}
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/data/base.xml b/data/base.xml
new file mode 100644 (file)
index 0000000..9b26381
--- /dev/null
@@ -0,0 +1,25 @@
+<openerp>
+    <data noupdate="1">
+        <!-- Association -->
+        <record id="base.main_partner" model="res.partner">
+            <field name="name">Dynamo</field>
+            <field name="website">www.atelierdynamo.fr</field>
+            <field name="street">35 Grande Rue</field>
+            <field name="street2"></field>
+            <field name="zip">54000</field>
+            <field name="city">NANCY</field>
+            <field name="phone">(+33)383373271</field>
+            <field name="email">b.guyomarch@atelierdynamo.fr</field>
+            <field model="res.country" name="country_id" ref="base.fr"/>
+        </record>
+
+        <record id="base.main_company" model="res.company">
+            <field name="name">Dynamo</field>
+            <field name="partner_id" ref="base.main_partner"/>
+            <field name="rml_header1"></field>
+            <field name="rml_footer">N° SIRET : 5008970200037 - Code NAF : ????</field>
+            <field name="currency_id" ref="base.EUR"/>
+        </record>
+    </data>
+</openerp>
+
diff --git a/data/product.xml b/data/product.xml
new file mode 100644 (file)
index 0000000..8611b9a
--- /dev/null
@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<openerp>
+    <data noupdate="1">
+        <record id="product_category_membership" model="product.category">
+            <field name="name">Membership products</field>
+        </record>
+
+        <record id="product_standard_membership" model="product.product">
+            <field name="name">Standard membership</field>
+            <field name="list_price">25.00</field>
+            <field name="standard_price">0.00</field>
+            <field name="uom_id" ref="product.product_uom_unit"/>
+            <field name="uom_po_id" ref="product.product_uom_unit"/>
+            <field name="type">service</field>
+            <field name="categ_id" ref="product_category_membership"/>
+            <field name="supply_method">produce</field>
+            <field name="membership">True</field>
+            <field name="membership_date_from" eval="False"/>
+            <field name="membership_date_to" eval="False"/>
+            <field name="property_account_income" model="account.account" search="[('code', '=', '756000')]"/>
+            <field name="available_in_pos" eval="False"/>
+            <field name="purchase_ok" eval="False"/>
+            <field name="membership_date2date" eval="True"/>
+        </record>
+        <record id="product_reduce_membership" model="product.product">
+            <field name="name">Reduce membership</field>
+            <field name="list_price">15.00</field>
+            <field name="standard_price">0.00</field>
+            <field name="uom_id" ref="product.product_uom_unit"/>
+            <field name="uom_po_id" ref="product.product_uom_unit"/>
+            <field name="type">service</field>
+            <field name="categ_id" ref="product_category_membership"/>
+            <field name="supply_method">produce</field>
+            <field name="membership">True</field>
+            <field name="membership_date_from" eval="False"/>
+            <field name="membership_date_to" eval="False"/>
+            <field name="property_account_income" model="account.account" search="[('code', '=', '756000')]"/>
+            <field name="available_in_pos" eval="False"/>
+            <field name="purchase_ok" eval="False"/>
+            <field name="membership_date2date" eval="True"/>
+        </record>
+        <record id="product_family_membership" model="product.product">
+            <field name="name">Family membership</field>
+            <field name="list_price">35.00</field>
+            <field name="standard_price">0.00</field>
+            <field name="uom_id" ref="product.product_uom_unit"/>
+            <field name="uom_po_id" ref="product.product_uom_unit"/>
+            <field name="type">service</field>
+            <field name="categ_id" ref="product_category_membership"/>
+            <field name="supply_method">produce</field>
+            <field name="membership">True</field>
+            <field name="membership_date_from" eval="False"/>
+            <field name="membership_date_to" eval="False"/>
+            <field name="property_account_income" model="account.account" search="[('code', '=', '756000')]"/>
+            <field name="available_in_pos" eval="False"/>
+            <field name="purchase_ok" eval="False"/>
+            <field name="membership_date2date" eval="True"/>
+        </record>
+        <record id="product_company_membership" model="product.product">
+            <field name="name">Company membership</field>
+            <field name="list_price">45.00</field>
+            <field name="standard_price">0.00</field>
+            <field name="uom_id" ref="product.product_uom_unit"/>
+            <field name="uom_po_id" ref="product.product_uom_unit"/>
+            <field name="type">service</field>
+            <field name="categ_id" ref="product_category_membership"/>
+            <field name="supply_method">produce</field>
+            <field name="membership">True</field>
+            <field name="membership_date_from" eval="False"/>
+            <field name="membership_date_to" eval="False"/>
+            <field name="property_account_income" model="account.account" search="[('code', '=', '756000')]"/>
+            <field name="available_in_pos" eval="False"/>
+            <field name="purchase_ok" eval="False"/>
+            <field name="membership_date2date" eval="True"/>
+        </record>
+    </data>
+</openerp>