Files
Alessandro Uffreduzzi 364268eaa9 [FIX] subscription_oca: product-subscription_template company issues
Make company required on subscription_template.

Make subcription_template_id a company-dependent field
on product_template.
2024-03-15 11:36:56 +01:00

15 lines
367 B
Python

from openupgradelib import openupgrade
@openupgrade.migrate()
def migrate(env, version):
openupgrade.convert_to_company_dependent(
env,
"product.template",
"old_subscription_template_id",
"subscription_template_id",
)
openupgrade.drop_columns(
env.cr, [("product_template", "old_subscription_template_id")]
)