From 6283c1e920221f8c5a54a5e5e06b97d14bad3231 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dar=C3=ADo=20Lodeiros?= Date: Sat, 23 Dec 2023 09:35:09 +0100 Subject: [PATCH] [FIX]pms_api_rest: model product.template --- pms_api_rest/models/__init__.py | 1 + .../models/{product_product.py => product_template.py} | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) rename pms_api_rest/models/{product_product.py => product_template.py} (75%) diff --git a/pms_api_rest/models/__init__.py b/pms_api_rest/models/__init__.py index 3a33b5564..09f08a589 100644 --- a/pms_api_rest/models/__init__.py +++ b/pms_api_rest/models/__init__.py @@ -4,3 +4,4 @@ from . import account_payment from . import sql_export from . import pms_room_type_class from . import account_bank_statement +from . import product_template diff --git a/pms_api_rest/models/product_product.py b/pms_api_rest/models/product_template.py similarity index 75% rename from pms_api_rest/models/product_product.py rename to pms_api_rest/models/product_template.py index 57c30338a..54cf34b0d 100644 --- a/pms_api_rest/models/product_product.py +++ b/pms_api_rest/models/product_template.py @@ -1,8 +1,8 @@ from odoo import fields, models -class ProductProduct(models.Model): - _inherit = "product.product" +class ProductTemplate(models.Model): + _inherit = "product.template" channel_available = fields.Boolean( string="Sale Channel Available",