# -*- coding: utf-8 -*- ############################################################################# # # Cybrosys Technologies Pvt. Ltd. # # Copyright (C) 2023-TODAY Cybrosys Technologies() # Author: Cybrosys Techno Solutions() # # 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 . # ############################################################################# from odoo import fields, models class PosConfig(models.Model): """ Extends the Point of Sale Configuration to add custom options. """ _inherit = "pos.config" is_qr_code = fields.Boolean(string='Order QRCode', help='Enable this option to generate QR code ' 'for orders.') is_invoice_number = fields.Boolean(string='Invoice Number', help='Enable this option to show ' 'invoice number in the POS ' 'interface.') is_customer_details = fields.Boolean(string='Customer Details', help='Enable this option to show ' 'customer details section.') is_customer_name = fields.Boolean(string='Customer Name', help='Enable this option to show ' 'customer name field.') is_customer_address = fields.Boolean(string='Customer Address', help='Enable this option to show ' 'customer address field.') is_customer_mobile = fields.Boolean(string='Customer Mobile', help='Enable this option to show ' 'customer mobile number field.') is_customer_phone = fields.Boolean(string='Customer Phone', help='Enable this option to show ' 'customer phone number field.') is_customer_email = fields.Boolean(string='Customer Email', help='Enable this option to show ' 'customer email field.') is_customer_vat = fields.Boolean(string='Customer VAT', help='Enable this option to show customer' ' VAT number field.')