9 changed files with 74 additions and 37 deletions
			
			
		@ -1,23 +1,22 @@ | 
				
			|||||
# -*- coding: utf-8 -*- | 
					# -*- coding: utf-8 -*- | 
				
			||||
############################################################################# | 
					############################################################################### | 
				
			||||
# | 
					# | 
				
			||||
#    Cybrosys Technologies Pvt. Ltd. | 
					#    Cybrosys Technologies Pvt. Ltd. | 
				
			||||
# | 
					# | 
				
			||||
#    Copyright (C) 2022-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | 
					#    Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | 
				
			||||
#    Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) | 
					#    Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) | 
				
			||||
# | 
					# | 
				
			||||
#    You can modify it under the terms of the GNU LESSER | 
					#    You can modify it under the terms of the GNU AFFERO | 
				
			||||
#    GENERAL PUBLIC LICENSE (LGPL v3), Version 3. | 
					#    GENERAL PUBLIC LICENSE (AGPL v3), Version 3. | 
				
			||||
# | 
					# | 
				
			||||
#    This program is distributed in the hope that it will be useful, | 
					#    This program is distributed in the hope that it will be useful, | 
				
			||||
#    but WITHOUT ANY WARRANTY; without even the implied warranty of | 
					#    but WITHOUT ANY WARRANTY; without even the implied warranty of | 
				
			||||
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
					#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
				
			||||
#    GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. | 
					#    GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. | 
				
			||||
# | 
					# | 
				
			||||
#    You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE | 
					#    You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE | 
				
			||||
#    (LGPL v3) along with this program. | 
					#    (AGPL v3) along with this program. | 
				
			||||
#    If not, see <http://www.gnu.org/licenses/>. | 
					#    If not, see <http://www.gnu.org/licenses/>. | 
				
			||||
# | 
					# | 
				
			||||
############################################################################# | 
					############################################################################### | 
				
			||||
 | 
					 | 
				
			||||
from . import model | 
					from . import model | 
				
			||||
 | 
				
			|||||
@ -1,3 +1,22 @@ | 
				
			|||||
# -*- coding: utf-8 -*- | 
					# -*- coding: utf-8 -*- | 
				
			||||
 | 
					############################################################################### | 
				
			||||
 | 
					# | 
				
			||||
 | 
					#    Cybrosys Technologies Pvt. Ltd. | 
				
			||||
 | 
					# | 
				
			||||
 | 
					#    Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | 
				
			||||
 | 
					#    Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) | 
				
			||||
 | 
					# | 
				
			||||
 | 
					#    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 <http://www.gnu.org/licenses/>. | 
				
			||||
 | 
					# | 
				
			||||
 | 
					############################################################################### | 
				
			||||
from . import refund_password | 
					from . import refund_password | 
				
			||||
@ -1,18 +1,38 @@ | 
				
			|||||
# -*- coding: utf-8 -*- | 
					# -*- coding: utf-8 -*- | 
				
			||||
 | 
					############################################################################### | 
				
			||||
 | 
					# | 
				
			||||
 | 
					#    Cybrosys Technologies Pvt. Ltd. | 
				
			||||
 | 
					# | 
				
			||||
 | 
					#    Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | 
				
			||||
 | 
					#    Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) | 
				
			||||
 | 
					# | 
				
			||||
 | 
					#    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 <http://www.gnu.org/licenses/>. | 
				
			||||
 | 
					# | 
				
			||||
 | 
					############################################################################### | 
				
			||||
from odoo import models, fields | 
					from odoo import models, fields | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					
 | 
				
			||||
class PosConfig(models.Model): | 
					class PosConfig(models.Model): | 
				
			||||
 | 
					    """Inherit pos configuration and add new fields.""" | 
				
			||||
    _inherit = 'pos.config' | 
					    _inherit = 'pos.config' | 
				
			||||
 | 
					
 | 
				
			||||
    refund_security = fields.Integer(string='Refund Security') | 
					    refund_security = fields.Integer(string='Refund Security') | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					
 | 
				
			||||
class ResConfigSettings(models.TransientModel): | 
					class ResConfigSettings(models.TransientModel): | 
				
			||||
 | 
					    """Adding a new field to res_config_settings model.""" | 
				
			||||
    _inherit = 'res.config.settings' | 
					    _inherit = 'res.config.settings' | 
				
			||||
 | 
					
 | 
				
			||||
    global_refund_security = fields.Integer(string='Global Refund Security',config_parameter='pos_refund_password.global_refund_security') | 
					    global_refund_security = fields.Integer( | 
				
			||||
 | 
					        string='Global Refund Security', | 
				
			||||
 | 
					        config_parameter='pos_refund_password.global_refund_security') | 
				
			||||
 | 
				
			|||||
					Loading…
					
					
				
		Reference in new issue