# -*- coding: utf-8 -*- ############################################################################### # # Cybrosys Technologies Pvt. Ltd. # # Copyright (C) 2024-TODAY Cybrosys Technologies() # Author: Gayathri V () # # You can modify it under the terms of the GNU LESSER # GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. # # You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE # (LGPL v3) along with this program. # If not, see . # ############################################################################### """ This module inherits sale.order to add new fields. """ from odoo import fields, models class SaleOrder(models.Model): """ Inherits sale.order to add the fields comment and rating """ _inherit = 'sale.order' comment = fields.Char(string='Comment', readonly=True, help='The comment provided by the customer.') rating = fields.Selection([ ('0', 'Too Bad'), ('1', 'Poor'), ('2', 'Average Quality'), ('3', 'Nice'), ('4', 'Good')], string='Rating', readonly=True, help='The rating provided by the customer.')