diff --git a/restrict_pricelist_user/README.rst b/restrict_pricelist_user/README.rst new file mode 100644 index 000000000..6427bd852 --- /dev/null +++ b/restrict_pricelist_user/README.rst @@ -0,0 +1,48 @@ +.. image:: https://img.shields.io/badge/license-LGPL--3-green.svg + :target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 + +Restrict Pricelists for Users +============================= +This module will help you to restrict pricelists for users. + +Configuration +============= +* The Restrict Price List field in the Res Config Settings needs to be enabled. + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +Lesser General Public License v3.0 (LGPL v3) +(https://www.gnu.org/licenses/lgpl-3.0-standalone.html) + +Credits +------- +Developers : (V16) Amaya Aravind, + (V14) Mehjabin Farsana, +Contact: 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/restrict_pricelist_user/__init__.py b/restrict_pricelist_user/__init__.py new file mode 100644 index 000000000..eb687ff49 --- /dev/null +++ b/restrict_pricelist_user/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Amaya Aravind (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################### +from . import models diff --git a/restrict_pricelist_user/__manifest__.py b/restrict_pricelist_user/__manifest__.py new file mode 100644 index 000000000..b057bc271 --- /dev/null +++ b/restrict_pricelist_user/__manifest__.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Amaya Aravind (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################### +{ + 'name': 'Restrict Pricelists for Users', + 'version': '16.0.1.0.0', + 'category': 'Sales', + 'summary': 'Feature to Restrict Pricelist for users.', + 'description': "This module provides an option to set allowed pricelists " + "for users. The defined users can access all the pricelists" + " if not particular pricelists are being assigned to them." + " Moreover, this feature is compatible with multi-company " + "setup of the Odoo platform business management.", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'depends': ['sale_management'], + 'data': [ + 'views/res_config_settings_views.xml', + 'views/res_users_views.xml', + ], + 'images': ['static/description/banner.jpg'], + 'license': 'LGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/restrict_pricelist_user/doc/RELEASE_NOTES.md b/restrict_pricelist_user/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..affefe1a0 --- /dev/null +++ b/restrict_pricelist_user/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 21.12.2023 +#### Version 16.0.1.0.0 +#### ADD + +- Initial commit for Restrict Pricelists for Users diff --git a/restrict_pricelist_user/models/__init__.py b/restrict_pricelist_user/models/__init__.py new file mode 100644 index 000000000..262403632 --- /dev/null +++ b/restrict_pricelist_user/models/__init__.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Amaya Aravind (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################### +from . import product_pricelist +from . import res_config_settings +from . import res_users diff --git a/restrict_pricelist_user/models/product_pricelist.py b/restrict_pricelist_user/models/product_pricelist.py new file mode 100644 index 000000000..e040d1d57 --- /dev/null +++ b/restrict_pricelist_user/models/product_pricelist.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Amaya Aravind (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################### +from odoo import api, models + + +class ProductPricelist(models.Model): + """Class for the inherited model product_pricelist. Checking and filtering + the applied pricelists for the uses by supering the _search() method. + """ + _inherit = 'product.pricelist' + + @api.model + def _search(self, args, offset=0, limit=None, order=None, count=False, + access_rights_uid=None): + """Checking and filtering the applied pricelists for the uses by + supering the _search() method """ + pricelist_restricted = self.env[ + 'ir.config_parameter'].sudo().get_param( + 'restrict_pricelist_user.is_restricted') + if pricelist_restricted and self.env.user.pricelist_ids.ids: + args.append(('id', 'in', self.env.user.pricelist_ids.ids)) + return super(ProductPricelist, self)\ + ._search(args, offset, limit, order, count=count, + access_rights_uid=access_rights_uid) diff --git a/restrict_pricelist_user/models/res_config_settings.py b/restrict_pricelist_user/models/res_config_settings.py new file mode 100644 index 000000000..0fbf91e52 --- /dev/null +++ b/restrict_pricelist_user/models/res_config_settings.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Amaya Aravind (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################### +from odoo import fields, models + + +class ResConfigSettings(models.TransientModel): + """Class for the inherited model res_config_settings. Added a boolean filed + for restricting pricelists for users.""" + _inherit = 'res.config.settings' + + is_restricted = fields.Boolean(string="Restrict Price List", + help="Restrict Price List for users", + config_parameter='restrict_pricelist_user.is_restricted') diff --git a/restrict_pricelist_user/models/res_users.py b/restrict_pricelist_user/models/res_users.py new file mode 100644 index 000000000..15634f732 --- /dev/null +++ b/restrict_pricelist_user/models/res_users.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Amaya Aravind (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################### +from odoo import fields, models + + +class ResUsers(models.Model): + """ Class for the inherited model res_users. Contains fields for choosing + pricelists, restrict pricelists and a compute method of is_restricted + field. """ + _inherit = 'res.users' + + pricelist_ids = fields.Many2many('product.pricelist', + 'rel_user_pricelist', + help='Choose the allowed pricelists for ' + 'the user', string="Price Lists") + is_restricted = fields.Boolean(help='Restrict pricelists for the user', + string="Restricted", + compute="_compute_is_restricted") + + def _compute_is_restricted(self): + """Compute method of is_restricted field. Computes the field according + to the field in res_config_settings.""" + pricelist_restricted = self.env['ir.config_parameter'].sudo().\ + get_param('restrict_pricelist_user.is_restricted') + for rec in self: + rec.is_restricted = True if pricelist_restricted else False diff --git a/restrict_pricelist_user/static/description/assets/icons/check.png b/restrict_pricelist_user/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/restrict_pricelist_user/static/description/assets/icons/check.png differ diff --git a/restrict_pricelist_user/static/description/assets/icons/chevron.png b/restrict_pricelist_user/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/restrict_pricelist_user/static/description/assets/icons/chevron.png differ diff --git a/restrict_pricelist_user/static/description/assets/icons/cogs.png b/restrict_pricelist_user/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/restrict_pricelist_user/static/description/assets/icons/cogs.png differ diff --git a/restrict_pricelist_user/static/description/assets/icons/consultation.png b/restrict_pricelist_user/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/restrict_pricelist_user/static/description/assets/icons/consultation.png differ diff --git a/restrict_pricelist_user/static/description/assets/icons/ecom-black.png b/restrict_pricelist_user/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/restrict_pricelist_user/static/description/assets/icons/ecom-black.png differ diff --git a/restrict_pricelist_user/static/description/assets/icons/education-black.png b/restrict_pricelist_user/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/restrict_pricelist_user/static/description/assets/icons/education-black.png differ diff --git a/restrict_pricelist_user/static/description/assets/icons/hotel-black.png b/restrict_pricelist_user/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/restrict_pricelist_user/static/description/assets/icons/hotel-black.png differ diff --git a/restrict_pricelist_user/static/description/assets/icons/license.png b/restrict_pricelist_user/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/restrict_pricelist_user/static/description/assets/icons/license.png differ diff --git a/restrict_pricelist_user/static/description/assets/icons/lifebuoy.png b/restrict_pricelist_user/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/restrict_pricelist_user/static/description/assets/icons/lifebuoy.png differ diff --git a/restrict_pricelist_user/static/description/assets/icons/manufacturing-black.png b/restrict_pricelist_user/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/restrict_pricelist_user/static/description/assets/icons/manufacturing-black.png differ diff --git a/restrict_pricelist_user/static/description/assets/icons/pos-black.png b/restrict_pricelist_user/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/restrict_pricelist_user/static/description/assets/icons/pos-black.png differ diff --git a/restrict_pricelist_user/static/description/assets/icons/puzzle.png b/restrict_pricelist_user/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/restrict_pricelist_user/static/description/assets/icons/puzzle.png differ diff --git a/restrict_pricelist_user/static/description/assets/icons/restaurant-black.png b/restrict_pricelist_user/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/restrict_pricelist_user/static/description/assets/icons/restaurant-black.png differ diff --git a/restrict_pricelist_user/static/description/assets/icons/service-black.png b/restrict_pricelist_user/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/restrict_pricelist_user/static/description/assets/icons/service-black.png differ diff --git a/restrict_pricelist_user/static/description/assets/icons/trading-black.png b/restrict_pricelist_user/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/restrict_pricelist_user/static/description/assets/icons/trading-black.png differ diff --git a/restrict_pricelist_user/static/description/assets/icons/training.png b/restrict_pricelist_user/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/restrict_pricelist_user/static/description/assets/icons/training.png differ diff --git a/restrict_pricelist_user/static/description/assets/icons/update.png b/restrict_pricelist_user/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/restrict_pricelist_user/static/description/assets/icons/update.png differ diff --git a/restrict_pricelist_user/static/description/assets/icons/user.png b/restrict_pricelist_user/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/restrict_pricelist_user/static/description/assets/icons/user.png differ diff --git a/restrict_pricelist_user/static/description/assets/icons/wrench.png b/restrict_pricelist_user/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/restrict_pricelist_user/static/description/assets/icons/wrench.png differ diff --git a/restrict_pricelist_user/static/description/assets/misc/categories.png b/restrict_pricelist_user/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/restrict_pricelist_user/static/description/assets/misc/categories.png differ diff --git a/restrict_pricelist_user/static/description/assets/misc/check-box.png b/restrict_pricelist_user/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/restrict_pricelist_user/static/description/assets/misc/check-box.png differ diff --git a/restrict_pricelist_user/static/description/assets/misc/compass.png b/restrict_pricelist_user/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/restrict_pricelist_user/static/description/assets/misc/compass.png differ diff --git a/restrict_pricelist_user/static/description/assets/misc/corporate.png b/restrict_pricelist_user/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/restrict_pricelist_user/static/description/assets/misc/corporate.png differ diff --git a/restrict_pricelist_user/static/description/assets/misc/customer-support.png b/restrict_pricelist_user/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/restrict_pricelist_user/static/description/assets/misc/customer-support.png differ diff --git a/restrict_pricelist_user/static/description/assets/misc/cybrosys-logo.png b/restrict_pricelist_user/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/restrict_pricelist_user/static/description/assets/misc/cybrosys-logo.png differ diff --git a/restrict_pricelist_user/static/description/assets/misc/features.png b/restrict_pricelist_user/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/restrict_pricelist_user/static/description/assets/misc/features.png differ diff --git a/restrict_pricelist_user/static/description/assets/misc/logo.png b/restrict_pricelist_user/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/restrict_pricelist_user/static/description/assets/misc/logo.png differ diff --git a/restrict_pricelist_user/static/description/assets/misc/pictures.png b/restrict_pricelist_user/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/restrict_pricelist_user/static/description/assets/misc/pictures.png differ diff --git a/restrict_pricelist_user/static/description/assets/misc/pie-chart.png b/restrict_pricelist_user/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/restrict_pricelist_user/static/description/assets/misc/pie-chart.png differ diff --git a/restrict_pricelist_user/static/description/assets/misc/right-arrow.png b/restrict_pricelist_user/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/restrict_pricelist_user/static/description/assets/misc/right-arrow.png differ diff --git a/restrict_pricelist_user/static/description/assets/misc/star.png b/restrict_pricelist_user/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/restrict_pricelist_user/static/description/assets/misc/star.png differ diff --git a/restrict_pricelist_user/static/description/assets/misc/support.png b/restrict_pricelist_user/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/restrict_pricelist_user/static/description/assets/misc/support.png differ diff --git a/restrict_pricelist_user/static/description/assets/misc/whatsapp.png b/restrict_pricelist_user/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/restrict_pricelist_user/static/description/assets/misc/whatsapp.png differ diff --git a/restrict_pricelist_user/static/description/assets/modules/1.png b/restrict_pricelist_user/static/description/assets/modules/1.png new file mode 100644 index 000000000..3add135c3 Binary files /dev/null and b/restrict_pricelist_user/static/description/assets/modules/1.png differ diff --git a/restrict_pricelist_user/static/description/assets/modules/2.png b/restrict_pricelist_user/static/description/assets/modules/2.png new file mode 100644 index 000000000..8658f1826 Binary files /dev/null and b/restrict_pricelist_user/static/description/assets/modules/2.png differ diff --git a/restrict_pricelist_user/static/description/assets/modules/3.png b/restrict_pricelist_user/static/description/assets/modules/3.png new file mode 100644 index 000000000..e571015b1 Binary files /dev/null and b/restrict_pricelist_user/static/description/assets/modules/3.png differ diff --git a/restrict_pricelist_user/static/description/assets/modules/4.png b/restrict_pricelist_user/static/description/assets/modules/4.png new file mode 100644 index 000000000..f6020a481 Binary files /dev/null and b/restrict_pricelist_user/static/description/assets/modules/4.png differ diff --git a/restrict_pricelist_user/static/description/assets/modules/5.png b/restrict_pricelist_user/static/description/assets/modules/5.png new file mode 100644 index 000000000..745d6db78 Binary files /dev/null and b/restrict_pricelist_user/static/description/assets/modules/5.png differ diff --git a/restrict_pricelist_user/static/description/assets/modules/6.png b/restrict_pricelist_user/static/description/assets/modules/6.png new file mode 100644 index 000000000..370d5aa83 Binary files /dev/null and b/restrict_pricelist_user/static/description/assets/modules/6.png differ diff --git a/restrict_pricelist_user/static/description/assets/screenshots/1.png b/restrict_pricelist_user/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..ed09d42d5 Binary files /dev/null and b/restrict_pricelist_user/static/description/assets/screenshots/1.png differ diff --git a/restrict_pricelist_user/static/description/assets/screenshots/2.png b/restrict_pricelist_user/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..d77efc596 Binary files /dev/null and b/restrict_pricelist_user/static/description/assets/screenshots/2.png differ diff --git a/restrict_pricelist_user/static/description/assets/screenshots/3.png b/restrict_pricelist_user/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..4ded0b606 Binary files /dev/null and b/restrict_pricelist_user/static/description/assets/screenshots/3.png differ diff --git a/restrict_pricelist_user/static/description/assets/screenshots/4.png b/restrict_pricelist_user/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..d4758562e Binary files /dev/null and b/restrict_pricelist_user/static/description/assets/screenshots/4.png differ diff --git a/restrict_pricelist_user/static/description/assets/screenshots/hero.gif b/restrict_pricelist_user/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..cac62da65 Binary files /dev/null and b/restrict_pricelist_user/static/description/assets/screenshots/hero.gif differ diff --git a/restrict_pricelist_user/static/description/banner.jpg b/restrict_pricelist_user/static/description/banner.jpg new file mode 100644 index 000000000..c508f4574 Binary files /dev/null and b/restrict_pricelist_user/static/description/banner.jpg differ diff --git a/restrict_pricelist_user/static/description/icon.png b/restrict_pricelist_user/static/description/icon.png new file mode 100644 index 000000000..4a24b278c Binary files /dev/null and b/restrict_pricelist_user/static/description/icon.png differ diff --git a/restrict_pricelist_user/static/description/index.html b/restrict_pricelist_user/static/description/index.html new file mode 100644 index 000000000..ba35b0130 --- /dev/null +++ b/restrict_pricelist_user/static/description/index.html @@ -0,0 +1,407 @@ +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ +
+
+
+ +

