diff --git a/pos_refund_password/README.rst b/pos_refund_password/README.rst index 8165b85c1..224506990 100644 --- a/pos_refund_password/README.rst +++ b/pos_refund_password/README.rst @@ -1,6 +1,9 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + Restrict POS Refund with Password in odoo 16 ============================================ - This module is used to set password on refund button process in pos . Installation @@ -10,8 +13,8 @@ Installation License ------- -General Public License, Version 3 (LGPL v3). -(https://www.odoo.com/documentation/user/16.0/legal/licenses/licenses.html) +Affero General Public License v3.0 (AGPL v3) +(https://www.gnu.org/licenses/agpl-3.0-standalone.html) Company ------- @@ -22,7 +25,6 @@ Credits * Developer: (V16) Archana V @ Cybrosys - Contacts -------- * Mail Contact : odoo@cybrosys.com @@ -33,6 +35,9 @@ Bugs are tracked on GitHub Issues. In case of trouble, please check there if you Maintainer ========== +.. image:: https://cybrosys.com/images/logo.png + :target: https://cybrosys.com + This module is maintained by Cybrosys Technologies. For support and more information, please visit https://www.cybrosys.com @@ -40,4 +45,3 @@ For support and more information, please visit https://www.cybrosys.com Further information =================== HTML Description: ``__ - diff --git a/pos_refund_password/__init__.py b/pos_refund_password/__init__.py index 66fae9566..db5011b9b 100644 --- a/pos_refund_password/__init__.py +++ b/pos_refund_password/__init__.py @@ -1,23 +1,22 @@ # -*- coding: utf-8 -*- -############################################################################# +############################################################################### # # Cybrosys Technologies Pvt. Ltd. # -# Copyright (C) 2022-TODAY Cybrosys Technologies() +# 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. +# 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 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 -# (LGPL v3) along with this program. +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. # If not, see . # -############################################################################# - +############################################################################### from . import model diff --git a/pos_refund_password/__manifest__.py b/pos_refund_password/__manifest__.py index 1a91dd57d..0799b64d4 100644 --- a/pos_refund_password/__manifest__.py +++ b/pos_refund_password/__manifest__.py @@ -1,24 +1,24 @@ # -*- coding: utf-8 -*- -############################################################################# +############################################################################### # # Cybrosys Technologies Pvt. Ltd. # -# Copyright (C) 2022-TODAY Cybrosys Technologies() +# 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. +# 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 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 -# (LGPL v3) along with this program. +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. # If not, see . # -############################################################################# +############################################################################### { 'name': 'Restrict POS Refund with Password In Odoo 16', 'version': '16.0.1.0.2', diff --git a/pos_refund_password/model/__init__.py b/pos_refund_password/model/__init__.py index 03aa3754d..52b491a7c 100644 --- a/pos_refund_password/model/__init__.py +++ b/pos_refund_password/model/__init__.py @@ -1,3 +1,22 @@ # -*- coding: utf-8 -*- - -from.import refund_password \ No newline at end of file +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# 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 . import refund_password diff --git a/pos_refund_password/model/refund_password.py b/pos_refund_password/model/refund_password.py index e213e556f..04f83fb3a 100644 --- a/pos_refund_password/model/refund_password.py +++ b/pos_refund_password/model/refund_password.py @@ -1,18 +1,38 @@ # -*- 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 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 models, fields class PosConfig(models.Model): - + """Inherit pos configuration and add new fields.""" _inherit = 'pos.config' refund_security = fields.Integer(string='Refund Security') class ResConfigSettings(models.TransientModel): - + """Adding a new field to res_config_settings model.""" _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') diff --git a/pos_refund_password/static/description/index.html b/pos_refund_password/static/description/index.html index 97f137b85..92115b754 100644 --- a/pos_refund_password/static/description/index.html +++ b/pos_refund_password/static/description/index.html @@ -615,4 +615,4 @@ - \ No newline at end of file + diff --git a/pos_refund_password/static/src/js/refund_password.js b/pos_refund_password/static/src/js/refund_password.js index 64c25a618..d5cb0b198 100644 --- a/pos_refund_password/static/src/js/refund_password.js +++ b/pos_refund_password/static/src/js/refund_password.js @@ -54,4 +54,4 @@ odoo.define('pos_refund_password.RefundPasswordButton', function (require) { } }; Registries.Component.extend(TicketScreen, PosResTicketScreen1); - }); \ No newline at end of file + }); diff --git a/pos_refund_password/views/global_refund_password_views.xml b/pos_refund_password/views/global_refund_password_views.xml index 2499cf037..99a4587f2 100644 --- a/pos_refund_password/views/global_refund_password_views.xml +++ b/pos_refund_password/views/global_refund_password_views.xml @@ -20,4 +20,4 @@ - \ No newline at end of file + diff --git a/pos_refund_password/views/refund_password_views.xml b/pos_refund_password/views/refund_password_views.xml index 9bfb1e58d..c24072b5c 100644 --- a/pos_refund_password/views/refund_password_views.xml +++ b/pos_refund_password/views/refund_password_views.xml @@ -18,8 +18,3 @@ - - - - -