[membership_date2date] initial implementation
authorJulien Moutinho <julm+burette@autogeree.net>
Fri, 21 Dec 2012 05:01:48 +0000 (06:01 +0100)
committerJulien Moutinho <julm+burette@autogeree.net>
Fri, 21 Dec 2012 06:14:14 +0000 (07:14 +0100)
commite93f9c5bccc5a60dbb832805ad3ffbb9cc553e50
treebcf784b8a152be335f58174a5b12482665f2041c
parent74a0c8f8229ec8b362a3b87bb6339839a120fb53
[membership_date2date] initial implementation

XXX: there are bugs in the dates of associate members
     when mixing several membership products

XML product can be made date to date with:
<field name="membership_date2date">True</field>

XML invoice can be done like that:
<function model="res.partner"
 name="create_membership_invoice"
 eval="(ref('res_partner_velorution_idf_42')
 , ref('product_standard_member')
 , {'amount':15, 'date_from':'2012-04-02'})" />
where date_from is %Y-%m-%d or None for today()

NOTE: membership currently needs this fix:
diff -Nru0 old/membership.py new/membership.py
--- old/membership.py   2012-12-21 05:59:41.930076247 +0100
+++ new/membership.py   2012-12-21 05:59:06.338076588 +0100
@@ -340 +340 @@
-                    _membership_date, multi = 'membeship_start',
+                    _membership_date, multi = 'membership_start',
remembership.py