diff --git a/hide_cost_price/README.rst b/hide_cost_price/README.rst new file mode 100644 index 000000000..236378ba4 --- /dev/null +++ b/hide_cost_price/README.rst @@ -0,0 +1,13 @@ +Hide Product Cost Price v10 +=========================== +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 + +Credits +======= +Cybrosys Techno Solutions + +Author +------ +* Niyas Raphy diff --git a/hide_cost_price/__init__.py b/hide_cost_price/__init__.py new file mode 100644 index 000000000..496a9ba90 --- /dev/null +++ b/hide_cost_price/__init__.py @@ -0,0 +1,22 @@ +# -*- 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 . +# +############################################################################## diff --git a/hide_cost_price/__manifest__.py b/hide_cost_price/__manifest__.py new file mode 100644 index 000000000..83fa8b02f --- /dev/null +++ b/hide_cost_price/__manifest__.py @@ -0,0 +1,42 @@ +# -*- 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' + ], + '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..2c6f33666 --- /dev/null +++ b/hide_cost_price/security/view_cost_price.xml @@ -0,0 +1,9 @@ + + + + + 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..f9be7a8ab 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..31881c6fe 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..29bfab572 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..2e8129852 --- /dev/null +++ b/hide_cost_price/views/hide_product_cost.xml @@ -0,0 +1,29 @@ + + + + + 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 + + + + +