diff --git a/.idea/17.0.iml b/.idea/17.0.iml new file mode 100644 index 000000000..8b8c39547 --- /dev/null +++ b/.idea/17.0.iml @@ -0,0 +1,12 @@ + + + + + + + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 000000000..105ce2da2 --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 000000000..e557d17a7 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,7 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 000000000..69b08ccf8 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 000000000..35eb1ddfb --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 000000000..eef921bd4 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + + 1711694312990 + + + + \ No newline at end of file diff --git a/user_warehouse_restriction/README.rst b/user_warehouse_restriction/README.rst new file mode 100644 index 000000000..a35d79946 --- /dev/null +++ b/user_warehouse_restriction/README.rst @@ -0,0 +1,48 @@ +.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg + :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +User Warehouse Restriction +========================== +This module helps you to restrict warehouse and stock location for the users. +So that users can only access the allowed warehouse and locations. + +Configuration +============= +* Enable 'Restrict stock warehouse to users' from inventory configuration settings +* Restrict warehouse and stock location for the users. + +License +------- +Affero General Public License v3.0 (AGPL v3) +(https://www.gnu.org/licenses/agpl-3.0-standalone.html) + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +* Developer: (V17) Vishnu K P, 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/user_warehouse_restriction/__init__.py b/user_warehouse_restriction/__init__.py new file mode 100644 index 000000000..b511807a1 --- /dev/null +++ b/user_warehouse_restriction/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Vishnu K P (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/user_warehouse_restriction/__manifest__.py b/user_warehouse_restriction/__manifest__.py new file mode 100644 index 000000000..67a3d2e2a --- /dev/null +++ b/user_warehouse_restriction/__manifest__.py @@ -0,0 +1,47 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Vishnu K P (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': "User Warehouse Restriction", + 'version': '17.0.1.0.0', + 'category': 'Warehouse', + 'summary': """Restrict Warehouses and location for users.""", + 'description': """This module helps you to restrict warehouse and stock + location for the specific users. So that users can only access the allowed + warehouse and locations.""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'depends': ['stock_sms'], + 'data': [ + 'security/user_warehouse_restriction_groups.xml', + 'security/user_warehouse_restriction_security.xml', + 'views/res_config_settings_views.xml', + 'views/stock_warehouse_views.xml', + 'views/res_users_views.xml', + ], + 'images': ['static/description/banner.jpg'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/user_warehouse_restriction/doc/RELEASE_NOTES.md b/user_warehouse_restriction/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..98de67fd7 --- /dev/null +++ b/user_warehouse_restriction/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 28.03.2024 +#### Version 17.0.1.0.0 +#### ADD + +- Initial commit for User Warehouse Restriction diff --git a/user_warehouse_restriction/models/__init__.py b/user_warehouse_restriction/models/__init__.py new file mode 100644 index 000000000..5827004e1 --- /dev/null +++ b/user_warehouse_restriction/models/__init__.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Vishnu K P (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 res_config_settings +from . import res_users +from . import stock_picking +from . import stock_warehouse diff --git a/user_warehouse_restriction/models/res_config_settings.py b/user_warehouse_restriction/models/res_config_settings.py new file mode 100755 index 000000000..7ecc9b805 --- /dev/null +++ b/user_warehouse_restriction/models/res_config_settings.py @@ -0,0 +1,48 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Vishnu K P (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 api, fields, models + + +class ResConfigSettings(models.TransientModel): + """Add new fields to configuration settings to Restrict stock warehouse + for users.""" + _inherit = 'res.config.settings' + + group_user_warehouse_restriction = fields.Boolean( + string="Restrict Stock Warehouse", + implied_group='user_warehouse_restriction.' + 'user_warehouse_restriction_group_user', + help="Check if you want to restrict warehouse for users.") + + @api.onchange('group_user_warehouse_restriction') + def _onchange_group_user_warehouse_restriction(self): + """This method is triggered when the 'group_user_warehouse_restriction' + field is changed. if it's true, assigns the current user as the + allowed user of all existing warehouses.""" + warehouses = self.env['stock.warehouse'].search([]) + for warehouse in warehouses: + if self.group_user_warehouse_restriction: + # Assign the current user to each warehouse + warehouse.user_ids = [(6, 0, [self.env.user.id])] + else: + # Clear the allowed users for each warehouse + warehouse.user_ids = [(5, 0, 0)] diff --git a/user_warehouse_restriction/models/res_users.py b/user_warehouse_restriction/models/res_users.py new file mode 100644 index 000000000..00f2d17e5 --- /dev/null +++ b/user_warehouse_restriction/models/res_users.py @@ -0,0 +1,59 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Vishnu K P (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 api, fields, models + + +class ResUsers(models.Model): + """This model adds additional fields to the `res.users` model to restrict + user access to certain locations and warehouses.""" + _inherit = 'res.users' + + restrict_location = fields.Boolean(string="Restrict Location", + help='Restrict location for the user.') + location_ids = fields.Many2many(comodel_name='stock.location', + string='Restricted Locations', + help='Restricted locations for users.') + allowed_warehouse_ids = fields.Many2many( + comodel_name='stock.warehouse', string='Allowed Warehouse', + help='Allowed Warehouse for user.') + check_user = fields.Boolean(string="Check", compute='_compute_check_user', + help="Indicates whether the user has warehouse" + " location restrictions.") + + @api.model + def create(self, vals): + self.clear_caches() + return super(ResUsers, self).create(vals) + + def write(self, vals): + self.clear_caches() + return super(ResUsers, self).write(vals) + + def _compute_check_user(self): + """To determine if the user has warehouse location restrictions. + Sets the check_user field accordingly.""" + restriction_group_id = self.env.ref( + 'user_warehouse_restriction.user_warehouse_restriction_group_user').id + for record in self: + record.check_user = False + if restriction_group_id in record.groups_id.mapped('id'): + record.check_user = True diff --git a/user_warehouse_restriction/models/stock_picking.py b/user_warehouse_restriction/models/stock_picking.py new file mode 100644 index 000000000..c551a7b3f --- /dev/null +++ b/user_warehouse_restriction/models/stock_picking.py @@ -0,0 +1,38 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Vishnu K P (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 StockPicking(models.Model): + """Extends stock picking to apply domain restrictions based on user's + assigned warehouses.""" + _inherit = 'stock.picking' + + @api.onchange('location_id', 'location_dest_id') + def _onchange_location_id(self): + """Domain for location_id and location_dest_id.""" + return { + 'domain': {'location_id': [ + ('warehouse_id.user_ids', 'in', self.env.user.id)], + 'location_dest_id': [ + ('warehouse_id.user_ids', 'in', self.env.user.id)]}} + diff --git a/user_warehouse_restriction/models/stock_warehouse.py b/user_warehouse_restriction/models/stock_warehouse.py new file mode 100644 index 000000000..568fe17fc --- /dev/null +++ b/user_warehouse_restriction/models/stock_warehouse.py @@ -0,0 +1,65 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Vishnu K P (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 api, fields, models + + +class StockWarehouse(models.Model): + """Extends the 'stock.warehouse' model to add functionality for restricting + stock location access to specific users within the system.""" + _inherit = "stock.warehouse" + + user_ids = fields.Many2many( + comodel_name='res.users', string='Allowed Users', + domain=lambda self: [ + ('groups_id', 'in', self.env.ref('stock.group_stock_user').id)], + default=lambda self: self.env.user, + help='Allowed users to this Warehouse.') + restrict_location = fields.Boolean( + string='Restrict Stock Location for this Warehouse', + help='Restrict stock location of this warehouse to the selected ' + 'users.') + + @api.onchange('restrict_location', 'user_ids') + def _onchange_restrict_location(self): + """Triggered when the 'restrict_location' or 'user_ids' fields + are modified. It updates the 'restrict_location' field for selected + users when restricting stock location access.""" + for rec in self.user_ids: + if self.restrict_location: + rec._origin.write({'restrict_location': True, + 'allowed_warehouse_ids': [ + (4, self._origin.id)]}) + elif not self.restrict_location: + rec._origin.write({'restrict_location': True, + 'location_ids': False + }) + + def action_open_users_view(self): + """Return user basic form view to give restricted location for users""" + return { + 'type': 'ir.actions.act_window', + 'name': 'Users', + 'view_mode': 'tree,form', + 'res_model': 'res.users', + 'domain': [('id', 'in', [user.id for user in self.user_ids]), + ('groups_id', 'not in', + [self.env.ref('base.group_system').id])]} diff --git a/user_warehouse_restriction/security/user_warehouse_restriction_groups.xml b/user_warehouse_restriction/security/user_warehouse_restriction_groups.xml new file mode 100644 index 000000000..5a19c238d --- /dev/null +++ b/user_warehouse_restriction/security/user_warehouse_restriction_groups.xml @@ -0,0 +1,8 @@ + + + + + Restrict Warehouse for Users + + + diff --git a/user_warehouse_restriction/security/user_warehouse_restriction_security.xml b/user_warehouse_restriction/security/user_warehouse_restriction_security.xml new file mode 100644 index 000000000..f9bb080e1 --- /dev/null +++ b/user_warehouse_restriction/security/user_warehouse_restriction_security.xml @@ -0,0 +1,52 @@ + + + + + Operation Type Restrict on Users + + [('warehouse_id.user_ids','in', user.id)] + + + + + + + + + + Stock Location Restrict on Users + + [('id', 'not in', user.location_ids.ids)] + + + + + + + + + + Warehouse Restrict on Users + + [('user_ids','in', user.id)] + + + + + + + + + + Warehouse Transfers Restrict on Users + + [('picking_type_id.warehouse_id.user_ids','in', user.id)] + + + + + + + + diff --git a/user_warehouse_restriction/static/description/assets/icons/capture (1).png b/user_warehouse_restriction/static/description/assets/icons/capture (1).png new file mode 100644 index 000000000..8824deafc Binary files /dev/null and b/user_warehouse_restriction/static/description/assets/icons/capture (1).png differ diff --git a/user_warehouse_restriction/static/description/assets/icons/check.png b/user_warehouse_restriction/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/user_warehouse_restriction/static/description/assets/icons/check.png differ diff --git a/user_warehouse_restriction/static/description/assets/icons/chevron.png b/user_warehouse_restriction/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/user_warehouse_restriction/static/description/assets/icons/chevron.png differ diff --git a/user_warehouse_restriction/static/description/assets/icons/cogs.png b/user_warehouse_restriction/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/user_warehouse_restriction/static/description/assets/icons/cogs.png differ diff --git a/user_warehouse_restriction/static/description/assets/icons/consultation.png b/user_warehouse_restriction/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/user_warehouse_restriction/static/description/assets/icons/consultation.png differ diff --git a/user_warehouse_restriction/static/description/assets/icons/ecom-black.png b/user_warehouse_restriction/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/user_warehouse_restriction/static/description/assets/icons/ecom-black.png differ diff --git a/user_warehouse_restriction/static/description/assets/icons/education-black.png b/user_warehouse_restriction/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/user_warehouse_restriction/static/description/assets/icons/education-black.png differ diff --git a/user_warehouse_restriction/static/description/assets/icons/hotel-black.png b/user_warehouse_restriction/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/user_warehouse_restriction/static/description/assets/icons/hotel-black.png differ diff --git a/user_warehouse_restriction/static/description/assets/icons/img.png b/user_warehouse_restriction/static/description/assets/icons/img.png new file mode 100644 index 000000000..70197f477 Binary files /dev/null and b/user_warehouse_restriction/static/description/assets/icons/img.png differ diff --git a/user_warehouse_restriction/static/description/assets/icons/license.png b/user_warehouse_restriction/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/user_warehouse_restriction/static/description/assets/icons/license.png differ diff --git a/user_warehouse_restriction/static/description/assets/icons/lifebuoy.png b/user_warehouse_restriction/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/user_warehouse_restriction/static/description/assets/icons/lifebuoy.png differ diff --git a/user_warehouse_restriction/static/description/assets/icons/manufacturing-black.png b/user_warehouse_restriction/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/user_warehouse_restriction/static/description/assets/icons/manufacturing-black.png differ diff --git a/user_warehouse_restriction/static/description/assets/icons/photo-capture.png b/user_warehouse_restriction/static/description/assets/icons/photo-capture.png new file mode 100644 index 000000000..06c111758 Binary files /dev/null and b/user_warehouse_restriction/static/description/assets/icons/photo-capture.png differ diff --git a/user_warehouse_restriction/static/description/assets/icons/pos-black.png b/user_warehouse_restriction/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/user_warehouse_restriction/static/description/assets/icons/pos-black.png differ diff --git a/user_warehouse_restriction/static/description/assets/icons/puzzle.png b/user_warehouse_restriction/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/user_warehouse_restriction/static/description/assets/icons/puzzle.png differ diff --git a/user_warehouse_restriction/static/description/assets/icons/restaurant-black.png b/user_warehouse_restriction/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/user_warehouse_restriction/static/description/assets/icons/restaurant-black.png differ diff --git a/user_warehouse_restriction/static/description/assets/icons/service-black.png b/user_warehouse_restriction/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/user_warehouse_restriction/static/description/assets/icons/service-black.png differ diff --git a/user_warehouse_restriction/static/description/assets/icons/trading-black.png b/user_warehouse_restriction/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/user_warehouse_restriction/static/description/assets/icons/trading-black.png differ diff --git a/user_warehouse_restriction/static/description/assets/icons/training.png b/user_warehouse_restriction/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/user_warehouse_restriction/static/description/assets/icons/training.png differ diff --git a/user_warehouse_restriction/static/description/assets/icons/update.png b/user_warehouse_restriction/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/user_warehouse_restriction/static/description/assets/icons/update.png differ diff --git a/user_warehouse_restriction/static/description/assets/icons/user.png b/user_warehouse_restriction/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/user_warehouse_restriction/static/description/assets/icons/user.png differ diff --git a/user_warehouse_restriction/static/description/assets/icons/wrench.png b/user_warehouse_restriction/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/user_warehouse_restriction/static/description/assets/icons/wrench.png differ diff --git a/user_warehouse_restriction/static/description/assets/misc/Cybrosys R.png b/user_warehouse_restriction/static/description/assets/misc/Cybrosys R.png new file mode 100644 index 000000000..da4058087 Binary files /dev/null and b/user_warehouse_restriction/static/description/assets/misc/Cybrosys R.png differ diff --git a/user_warehouse_restriction/static/description/assets/misc/email.svg b/user_warehouse_restriction/static/description/assets/misc/email.svg new file mode 100644 index 000000000..15291cdc3 --- /dev/null +++ b/user_warehouse_restriction/static/description/assets/misc/email.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/user_warehouse_restriction/static/description/assets/misc/phone.svg b/user_warehouse_restriction/static/description/assets/misc/phone.svg new file mode 100644 index 000000000..b7bd7f251 --- /dev/null +++ b/user_warehouse_restriction/static/description/assets/misc/phone.svg @@ -0,0 +1,3 @@ + + + diff --git a/user_warehouse_restriction/static/description/assets/misc/star (1) 2.svg b/user_warehouse_restriction/static/description/assets/misc/star (1) 2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/user_warehouse_restriction/static/description/assets/misc/star (1) 2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/user_warehouse_restriction/static/description/assets/misc/support (1) 1.svg b/user_warehouse_restriction/static/description/assets/misc/support (1) 1.svg new file mode 100644 index 000000000..7d37a8f30 --- /dev/null +++ b/user_warehouse_restriction/static/description/assets/misc/support (1) 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/user_warehouse_restriction/static/description/assets/misc/support-email.svg b/user_warehouse_restriction/static/description/assets/misc/support-email.svg new file mode 100644 index 000000000..eb70370d6 --- /dev/null +++ b/user_warehouse_restriction/static/description/assets/misc/support-email.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/user_warehouse_restriction/static/description/assets/misc/tick-mark.svg b/user_warehouse_restriction/static/description/assets/misc/tick-mark.svg new file mode 100644 index 000000000..2dbb40187 --- /dev/null +++ b/user_warehouse_restriction/static/description/assets/misc/tick-mark.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/user_warehouse_restriction/static/description/assets/misc/whatsapp 1.svg b/user_warehouse_restriction/static/description/assets/misc/whatsapp 1.svg new file mode 100644 index 000000000..0bfaf8fc6 --- /dev/null +++ b/user_warehouse_restriction/static/description/assets/misc/whatsapp 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/user_warehouse_restriction/static/description/assets/misc/whatsapp.svg b/user_warehouse_restriction/static/description/assets/misc/whatsapp.svg new file mode 100644 index 000000000..b618aea1d --- /dev/null +++ b/user_warehouse_restriction/static/description/assets/misc/whatsapp.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/user_warehouse_restriction/static/description/assets/modules/m1.png b/user_warehouse_restriction/static/description/assets/modules/m1.png new file mode 100644 index 000000000..acb4c76c6 Binary files /dev/null and b/user_warehouse_restriction/static/description/assets/modules/m1.png differ diff --git a/user_warehouse_restriction/static/description/assets/modules/m2.png b/user_warehouse_restriction/static/description/assets/modules/m2.png new file mode 100644 index 000000000..3ef91f771 Binary files /dev/null and b/user_warehouse_restriction/static/description/assets/modules/m2.png differ diff --git a/user_warehouse_restriction/static/description/assets/modules/m3.png b/user_warehouse_restriction/static/description/assets/modules/m3.png new file mode 100644 index 000000000..72febf6ae Binary files /dev/null and b/user_warehouse_restriction/static/description/assets/modules/m3.png differ diff --git a/user_warehouse_restriction/static/description/assets/modules/m4.png b/user_warehouse_restriction/static/description/assets/modules/m4.png new file mode 100644 index 000000000..f7d7f9241 Binary files /dev/null and b/user_warehouse_restriction/static/description/assets/modules/m4.png differ diff --git a/user_warehouse_restriction/static/description/assets/modules/m5.png b/user_warehouse_restriction/static/description/assets/modules/m5.png new file mode 100644 index 000000000..1d3324e88 Binary files /dev/null and b/user_warehouse_restriction/static/description/assets/modules/m5.png differ diff --git a/user_warehouse_restriction/static/description/assets/modules/m6.png b/user_warehouse_restriction/static/description/assets/modules/m6.png new file mode 100644 index 000000000..80938c15a Binary files /dev/null and b/user_warehouse_restriction/static/description/assets/modules/m6.png differ diff --git a/user_warehouse_restriction/static/description/assets/screenshots/hero.gif b/user_warehouse_restriction/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..0d8974c22 Binary files /dev/null and b/user_warehouse_restriction/static/description/assets/screenshots/hero.gif differ diff --git a/user_warehouse_restriction/static/description/assets/screenshots/ss1.png b/user_warehouse_restriction/static/description/assets/screenshots/ss1.png new file mode 100644 index 000000000..d947afe48 Binary files /dev/null and b/user_warehouse_restriction/static/description/assets/screenshots/ss1.png differ diff --git a/user_warehouse_restriction/static/description/assets/screenshots/ss2.png b/user_warehouse_restriction/static/description/assets/screenshots/ss2.png new file mode 100644 index 000000000..45b89bc8c Binary files /dev/null and b/user_warehouse_restriction/static/description/assets/screenshots/ss2.png differ diff --git a/user_warehouse_restriction/static/description/assets/screenshots/ss3.png b/user_warehouse_restriction/static/description/assets/screenshots/ss3.png new file mode 100644 index 000000000..999192a0d Binary files /dev/null and b/user_warehouse_restriction/static/description/assets/screenshots/ss3.png differ diff --git a/user_warehouse_restriction/static/description/assets/screenshots/ss4.png b/user_warehouse_restriction/static/description/assets/screenshots/ss4.png new file mode 100644 index 000000000..e27fb3d95 Binary files /dev/null and b/user_warehouse_restriction/static/description/assets/screenshots/ss4.png differ diff --git a/user_warehouse_restriction/static/description/assets/screenshots/ss5.png b/user_warehouse_restriction/static/description/assets/screenshots/ss5.png new file mode 100644 index 000000000..95b551282 Binary files /dev/null and b/user_warehouse_restriction/static/description/assets/screenshots/ss5.png differ diff --git a/user_warehouse_restriction/static/description/assets/screenshots/ss6.png b/user_warehouse_restriction/static/description/assets/screenshots/ss6.png new file mode 100644 index 000000000..2ffe23147 Binary files /dev/null and b/user_warehouse_restriction/static/description/assets/screenshots/ss6.png differ diff --git a/user_warehouse_restriction/static/description/banner.jpg b/user_warehouse_restriction/static/description/banner.jpg new file mode 100644 index 000000000..e1f74978e Binary files /dev/null and b/user_warehouse_restriction/static/description/banner.jpg differ diff --git a/user_warehouse_restriction/static/description/icon.png b/user_warehouse_restriction/static/description/icon.png new file mode 100644 index 000000000..888174fd1 Binary files /dev/null and b/user_warehouse_restriction/static/description/icon.png differ diff --git a/user_warehouse_restriction/static/description/index.html b/user_warehouse_restriction/static/description/index.html new file mode 100644 index 000000000..cfbc79d5e --- /dev/null +++ b/user_warehouse_restriction/static/description/index.html @@ -0,0 +1,760 @@ + + + + + + + Odoo App 3 Index + + + + + + + + +
+
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+
+
+
+

+ User Warehouse Restriction

+

+ This Module Restrict Warehouse And Stock Location For Users. +

+
+ +
+
+
+
+
+

+ Key Highlights +

+
+
+
+
+
+ +
+
+

+ Odoo 17 Community & Enterprise Edition + Support.

+

User Warehouse Restriction in Odoo 17 Community & Enterprise + Edition. +

+
+
+
+
+
+
+ +
+
+

+ Restrict Warehouse for Users.

+

Module allows + Users to set Restriction for the warehouse. +

+
+
+
+
+
+
+ +
+
+

+ Restrict Location for Users.

+

+ Users to set Restriction for the Location. +

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

+ Enable the feature from the settings.

+
+ Go to Inventory settings -> Click the Restrict Stock warehouse button followed by the storage location button. +
+
+
+
+
+
+
+ +
+
+

+ Add the users

+
+ Add the Users here. +
+
+
+
+
+
+
+ +
+
+

+ Restrict From User form page

+
+ Here we can set the Restricted Warehouse and Location. +
+
+
+
+
+
+
+ +
+
+

+ Removed the Location and Warehouse

+
+ As per the User Restriction the Locations are Removed from the Selection.
+
+
+
+
+
+
+ +
+
+

+ No Restriction

+
For This User There is no Restriction for the Location. +
+
+
+
+
+
+
+ +
+
+

+ No filtration in location

+
For This User can Access all the Location. +
+
+
+
+
+
+
+
    +
  • + The Module lets + Users Wise Location Restriction. +
  • +
  • + + Users Wise Warehouse Restriction. +
  • +
+
+
+
+
+
+
Version + 17.0.1.0.0|Released on:21th Mar 2024 +
+

+ Odoo 17 User Warehouse Restriction

+
+
+
+
+
+
+
+

+ Related Products

+
+
+ +
+
+

+ Our Services

+ +
+
+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Customization

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Implementation

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Support

+
+
+
+
+
+
+ service-icon +
+
+

Hire + Odoo Developer

+
+
+
+
+ +
+
+ service-icon +
+
+

Odoo + Integration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Migration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Consultancy

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Implementation

+
+
+
+
+
+
+ service-icon +
+
+

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 + 99456767686 +
+
+
+
+
+
+
+
+
+ + + + + + diff --git a/user_warehouse_restriction/views/res_config_settings_views.xml b/user_warehouse_restriction/views/res_config_settings_views.xml new file mode 100755 index 000000000..7fb6327dd --- /dev/null +++ b/user_warehouse_restriction/views/res_config_settings_views.xml @@ -0,0 +1,19 @@ + + + + + res.config.settings.view.form.inherit.user.warehouse.restriction + res.config.settings + + + + + + + + + + + diff --git a/user_warehouse_restriction/views/res_users_views.xml b/user_warehouse_restriction/views/res_users_views.xml new file mode 100644 index 000000000..271a69290 --- /dev/null +++ b/user_warehouse_restriction/views/res_users_views.xml @@ -0,0 +1,42 @@ + + + + + res.users.view.form.inherit.user.warehouse.restriction + + res.users + extension + + + + + + + + + + + + + + + + res.users.view.form.user.warehouse.restriction + + res.users + + + + + + + + + + + + + diff --git a/user_warehouse_restriction/views/stock_warehouse_views.xml b/user_warehouse_restriction/views/stock_warehouse_views.xml new file mode 100644 index 000000000..f7ce2077b --- /dev/null +++ b/user_warehouse_restriction/views/stock_warehouse_views.xml @@ -0,0 +1,41 @@ + + + + + + stock.warehouse.view.form.inherit.user.warehouse.restriction + + stock.warehouse + + + + + + stock.group_adv_location,stock.group_stock_multi_warehouses,user_warehouse_restriction.user_warehouse_restriction_group_user + + + + + stock.group_adv_location,stock.group_stock_multi_warehouses + + + + + + + + +