# -*- coding: utf-8 -*- ############################################################################# # # Cybrosys Technologies Pvt. Ltd. # # Copyright (C) 2024-TODAY Cybrosys Technologies(). # Author: Vishnu KP() # # You can modify it under the terms of the GNU AFFERO # GENERAL PUBLIC LICENSE (AGPL v3), Version 3. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. # # You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE # (AGPL v3) along with this program. # If not, see . # ############################################################################# from odoo import fields, models class ProductTemplate(models.Model): """ Class for inheriting product.template model to adding new fields""" _inherit = 'product.template' pre_book = fields.Boolean(string='Pre Booking Available', help='Enabling this field to identify the prebook') from_date = fields.Date(string='From Date', help='Prebook available from date') to_date = fields.Date(string='To Date',help='Prebook available to date') pre_max_quantity = fields.Integer(string="Pre Book Maximum Quantity", help='Maximum quantity to pre book')