mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
Make company required on subscription_template. Make subcription_template_id a company-dependent field on product_template.
14 lines
295 B
Python
14 lines
295 B
Python
from openupgradelib import openupgrade
|
|
|
|
|
|
@openupgrade.migrate()
|
|
def migrate(env, version):
|
|
openupgrade.copy_columns(
|
|
env.cr,
|
|
{
|
|
"product_template": [
|
|
("subscription_template_id", "old_subscription_template_id", None)
|
|
]
|
|
},
|
|
)
|