You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
363 B

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