From a323696bc2d22662c2280c1cebe648d549aab612 Mon Sep 17 00:00:00 2001 From: braisab Date: Wed, 11 May 2022 17:45:40 +0200 Subject: [PATCH] [IMP]pms:added required plan avail in product pricelist and added avail in data.xml --- pms/data/pms_data.xml | 3 +++ pms/models/product_pricelist.py | 1 + 2 files changed, 4 insertions(+) diff --git a/pms/data/pms_data.xml b/pms/data/pms_data.xml index f5f4b88d8..9caf713b0 100644 --- a/pms/data/pms_data.xml +++ b/pms/data/pms_data.xml @@ -19,6 +19,9 @@ + + + Various Clients diff --git a/pms/models/product_pricelist.py b/pms/models/product_pricelist.py index f7b00e6b5..1582e5b5a 100644 --- a/pms/models/product_pricelist.py +++ b/pms/models/product_pricelist.py @@ -57,6 +57,7 @@ class ProductPricelist(models.Model): help="Availability Plan for which the pricelist is included", comodel_name="pms.availability.plan", ondelete="restrict", + required=True, check_pms_properties=True, ) item_ids = fields.One2many(