diff --git a/product_deletion/README.rst b/product_deletion/README.rst new file mode 100644 index 000000000..7f5b23897 --- /dev/null +++ b/product_deletion/README.rst @@ -0,0 +1,40 @@ +Product Removal Authorisation +============================= +User in the group "Product Deletion" can only delete the products. Those who are not in the +group cant delete the product. Odoo will raise a warning if the user in not in the group + +Configuration +============= +* No additional configurations needed + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +* Developers: Niyas Raphy @ Cybrosys, odoo@cybrosys.com + Mohammed Shahil M P @cybrosys, odoo@cybrosys.com + V14 Minhaj T @cybrosys, odoo@cybrosys.com + +Contacts +-------- +* Mail Contact : odoo@cybrosys.com +* Website : https://cybrosys.com + +Bug Tracker +----------- +Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. + +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 `Our Website `__ + +Further information +=================== +HTML Description: ``__ diff --git a/product_deletion/__init__.py b/product_deletion/__init__.py new file mode 100644 index 000000000..403e0edcd --- /dev/null +++ b/product_deletion/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Niyas Raphy @ Cybrosys, (odoo@cybrosys.com) +# Mohammed Shahil M P @ Cybrosys, (odoo@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 . +# +############################################################################# +from . import models diff --git a/product_deletion/__manifest__.py b/product_deletion/__manifest__.py new file mode 100644 index 000000000..56c94e312 --- /dev/null +++ b/product_deletion/__manifest__.py @@ -0,0 +1,38 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Niyas Raphy @ Cybrosys, (odoo@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 . +# +############################################################################# +{ + 'name': 'Product Removal Authorisation', + 'summary': """Users in the Group "Product Deletion" Can Only Delete the Products""", + 'version': '14.0.1.0.0', + 'description': """Permission to delete the product, Odoo 13, Odoo""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'category': 'Warehouse', + 'depends': ['base', 'product'], + 'license': 'AGPL-3', + 'data': [ + 'views/product_deletion_group.xml', + ], + 'images': ['static/description/banner.png'], + 'installable': True, + 'auto_install': False, +} diff --git a/product_deletion/doc/RELEASE_NOTES.md b/product_deletion/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..778ece354 --- /dev/null +++ b/product_deletion/doc/RELEASE_NOTES.md @@ -0,0 +1,5 @@ +## Module + +#### 09.10.2020 +#### Version 14.0.1.0.0 +#### ADD diff --git a/product_deletion/models/__init__.py b/product_deletion/models/__init__.py new file mode 100644 index 000000000..931574da1 --- /dev/null +++ b/product_deletion/models/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Niyas Raphy @ Cybrosys, (odoo@cybrosys.com) +# Mohammed Shahil M P @ Cybrosys, (odoo@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 . +# +############################################################################# +from . import product_deletion diff --git a/product_deletion/models/product_deletion.py b/product_deletion/models/product_deletion.py new file mode 100644 index 000000000..c058b2049 --- /dev/null +++ b/product_deletion/models/product_deletion.py @@ -0,0 +1,34 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Niyas Raphy @ Cybrosys, (odoo@cybrosys.com) +# Mohammed Shahil M P @ Cybrosys, (odoo@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 . +# +############################################################################# +from odoo import models, api, _ +from odoo.exceptions import UserError + + +class ProductDeletion(models.Model): + _inherit = 'product.template' + + def unlink(self, default=None): + res_user = self.env['res.users'].search([('id', '=', self._uid)]) + if not res_user.has_group('product_deletion.product_deletion_group'): + raise UserError(_( + "You cannot delete the product(s). Please contact the System Administrator")) + return super(ProductDeletion, self).unlink() diff --git a/product_deletion/static/description/banner.png b/product_deletion/static/description/banner.png new file mode 100644 index 000000000..a94572247 Binary files /dev/null and b/product_deletion/static/description/banner.png differ diff --git a/product_deletion/static/description/icon.png b/product_deletion/static/description/icon.png new file mode 100644 index 000000000..f68703728 Binary files /dev/null and b/product_deletion/static/description/icon.png differ diff --git a/product_deletion/static/description/images/advanced_stock.png b/product_deletion/static/description/images/advanced_stock.png new file mode 100644 index 000000000..6156b14bf Binary files /dev/null and b/product_deletion/static/description/images/advanced_stock.png differ diff --git a/product_deletion/static/description/images/banner.png b/product_deletion/static/description/images/banner.png new file mode 100644 index 000000000..0950f6f7e Binary files /dev/null and b/product_deletion/static/description/images/banner.png differ diff --git a/product_deletion/static/description/images/barcode_scanning.jpeg b/product_deletion/static/description/images/barcode_scanning.jpeg new file mode 100644 index 000000000..529143e4e Binary files /dev/null and b/product_deletion/static/description/images/barcode_scanning.jpeg differ diff --git a/product_deletion/static/description/images/checked.png b/product_deletion/static/description/images/checked.png new file mode 100644 index 000000000..578cedb80 Binary files /dev/null and b/product_deletion/static/description/images/checked.png differ diff --git a/product_deletion/static/description/images/cybrosys.png b/product_deletion/static/description/images/cybrosys.png new file mode 100644 index 000000000..d76b5bafb Binary files /dev/null and b/product_deletion/static/description/images/cybrosys.png differ diff --git a/product_deletion/static/description/images/export.jpeg b/product_deletion/static/description/images/export.jpeg new file mode 100644 index 000000000..5dfdf2c2b Binary files /dev/null and b/product_deletion/static/description/images/export.jpeg differ diff --git a/product_deletion/static/description/images/inventory_valuation.png b/product_deletion/static/description/images/inventory_valuation.png new file mode 100644 index 000000000..02df9a68b Binary files /dev/null and b/product_deletion/static/description/images/inventory_valuation.png differ diff --git a/product_deletion/static/description/images/product removal.png b/product_deletion/static/description/images/product removal.png new file mode 100644 index 000000000..bbb28c685 Binary files /dev/null and b/product_deletion/static/description/images/product removal.png differ diff --git a/product_deletion/static/description/images/product removal1.png b/product_deletion/static/description/images/product removal1.png new file mode 100644 index 000000000..90b6d398c Binary files /dev/null and b/product_deletion/static/description/images/product removal1.png differ diff --git a/product_deletion/static/description/images/product_barcode.png b/product_deletion/static/description/images/product_barcode.png new file mode 100644 index 000000000..683ba5b0d Binary files /dev/null and b/product_deletion/static/description/images/product_barcode.png differ diff --git a/product_deletion/static/description/images/stock_ageing.jpeg b/product_deletion/static/description/images/stock_ageing.jpeg new file mode 100644 index 000000000..92effb57b Binary files /dev/null and b/product_deletion/static/description/images/stock_ageing.jpeg differ diff --git a/product_deletion/static/description/index.html b/product_deletion/static/description/index.html new file mode 100644 index 000000000..144ca1020 --- /dev/null +++ b/product_deletion/static/description/index.html @@ -0,0 +1,302 @@ +
cybrosys-logo
+
+
+
+

