Browse Source

Oct 7 : [FIX] Bug Fixed 'pos_refund_password'

pull/295/head
AjmalCybro 2 years ago
parent
commit
aa07d51039
  1. 14
      pos_refund_password/README.rst
  2. 17
      pos_refund_password/__init__.py
  3. 16
      pos_refund_password/__manifest__.py
  4. 23
      pos_refund_password/model/__init__.py
  5. 30
      pos_refund_password/model/refund_password.py
  6. 5
      pos_refund_password/views/refund_password_views.xml

14
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 Restrict POS Refund with Password in odoo 16
============================================ ============================================
This module is used to set password on refund button process in pos . This module is used to set password on refund button process in pos .
Installation Installation
@ -10,8 +13,8 @@ Installation
License License
------- -------
General Public License, Version 3 (LGPL v3). Affero General Public License v3.0 (AGPL v3)
(https://www.odoo.com/documentation/user/16.0/legal/licenses/licenses.html) (https://www.gnu.org/licenses/agpl-3.0-standalone.html)
Company Company
------- -------
@ -22,7 +25,6 @@ Credits
* Developer: * Developer:
(V16) Archana V @ Cybrosys (V16) Archana V @ Cybrosys
Contacts Contacts
-------- --------
* Mail Contact : odoo@cybrosys.com * 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 Maintainer
========== ==========
.. image:: https://cybrosys.com/images/logo.png
:target: https://cybrosys.com
This module is maintained by Cybrosys Technologies. This module is maintained by Cybrosys Technologies.
For support and more information, please visit https://www.cybrosys.com 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 Further information
=================== ===================
HTML Description: `<static/description/index.html>`__ HTML Description: `<static/description/index.html>`__

17
pos_refund_password/__init__.py

@ -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

16
pos_refund_password/__manifest__.py

@ -1,24 +1,24 @@
# -*- 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/>.
# #
############################################################################# ###############################################################################
{ {
'name': 'Restrict POS Refund with Password In Odoo 16', 'name': 'Restrict POS Refund with Password In Odoo 16',
'version': '16.0.1.0.2', 'version': '16.0.1.0.2',

23
pos_refund_password/model/__init__.py

@ -1,3 +1,22 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
###############################################################################
from.import refund_password #
# 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

30
pos_refund_password/model/refund_password.py

@ -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')

5
pos_refund_password/views/refund_password_views.xml

@ -18,8 +18,3 @@
</field> </field>
</record> </record>
</odoo> </odoo>

Loading…
Cancel
Save