[IMP] - Set recurring_invoicing_type for existing products set to monthlylastday

This commit is contained in:
sbejaoui
2019-12-09 16:57:56 +01:00
committed by Ilyas
parent 6977906e13
commit ef7dea36da

View File

@@ -0,0 +1,10 @@
def migrate(cr, version):
# pre-paid/post-paid becomes significant for monthlylastday too,
# make sure it has the value that was implied for previous versions.
cr.execute(
"""\
UPDATE product_template
SET recurring_invoicing_type = 'post-paid'
WHERE recurring_rule_type = 'monthlylastday'
"""
)