Product Removal Authorisation

+

Users having the permission can only delete the products

+
+

Key Highlights

+
    +
  • Only users in the group Product Deletion can delete the product.
  • +
  • If user is not in the group Odoo will raise a warning message.
  • +
+
+
+
+
+
+
+
+ +
+
+ +

Overview

+
+

+ This module provides the functionality in which only users with permissions can delete products. +

+
+ + + + + +
+ + +

Configuration

+
+
    +

    + No additional configuration required +

    +

    + Use barcode to add product. +

    +
+
+
+ +

Product Removal Authorisation

+
+
    +

    + Only users in the group Product Deletion can delete the product. +

    + +

    + If user is not in the group Odoo will raise a warning message. +

    +
+
+ +
+
+

Screenshots

+
+
+
+ +
+
+
+
+ + +
+
    +
+
+
+
+
+
+
+

Suggested Products

+
+ +
+
+

Our Service

+
+ +
+
+
+

Our Industries

+
+ +
+
+
+ +
+
+

Trading

+

Easily procure and sell your products.

+
+
+
+
+ +
+
+

Manufacturing

+

Plan, track and schedule your operations.

+
+
+
+
+ +
+
+

Restaurant

+

Run your bar or restaurant methodical.

+
+
+
+
+ +
+
+

POS

+

Easy configuring and convivial selling.

+
+
+
+
+ +
+
+

E-commerce & Website

+

Mobile friendly, awe-inspiring product pages.

+
+
+
+
+ +
+
+

Hotel Management

+

An all-inclusive hotel management application.

+
+
+
+
+ +
+
+

Education

+

A Collaborative platform for educational management.

+
+
+
+
+ +
+
+

Service Management

+

Keep track of services and invoice accordingly.

+
+
+
+
+
+ +
+
+
+

Need Any Help?

+
+

If you have anything to share with us based on your use of this module, please let us know. We are ready to offer our support.

+
+

Email us

+

odoo@cybrosys.com / info@cybrosys.com

+
+
+

Contact Us

+ www.cybrosys.com +
+
+
+
+
+
+
+
+
+ +
+ + + + + + + +
+
+
+ \ No newline at end of file diff --git a/product_deletion/views/product_deletion_group.xml b/product_deletion/views/product_deletion_group.xml new file mode 100644 index 000000000..2e03d7674 --- /dev/null +++ b/product_deletion/views/product_deletion_group.xml @@ -0,0 +1,10 @@ + + + + + + Product Deletion + + + + \ No newline at end of file