From 83e4abec185b019376d9c8c11680b9a00570af16 Mon Sep 17 00:00:00 2001 From: Jose Luis Algara Date: Thu, 7 Oct 2021 21:25:00 +0200 Subject: [PATCH] [ADD] Crib in product --- pms/models/product_template.py | 5 +++++ pms/views/product_template_views.xml | 1 + 2 files changed, 6 insertions(+) diff --git a/pms/models/product_template.py b/pms/models/product_template.py index 35311f80d..b52733fa1 100644 --- a/pms/models/product_template.py +++ b/pms/models/product_template.py @@ -44,3 +44,8 @@ class ProductTemplate(models.Model): help="Indicates if that product is a extra bed, add +1 capacity in the room", default=False, ) + is_crib = fields.Boolean( + string="Is a baby crib", + help="Indicates if that product is a crib", + default=False, + ) diff --git a/pms/views/product_template_views.xml b/pms/views/product_template_views.xml index a6e6866c3..736533666 100644 --- a/pms/views/product_template_views.xml +++ b/pms/views/product_template_views.xml @@ -15,6 +15,7 @@ options="{'no_create': True,'no_open': True}" /> +