Browse Source

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

pull/434/head
sbejaoui 5 years ago
parent
commit
ab4ed31e39
  1. 10
      product_contract/migrations/12.0.3.0.0/pre-migration.py

10
product_contract/migrations/12.0.3.0.0/pre-migration.py

@ -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'
"""
)
Loading…
Cancel
Save