Skip to content

Commit

Permalink
[FIX] mrp_multi_level: delete params on cascade when deleting product.
Browse files Browse the repository at this point in the history
  • Loading branch information
LoisRForgeFlow committed Nov 27, 2024
1 parent 46e93fc commit 6abba9b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mrp_multi_level/models/product_mrp_area.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ class ProductMRPArea(models.Model):
store=True,
)
product_id = fields.Many2one(
comodel_name="product.product", required=True, string="Product"
comodel_name="product.product",
required=True,
string="Product",
ondelete="cascade",
)
product_tmpl_id = fields.Many2one(
comodel_name="product.template",
Expand Down

0 comments on commit 6abba9b

Please sign in to comment.