mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
11 lines
363 B
Python
11 lines
363 B
Python
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'
|
|
"""
|
|
)
|