Restrict Pricelists for Users

+

Show Only Allowed Pricelists For Users.

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

Explore This Module

+
+ + + + +
+
+ +
+

Overview

+
+
+
The Restrict Pricelist module helps you to set Allowed Pricelists for Users. + The defined Users can access all the Pricelists if not particular Pricelists are being assigned to them. + Moreover, this feature is compatible with Multi-Company setup of the Odoo Platform Business Management. +
+
+ + + +
+
+ +
+

Features

+
+
+
+
+ + Ability to restrict Pricelists for Users. +
+
+ + Authorize selected Pricelists to a respective Users. +
+
+ + Compatible with Multi-Company setup of Business Management with Odoo. +
+
+ + Users can access all the Pricelists if no Pricelist are selected. +
+
+
+ + + +
+
+ +
+

Screenshots

+
+
+
+
+

Enable Restrict Price List. +

+

Enable the Restrict Price List option to select allowed Pricelists in Users form.

+ +
+
+

Select Allowed Price Lists in the Users form. +

+

You can select the Allowed Price Lists for a User, if no Pricelists are defined they can access any Pricelist.

+ +
+
+

Access to Only Allowed Pricelists in Sales Order. +

+

Users can choose only allowed Pricelist in the Sale Order.

+ +
+
+

Access to Only Allowed Pricelists in Customer form. +

