diff --git a/hide_cost_price/README.rst b/hide_cost_price/README.rst new file mode 100644 index 000000000..c9b26671f --- /dev/null +++ b/hide_cost_price/README.rst @@ -0,0 +1,40 @@ +Hide Product Cost Price v13 +=========================== + +The cost price of the product will be only visible for the users added in the group "view cost price". +If user is not there in the group, the cost price of the product will remain invisible for the user. +By default administrator will be added to this group + +Depends +======= +[product] addon Odoo + +Tech +==== +* [XML] - Odoo views + +Installation +============ +- www.odoo.com/documentation/13.0/setup/install.html +- Install our custom addon + +License +======= +GNU AGPL, Version 3 (AGPLv3) +(http://www.gnu.org/licenses/agpl.html) + +Bug Tracker +=========== + +Contact odoo@cybrosys.com + +Authors +------- +* Sonu Soman + +Maintainer +---------- + +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit https://www.cybrosys.com. diff --git a/hide_cost_price/__init__.py b/hide_cost_price/__init__.py new file mode 100644 index 000000000..b780467e6 --- /dev/null +++ b/hide_cost_price/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- + +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2018-TODAY Cybrosys Technologies(). +# Author: Niyas Raphy() +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################### diff --git a/hide_cost_price/__manifest__.py b/hide_cost_price/__manifest__.py new file mode 100644 index 000000000..98b6c75d0 --- /dev/null +++ b/hide_cost_price/__manifest__.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- + +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2021-TODAY Cybrosys Technologies(). +# Author: Cybrosys Techno Solutions() +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################### + +{ + 'name': 'Hide Product Cost Price', + 'summary': """Product Cost Price Will be Visible Only for Specified Group""", + 'version': '13.0.1.0', + 'description': """Product cost price will be visible only for specified group""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'category': 'Extra Tools', + 'depends': ['base', 'product'], + 'license': 'AGPL-3', + 'data': [ + 'security/view_cost_price.xml', + 'views/hide_product_cost.xml' + ], + 'images': ['static/description/banner.jpg'], + 'demo': [], + 'installable': True, + 'auto_install': False, + +} diff --git a/hide_cost_price/doc/RELEASE_NOTES.md b/hide_cost_price/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..9c3552093 --- /dev/null +++ b/hide_cost_price/doc/RELEASE_NOTES.md @@ -0,0 +1,11 @@ +## Module + +#### 22.07.2021 +#### Version 13.0.1.0 +##### ADD +- Initial commit. + +#### 22.07.2021 +#### Version 13.0.1.0 +##### UPDT +- Cost price hidden for product variant also (for product.product model) diff --git a/hide_cost_price/security/view_cost_price.xml b/hide_cost_price/security/view_cost_price.xml new file mode 100644 index 000000000..7e9bef790 --- /dev/null +++ b/hide_cost_price/security/view_cost_price.xml @@ -0,0 +1,11 @@ + + + + + + View Cost Price + + + + + \ No newline at end of file diff --git a/hide_cost_price/static/description/assets/icons/chevron.png b/hide_cost_price/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/hide_cost_price/static/description/assets/icons/chevron.png differ diff --git a/hide_cost_price/static/description/assets/icons/cogs.png b/hide_cost_price/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/hide_cost_price/static/description/assets/icons/cogs.png differ diff --git a/hide_cost_price/static/description/assets/icons/consultation.png b/hide_cost_price/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/hide_cost_price/static/description/assets/icons/consultation.png differ diff --git a/hide_cost_price/static/description/assets/icons/ecom-black.png b/hide_cost_price/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/hide_cost_price/static/description/assets/icons/ecom-black.png differ diff --git a/hide_cost_price/static/description/assets/icons/education-black.png b/hide_cost_price/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/hide_cost_price/static/description/assets/icons/education-black.png differ diff --git a/hide_cost_price/static/description/assets/icons/hotel-black.png b/hide_cost_price/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/hide_cost_price/static/description/assets/icons/hotel-black.png differ diff --git a/hide_cost_price/static/description/assets/icons/license.png b/hide_cost_price/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/hide_cost_price/static/description/assets/icons/license.png differ diff --git a/hide_cost_price/static/description/assets/icons/lifebuoy.png b/hide_cost_price/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/hide_cost_price/static/description/assets/icons/lifebuoy.png differ diff --git a/hide_cost_price/static/description/assets/icons/manufacturing-black.png b/hide_cost_price/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/hide_cost_price/static/description/assets/icons/manufacturing-black.png differ diff --git a/hide_cost_price/static/description/assets/icons/pos-black.png b/hide_cost_price/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/hide_cost_price/static/description/assets/icons/pos-black.png differ diff --git a/hide_cost_price/static/description/assets/icons/puzzle.png b/hide_cost_price/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/hide_cost_price/static/description/assets/icons/puzzle.png differ diff --git a/hide_cost_price/static/description/assets/icons/restaurant-black.png b/hide_cost_price/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/hide_cost_price/static/description/assets/icons/restaurant-black.png differ diff --git a/hide_cost_price/static/description/assets/icons/service-black.png b/hide_cost_price/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/hide_cost_price/static/description/assets/icons/service-black.png differ diff --git a/hide_cost_price/static/description/assets/icons/trading-black.png b/hide_cost_price/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/hide_cost_price/static/description/assets/icons/trading-black.png differ diff --git a/hide_cost_price/static/description/assets/icons/training.png b/hide_cost_price/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/hide_cost_price/static/description/assets/icons/training.png differ diff --git a/hide_cost_price/static/description/assets/icons/update.png b/hide_cost_price/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/hide_cost_price/static/description/assets/icons/update.png differ diff --git a/hide_cost_price/static/description/assets/icons/user.png b/hide_cost_price/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/hide_cost_price/static/description/assets/icons/user.png differ diff --git a/hide_cost_price/static/description/assets/icons/wrench.png b/hide_cost_price/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/hide_cost_price/static/description/assets/icons/wrench.png differ diff --git a/hide_cost_price/static/description/banner.png b/hide_cost_price/static/description/banner.png new file mode 100644 index 000000000..1912fa955 Binary files /dev/null and b/hide_cost_price/static/description/banner.png differ diff --git a/hide_cost_price/static/description/icon.png b/hide_cost_price/static/description/icon.png new file mode 100644 index 000000000..313aa7040 Binary files /dev/null and b/hide_cost_price/static/description/icon.png differ diff --git a/hide_cost_price/static/description/images/checked.png b/hide_cost_price/static/description/images/checked.png new file mode 100644 index 000000000..e6c63d582 Binary files /dev/null and b/hide_cost_price/static/description/images/checked.png differ diff --git a/hide_cost_price/static/description/images/hero.png b/hide_cost_price/static/description/images/hero.png new file mode 100644 index 000000000..bcf8f7283 Binary files /dev/null and b/hide_cost_price/static/description/images/hero.png differ diff --git a/hide_cost_price/static/description/images/modules/approval_image.png b/hide_cost_price/static/description/images/modules/approval_image.png new file mode 100644 index 000000000..84fe94e80 Binary files /dev/null and b/hide_cost_price/static/description/images/modules/approval_image.png differ diff --git a/hide_cost_price/static/description/images/modules/dynamic_image.png b/hide_cost_price/static/description/images/modules/dynamic_image.png new file mode 100644 index 000000000..74ce220e6 Binary files /dev/null and b/hide_cost_price/static/description/images/modules/dynamic_image.png differ diff --git a/hide_cost_price/static/description/images/modules/mulitple-ref_image.png b/hide_cost_price/static/description/images/modules/mulitple-ref_image.png new file mode 100644 index 000000000..e0964f1e3 Binary files /dev/null and b/hide_cost_price/static/description/images/modules/mulitple-ref_image.png differ diff --git a/hide_cost_price/static/description/images/modules/pos_image.png b/hide_cost_price/static/description/images/modules/pos_image.png new file mode 100644 index 000000000..c5932894b Binary files /dev/null and b/hide_cost_price/static/description/images/modules/pos_image.png differ diff --git a/hide_cost_price/static/description/images/modules/shopify_image.png b/hide_cost_price/static/description/images/modules/shopify_image.png new file mode 100644 index 000000000..c6d92c16d Binary files /dev/null and b/hide_cost_price/static/description/images/modules/shopify_image.png differ diff --git a/hide_cost_price/static/description/images/screen1.png b/hide_cost_price/static/description/images/screen1.png new file mode 100644 index 000000000..704bb40e5 Binary files /dev/null and b/hide_cost_price/static/description/images/screen1.png differ diff --git a/hide_cost_price/static/description/images/screen2.png b/hide_cost_price/static/description/images/screen2.png new file mode 100644 index 000000000..42f264844 Binary files /dev/null and b/hide_cost_price/static/description/images/screen2.png differ diff --git a/hide_cost_price/static/description/images/screen3.png b/hide_cost_price/static/description/images/screen3.png new file mode 100644 index 000000000..c35575d7f Binary files /dev/null and b/hide_cost_price/static/description/images/screen3.png differ diff --git a/hide_cost_price/static/description/index.html b/hide_cost_price/static/description/index.html new file mode 100644 index 000000000..cf9e68ffd --- /dev/null +++ b/hide_cost_price/static/description/index.html @@ -0,0 +1,535 @@ +
+
+ +
+
+

Hide Product Cost Price

+

+ Cost price will be visible only for selected users

+ +
+
+ + + +
+
+

Overview

+
+

+ With the module create a custom new group, add users to this group and only the memebers of this + group can view the cost price of the product. +

+
+
+ + + + +
+
+

Key Features

+
+
+ + +
+ +
+ +

+ Cost price visibility restricted. +

+
+ +
+ +

+ Visible only for the users in the group. +

+
+
+ +

+ By default administrator will be added to this group. +

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

Screenshots

+
+ + +
+
+

+ 01

+
+
+

+ Adding user to the View Cost Price group +

+

+ User will see the product cost price only if he is added in this group. +

+
+
+ + + + +
+
+

+ 02

+
+
+

+ Product View for users not in the Group +

+

+ Product form view without cost price. +

+ +
+
+ + + +
+
+

+ 03

+
+
+

+ Product tree view without cost price +

+

+ Product tree view without cost price. +

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

Suggested Products

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

Our Services

+
+
+ +
+
+ +
+
Odoo + Customization
+
+ +
+
+ +
+
Odoo + Implementation
+
+ +
+
+ +
+
Odoo + Support
+
+ + +
+
+ +
+
Hire + Odoo + Developer
+
+ +
+
+ +
+
Odoo + Integration
+
+ +
+
+ +
+
Odoo + Migration
+
+ + +
+
+ +
+
Odoo + Consultancy
+
+ +
+
+ +
+
Odoo + Implementation
+
+ +
+
+ +
+
Odoo + Licensing Consultancy
+
+
+
+ + + +
+
+
+

Our Industries

+
+
+ +
+
+ +
+ Trading +
+

+ Easily procure + and + sell your products

+
+
+ +
+
+ +
+ POS +
+

+ Easy + configuration + and convivial experience

+
+
+ +
+
+ +
+ Education +
+

+ A platform for + educational management

+
+
+ +
+
+ +
+ Manufacturing +
+

+ Plan, track and + schedule your operations

+
+
+ +
+
+ +
+ E-commerce & Website +
+

+ Mobile + friendly, + awe-inspiring product pages

+
+
+ +
+
+ +
+ Service Management +
+

+ Keep track of + services and invoice

+
+
+ +
+
+ +
+ Restaurant +
+

+ Run your bar or + restaurant methodically

+
+
+ +
+
+ +
+ Hotel Management +
+

+ An + all-inclusive + hotel management application

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

Need Help?

+
+
+
+ + +
+ +
+ + +
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
+
+ + + +
+
\ No newline at end of file diff --git a/hide_cost_price/views/hide_product_cost.xml b/hide_cost_price/views/hide_product_cost.xml new file mode 100644 index 000000000..5e362858c --- /dev/null +++ b/hide_cost_price/views/hide_product_cost.xml @@ -0,0 +1,60 @@ + + + + + + + product.template.cost + product.template + + + + hide_cost_price.view_cost_price + + + hide_cost_price.view_cost_price + + + + + + + product.product.cost + product.product + + + + hide_cost_price.view_cost_price + + + hide_cost_price.view_cost_price + + + + + + + product.template.cost + product.template + + + + hide_cost_price.view_cost_price + + + + + + + product.product.cost + product.product + + + + hide_cost_price.view_cost_price + + + + + +