[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.
This commit is contained in:
Alessandro Uffreduzzi
2024-03-15 10:37:00 +01:00
parent aca1183f80
commit 364268eaa9
7 changed files with 35 additions and 4 deletions

View File

@@ -8,5 +8,7 @@ class Product(models.Model):
subscribable = fields.Boolean(string="Subscribable product")
subscription_template_id = fields.Many2one(
comodel_name="sale.subscription.template", string="Subscription template"
comodel_name="sale.subscription.template",
string="Subscription template",
company_dependent=True,
)