+

User can access and define only the Allowed Pricelists in the Customer form.

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

Related 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

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

Support

+
+
+
+
+
+
+ +
+
+

Need Help?

+

Got questions or need help? Get in touch.

+ +

odoo@cybrosys.com

+
+
+
+
+
+
+
+ +
+
+

WhatsApp

+

Say hi to us on WhatsApp!

+ +

+91 86068 27707

+
+
+
+
+
+
+
+ +
+
+
+ diff --git a/restrict_pricelist_user/views/res_config_settings_views.xml b/restrict_pricelist_user/views/res_config_settings_views.xml new file mode 100644 index 000000000..e9fadeae5 --- /dev/null +++ b/restrict_pricelist_user/views/res_config_settings_views.xml @@ -0,0 +1,25 @@ + + + + + res.config.settings.view.form.inherit.restrict.pricelist.user + res.config.settings + + + +
+
+ +
+
+
+
+
+
+
+
diff --git a/restrict_pricelist_user/views/res_users_views.xml b/restrict_pricelist_user/views/res_users_views.xml new file mode 100644 index 000000000..229476901 --- /dev/null +++ b/restrict_pricelist_user/views/res_users_views.xml @@ -0,0 +1,25 @@ + + + + + res.users.view.form.inherit.restrict.pricelist.user + + res.users + + + + + + + + + + + + + + +