diff --git a/hide_cost_price/README.rst b/hide_cost_price/README.rst new file mode 100644 index 000000000..51e4f06c9 --- /dev/null +++ b/hide_cost_price/README.rst @@ -0,0 +1,40 @@ +Hide Product Cost Price v12 +=========================== + +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/12.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 +------- +* Niyas Raphy + +Maintainer +---------- + +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit https://www.cybrosys.com. \ No newline at end of file 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..c1d90d71a --- /dev/null +++ b/hide_cost_price/__manifest__.py @@ -0,0 +1,44 @@ +# -*- 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 . +# +################################################################################### + +{ + 'name': 'Hide Product Cost Price', + 'summary': """Product Cost Price Will be Visible Only for Specified Group""", + 'version': '12.0.1.0.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/__manifest__.py~ b/hide_cost_price/__manifest__.py~ new file mode 100644 index 000000000..cba482d02 --- /dev/null +++ b/hide_cost_price/__manifest__.py~ @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2017-TODAY Cybrosys Technologies(). +# Author: Niyas Raphy() +# you can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# It is forbidden to publish, distribute, sublicense, or sell copies +# of the Software or modified copies of the Software. +# +# 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. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# GENERAL PUBLIC LICENSE (LGPL v3) along with this program. +# If not, see . +# +############################################################################## +{ + 'name': 'Hide Product Cost Price', + 'summary': """Product Cost Price Will be Visible Only for Specified Users in the Group""", + 'version': '10.0.1.0.0', + 'description': """Product cost price will be visible only users in group""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'website': 'http://www.cybrosys.com', + 'category': 'Sales', + 'depends': ['base', 'purchase'], + '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/security/view_cost_price.xml b/hide_cost_price/security/view_cost_price.xml new file mode 100644 index 000000000..f0f204f9b --- /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/banner.jpg b/hide_cost_price/static/description/banner.jpg new file mode 100644 index 000000000..27b4163a3 Binary files /dev/null and b/hide_cost_price/static/description/banner.jpg differ diff --git a/hide_cost_price/static/description/cybro_logo.png b/hide_cost_price/static/description/cybro_logo.png new file mode 100644 index 000000000..bb309114c Binary files /dev/null and b/hide_cost_price/static/description/cybro_logo.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..fbd832ad0 Binary files /dev/null and b/hide_cost_price/static/description/icon.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..622c16803 --- /dev/null +++ b/hide_cost_price/static/description/index.html @@ -0,0 +1,75 @@ +
+
+

Hide Product Cost Price

+

Cost price will be visible only for selected users

+

Cybrosys Technologies

+
+

This module will create a new group and the users added in this group can only view the + cost price of the product

+
+
+

Features:

+
    +
  •    Cost price visibility restricted
  • +
  •    Visible only for the users in the group
  • +
  •    By default administrator will be added to this group
  • +
+
+
+
+ +
+
+

Working

+
+

Adding user to the View Cost Price group

+

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

+
+ +
+
+ +
+

Product View for users not in the Group

+
+

Product form view without cost price

+
+ + + +
+

Product tree view without cost price

+
+ +
+
+
+
+
+ + +
+

Need Any Help?

+ +
diff --git a/hide_cost_price/static/description/index.html~ b/hide_cost_price/static/description/index.html~ new file mode 100644 index 000000000..7f747cbbb --- /dev/null +++ b/hide_cost_price/static/description/index.html~ @@ -0,0 +1,82 @@ +
+
+

Birthday Notification By E-mail

+

This module will wish the employees on their birthday

+ +

Author : Cybrosys Techno Solutions , www.cybrosys.com

+
+

Features:

+
    +
  •    Adds a cron job to invoke email
  • +
  •    Adds an email template
  • +
+
+
+
+ +
+
+
+

Overview

+

+ HR departments need not worry to wish their employees for their Birthday. In this module we have included the feature to send an email Birthday notification to the employee. +

+
+
+
+ +
+
+

Employee Form

+
+

+ ☛ Give Date of Birth for employee.
+ ☛ Give work email.
+

+
+ +
+
+
+
+ +
+
+

Email Template

+
+

+ ☛ The cron job will invoke the email
+ ☛ Email template is very simple
+

+
+ +
+
+
+
+ +
+

Need Any Help?

+ +
diff --git a/hide_cost_price/static/description/product_form_view.png b/hide_cost_price/static/description/product_form_view.png new file mode 100644 index 000000000..d95273f74 Binary files /dev/null and b/hide_cost_price/static/description/product_form_view.png differ diff --git a/hide_cost_price/static/description/product_tree_view.png b/hide_cost_price/static/description/product_tree_view.png new file mode 100644 index 000000000..4fe918af6 Binary files /dev/null and b/hide_cost_price/static/description/product_tree_view.png differ diff --git a/hide_cost_price/static/description/user_adding_group.png b/hide_cost_price/static/description/user_adding_group.png new file mode 100644 index 000000000..b9b0887f6 Binary files /dev/null and b/hide_cost_price/static/description/user_adding_group.png differ 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..464ff22cb --- /dev/null +++ b/hide_cost_price/views/hide_product_cost.xml @@ -0,0 +1,31 @@ + + + + + + product.template.cost + product.template + + + + hide_cost_price.view_cost_price + + + hide_cost_price.view_cost_price + + + + + + product.template.cost + product.template + + + + hide_cost_price.view_cost_price + + + + + +