diff --git a/size_restriction_for_attachments/README.rst b/size_restriction_for_attachments/README.rst new file mode 100755 index 000000000..072dd1b02 --- /dev/null +++ b/size_restriction_for_attachments/README.rst @@ -0,0 +1,49 @@ +.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +Size Restriction For Attachments +================================ +This module allow to restrict attachment uploading size for a particular user. + +Configuration +============= +* In order to restrict the file size for the corresponding user, configure the boolean 'Set Restriction' in the users configuration. + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +Affero General Public License, Version 3 (AGPL v3). +(https://www.gnu.org/licenses/agpl-3.0-standalone.html) + +Credits +------- +* Developer: + (V16) Swetha Anand, + (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/size_restriction_for_attachments/__init__.py b/size_restriction_for_attachments/__init__.py new file mode 100644 index 000000000..e335c8638 --- /dev/null +++ b/size_restriction_for_attachments/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Vishnu KP (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 +from . import controllers diff --git a/size_restriction_for_attachments/__manifest__.py b/size_restriction_for_attachments/__manifest__.py new file mode 100644 index 000000000..39a51bbf7 --- /dev/null +++ b/size_restriction_for_attachments/__manifest__.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Vishnu KP (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': 'Size Restriction for Attachments', + 'version': '17.0.1.0.0', + 'category': 'Document Management', + 'summary': 'Shows an error message if attachment greater ' + 'than users maximum attachment size.', + 'description': 'If the size of attachment is greater than ' + 'the maximum size assigned for that person ' + 'then error message will be shown.', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'depends': ['base', 'mail'], + 'data': { + 'views/res_users_views.xml' + }, + 'images': ['static/description/banner.jpg'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/size_restriction_for_attachments/controllers/__init__.py b/size_restriction_for_attachments/controllers/__init__.py new file mode 100644 index 000000000..e3e418cf8 --- /dev/null +++ b/size_restriction_for_attachments/controllers/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Vishnu KP (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 discuss diff --git a/size_restriction_for_attachments/controllers/discuss.py b/size_restriction_for_attachments/controllers/discuss.py new file mode 100644 index 000000000..dfbcea823 --- /dev/null +++ b/size_restriction_for_attachments/controllers/discuss.py @@ -0,0 +1,80 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Vishnu KP (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.exceptions import AccessError +from odoo.http import request +from odoo import _ +from odoo.addons.mail.controllers.attachment import AttachmentController +from werkzeug.exceptions import NotFound + + +class DiscussController(AttachmentController): + + def mail_attachment_upload(self, ufile, thread_id, thread_model, + is_pending=False, **kwargs): + thread = request.env[thread_model].search([("id", "=", thread_id)]) + if not thread: + raise NotFound() + channel_member = request.env['discuss.channel.member'] + set_restriction = request.env.user.set_restriction + max_size = request.env.user.max_size * 1024 * 1024 + if (thread_model == "discuss.channel" and not thread.allow_public_upload + and not request.env.user._is_internal()): + raise AccessError( + _("You are not allowed to upload attachments on this channel.")) + vals = { + "name": ufile.filename, + "raw": ufile.read(), + "res_id": int(thread_id), + "res_model": thread_model, + } + if is_pending and is_pending != "false": + # Add this point, the message related to the uploaded file does + # not exist yet, so we use those placeholder values instead. + vals.update( + { + "res_id": 0, + "res_model": "mail.compose.message", + } + ) + if request.env.user.share: + # Only generate the access token if absolutely necessary + # (= not for internal user). + vals["access_token"] = request.env[ + "ir.attachment"]._generate_access_token() + try: + # sudo: ir.attachment - posting a new attachment on an + # accessible thread + attachment = request.env["ir.attachment"].sudo().create(vals) + attachment._post_add_create(**kwargs) + attachmentData = attachment._attachment_format()[0] + if attachment.access_token: + attachmentData["accessToken"] = attachment.access_token + if set_restriction: + if attachmentData['size'] > max_size: + attachmentData = {'error': _('Attachment' + ' size cannot exceed %s MB.' + ) % request.env.user.max_size} + attachment.unlink() + except AccessError: + attachmentData = { + "error": _("You are not allowed to upload an attachment here.")} + return request.make_json_response(attachmentData) diff --git a/size_restriction_for_attachments/doc/RELEASE_NOTES.md b/size_restriction_for_attachments/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..94045cdcf --- /dev/null +++ b/size_restriction_for_attachments/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 04.01.2024 +#### Version 17.0.1.0.0 +#### ADD + +- Initial commit for Size Restriction For Attachments diff --git a/size_restriction_for_attachments/models/__init__.py b/size_restriction_for_attachments/models/__init__.py new file mode 100644 index 000000000..5cea59430 --- /dev/null +++ b/size_restriction_for_attachments/models/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Vishnu KP (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_users diff --git a/size_restriction_for_attachments/models/res_users.py b/size_restriction_for_attachments/models/res_users.py new file mode 100644 index 000000000..7ebe856ef --- /dev/null +++ b/size_restriction_for_attachments/models/res_users.py @@ -0,0 +1,35 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Vishnu KP (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 fields, models + + +class ResUsers(models.Model): + """Inherits res.user.""" + _inherit = 'res.users' + + set_restriction = fields.Boolean(string="Set Restriction", + help="If true then that person " + "will have restriction on " + "size of the attachment to " + "be uploaded.") + max_size = fields.Float(string="Maximum Size(MB)", default=0.0, + help="Maximum size of attachment in MB.") diff --git a/size_restriction_for_attachments/static/description/assets/icons/capture (1).png b/size_restriction_for_attachments/static/description/assets/icons/capture (1).png new file mode 100644 index 000000000..8824deafc Binary files /dev/null and b/size_restriction_for_attachments/static/description/assets/icons/capture (1).png differ diff --git a/size_restriction_for_attachments/static/description/assets/icons/check.png b/size_restriction_for_attachments/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/size_restriction_for_attachments/static/description/assets/icons/check.png differ diff --git a/size_restriction_for_attachments/static/description/assets/icons/chevron.png b/size_restriction_for_attachments/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/size_restriction_for_attachments/static/description/assets/icons/chevron.png differ diff --git a/size_restriction_for_attachments/static/description/assets/icons/cogs.png b/size_restriction_for_attachments/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/size_restriction_for_attachments/static/description/assets/icons/cogs.png differ diff --git a/size_restriction_for_attachments/static/description/assets/icons/consultation.png b/size_restriction_for_attachments/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/size_restriction_for_attachments/static/description/assets/icons/consultation.png differ diff --git a/size_restriction_for_attachments/static/description/assets/icons/ecom-black.png b/size_restriction_for_attachments/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/size_restriction_for_attachments/static/description/assets/icons/ecom-black.png differ diff --git a/size_restriction_for_attachments/static/description/assets/icons/education-black.png b/size_restriction_for_attachments/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/size_restriction_for_attachments/static/description/assets/icons/education-black.png differ diff --git a/size_restriction_for_attachments/static/description/assets/icons/hotel-black.png b/size_restriction_for_attachments/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/size_restriction_for_attachments/static/description/assets/icons/hotel-black.png differ diff --git a/size_restriction_for_attachments/static/description/assets/icons/img.png b/size_restriction_for_attachments/static/description/assets/icons/img.png new file mode 100644 index 000000000..70197f477 Binary files /dev/null and b/size_restriction_for_attachments/static/description/assets/icons/img.png differ diff --git a/size_restriction_for_attachments/static/description/assets/icons/license.png b/size_restriction_for_attachments/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/size_restriction_for_attachments/static/description/assets/icons/license.png differ diff --git a/size_restriction_for_attachments/static/description/assets/icons/lifebuoy.png b/size_restriction_for_attachments/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/size_restriction_for_attachments/static/description/assets/icons/lifebuoy.png differ diff --git a/size_restriction_for_attachments/static/description/assets/icons/manufacturing-black.png b/size_restriction_for_attachments/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/size_restriction_for_attachments/static/description/assets/icons/manufacturing-black.png differ diff --git a/size_restriction_for_attachments/static/description/assets/icons/photo-capture.png b/size_restriction_for_attachments/static/description/assets/icons/photo-capture.png new file mode 100644 index 000000000..06c111758 Binary files /dev/null and b/size_restriction_for_attachments/static/description/assets/icons/photo-capture.png differ diff --git a/size_restriction_for_attachments/static/description/assets/icons/pos-black.png b/size_restriction_for_attachments/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/size_restriction_for_attachments/static/description/assets/icons/pos-black.png differ diff --git a/size_restriction_for_attachments/static/description/assets/icons/puzzle.png b/size_restriction_for_attachments/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/size_restriction_for_attachments/static/description/assets/icons/puzzle.png differ diff --git a/size_restriction_for_attachments/static/description/assets/icons/restaurant-black.png b/size_restriction_for_attachments/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/size_restriction_for_attachments/static/description/assets/icons/restaurant-black.png differ diff --git a/size_restriction_for_attachments/static/description/assets/icons/service-black.png b/size_restriction_for_attachments/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/size_restriction_for_attachments/static/description/assets/icons/service-black.png differ diff --git a/size_restriction_for_attachments/static/description/assets/icons/trading-black.png b/size_restriction_for_attachments/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/size_restriction_for_attachments/static/description/assets/icons/trading-black.png differ diff --git a/size_restriction_for_attachments/static/description/assets/icons/training.png b/size_restriction_for_attachments/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/size_restriction_for_attachments/static/description/assets/icons/training.png differ diff --git a/size_restriction_for_attachments/static/description/assets/icons/update.png b/size_restriction_for_attachments/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/size_restriction_for_attachments/static/description/assets/icons/update.png differ diff --git a/size_restriction_for_attachments/static/description/assets/icons/user.png b/size_restriction_for_attachments/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/size_restriction_for_attachments/static/description/assets/icons/user.png differ diff --git a/size_restriction_for_attachments/static/description/assets/icons/wrench.png b/size_restriction_for_attachments/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/size_restriction_for_attachments/static/description/assets/icons/wrench.png differ diff --git a/size_restriction_for_attachments/static/description/assets/misc/Cybrosys R.png b/size_restriction_for_attachments/static/description/assets/misc/Cybrosys R.png new file mode 100644 index 000000000..da4058087 Binary files /dev/null and b/size_restriction_for_attachments/static/description/assets/misc/Cybrosys R.png differ diff --git a/size_restriction_for_attachments/static/description/assets/misc/email.svg b/size_restriction_for_attachments/static/description/assets/misc/email.svg new file mode 100644 index 000000000..15291cdc3 --- /dev/null +++ b/size_restriction_for_attachments/static/description/assets/misc/email.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/size_restriction_for_attachments/static/description/assets/misc/phone.svg b/size_restriction_for_attachments/static/description/assets/misc/phone.svg new file mode 100644 index 000000000..b7bd7f251 --- /dev/null +++ b/size_restriction_for_attachments/static/description/assets/misc/phone.svg @@ -0,0 +1,3 @@ + + + diff --git a/size_restriction_for_attachments/static/description/assets/misc/star (1) 2.svg b/size_restriction_for_attachments/static/description/assets/misc/star (1) 2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/size_restriction_for_attachments/static/description/assets/misc/star (1) 2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/size_restriction_for_attachments/static/description/assets/misc/support (1) 1.svg b/size_restriction_for_attachments/static/description/assets/misc/support (1) 1.svg new file mode 100644 index 000000000..7d37a8f30 --- /dev/null +++ b/size_restriction_for_attachments/static/description/assets/misc/support (1) 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/size_restriction_for_attachments/static/description/assets/misc/support-email.svg b/size_restriction_for_attachments/static/description/assets/misc/support-email.svg new file mode 100644 index 000000000..eb70370d6 --- /dev/null +++ b/size_restriction_for_attachments/static/description/assets/misc/support-email.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/size_restriction_for_attachments/static/description/assets/misc/tick-mark.svg b/size_restriction_for_attachments/static/description/assets/misc/tick-mark.svg new file mode 100644 index 000000000..2dbb40187 --- /dev/null +++ b/size_restriction_for_attachments/static/description/assets/misc/tick-mark.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/size_restriction_for_attachments/static/description/assets/misc/whatsapp 1.svg b/size_restriction_for_attachments/static/description/assets/misc/whatsapp 1.svg new file mode 100644 index 000000000..0bfaf8fc6 --- /dev/null +++ b/size_restriction_for_attachments/static/description/assets/misc/whatsapp 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/size_restriction_for_attachments/static/description/assets/misc/whatsapp.svg b/size_restriction_for_attachments/static/description/assets/misc/whatsapp.svg new file mode 100644 index 000000000..b618aea1d --- /dev/null +++ b/size_restriction_for_attachments/static/description/assets/misc/whatsapp.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/size_restriction_for_attachments/static/description/assets/modules/m1.png b/size_restriction_for_attachments/static/description/assets/modules/m1.png new file mode 100644 index 000000000..acb4c76c6 Binary files /dev/null and b/size_restriction_for_attachments/static/description/assets/modules/m1.png differ diff --git a/size_restriction_for_attachments/static/description/assets/modules/m2.png b/size_restriction_for_attachments/static/description/assets/modules/m2.png new file mode 100644 index 000000000..3ef91f771 Binary files /dev/null and b/size_restriction_for_attachments/static/description/assets/modules/m2.png differ diff --git a/size_restriction_for_attachments/static/description/assets/modules/m3.png b/size_restriction_for_attachments/static/description/assets/modules/m3.png new file mode 100644 index 000000000..72febf6ae Binary files /dev/null and b/size_restriction_for_attachments/static/description/assets/modules/m3.png differ diff --git a/size_restriction_for_attachments/static/description/assets/modules/m4.png b/size_restriction_for_attachments/static/description/assets/modules/m4.png new file mode 100644 index 000000000..f7d7f9241 Binary files /dev/null and b/size_restriction_for_attachments/static/description/assets/modules/m4.png differ diff --git a/size_restriction_for_attachments/static/description/assets/modules/m5.png b/size_restriction_for_attachments/static/description/assets/modules/m5.png new file mode 100644 index 000000000..1d3324e88 Binary files /dev/null and b/size_restriction_for_attachments/static/description/assets/modules/m5.png differ diff --git a/size_restriction_for_attachments/static/description/assets/modules/m6.png b/size_restriction_for_attachments/static/description/assets/modules/m6.png new file mode 100644 index 000000000..80938c15a Binary files /dev/null and b/size_restriction_for_attachments/static/description/assets/modules/m6.png differ diff --git a/size_restriction_for_attachments/static/description/assets/screenshots.zip b/size_restriction_for_attachments/static/description/assets/screenshots.zip new file mode 100644 index 000000000..34d720d9f Binary files /dev/null and b/size_restriction_for_attachments/static/description/assets/screenshots.zip differ diff --git a/size_restriction_for_attachments/static/description/assets/screenshots/hero.gif b/size_restriction_for_attachments/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..e19fbaf5a Binary files /dev/null and b/size_restriction_for_attachments/static/description/assets/screenshots/hero.gif differ diff --git a/size_restriction_for_attachments/static/description/assets/screenshots/ss1.png b/size_restriction_for_attachments/static/description/assets/screenshots/ss1.png new file mode 100644 index 000000000..c18f25c55 Binary files /dev/null and b/size_restriction_for_attachments/static/description/assets/screenshots/ss1.png differ diff --git a/size_restriction_for_attachments/static/description/assets/screenshots/ss2.png b/size_restriction_for_attachments/static/description/assets/screenshots/ss2.png new file mode 100644 index 000000000..cb0171082 Binary files /dev/null and b/size_restriction_for_attachments/static/description/assets/screenshots/ss2.png differ diff --git a/size_restriction_for_attachments/static/description/assets/screenshots/ss3.png b/size_restriction_for_attachments/static/description/assets/screenshots/ss3.png new file mode 100644 index 000000000..b0219cf62 Binary files /dev/null and b/size_restriction_for_attachments/static/description/assets/screenshots/ss3.png differ diff --git a/size_restriction_for_attachments/static/description/assets/screenshots/ss4.png b/size_restriction_for_attachments/static/description/assets/screenshots/ss4.png new file mode 100644 index 000000000..3297e650a Binary files /dev/null and b/size_restriction_for_attachments/static/description/assets/screenshots/ss4.png differ diff --git a/size_restriction_for_attachments/static/description/banner.jpg b/size_restriction_for_attachments/static/description/banner.jpg new file mode 100644 index 000000000..fcec98d16 Binary files /dev/null and b/size_restriction_for_attachments/static/description/banner.jpg differ diff --git a/size_restriction_for_attachments/static/description/icon.png b/size_restriction_for_attachments/static/description/icon.png new file mode 100644 index 000000000..e8c8e7a39 Binary files /dev/null and b/size_restriction_for_attachments/static/description/icon.png differ diff --git a/size_restriction_for_attachments/static/description/index.html b/size_restriction_for_attachments/static/description/index.html new file mode 100644 index 000000000..2db89a6e2 --- /dev/null +++ b/size_restriction_for_attachments/static/description/index.html @@ -0,0 +1,589 @@ + + + + + + + Odoo App 3 Index + + + + + + + + +
+
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+
+ Odoo SH +
+
+
+
+
+
+

+ Size Restriction For Attachments

+

+ Shows an Error Message if Attachment Greater than Users + Maximum Attachment Size. +

+
+ +
+
+
+
+
+

Key Highlights +

+
+
+
+
+
+ +
+
+

Odoo 17 Community & Enterprise Edition Support.

+

Budget management system in Odoo 17 Community & Enterprise Edition. +

+
+
+
+
+
+
+ +
+
+

Size Controlled Attachment

+

Users Are Empowered to Control the Size of the Attached Files. +

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

+ Restriction Condition in User Page

+
+
+
+
+
+
+ +
+
+

+ Under the Limit

+
If the limit hasn't been reached, we can send the attachment.
+
+
+
+
+
+
+ +
+
+

+ Limit Exceeded

+
+ If the limit has been reached, we can not send the attachment.System Will show a warning message
+
+
+
+ + +
+
+
+
    +
  • + Create and manage Budgetary Positions. +
  • +
  • + Manage budgets with analytic accounts. +
  • +
  • + Budgetary planning with planned amount on each Analytic Account.. +
  • + +
+
+
+
+
+
+
Version + 17.0.1.0.0|Released on:4th Jan 2024 +
+

+ + Odoo 17 Budgets Management.

+
+
+
+
+
+
+
+

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/size_restriction_for_attachments/views/res_users_views.xml b/size_restriction_for_attachments/views/res_users_views.xml new file mode 100644 index 000000000..ea02d3e35 --- /dev/null +++ b/size_restriction_for_attachments/views/res_users_views.xml @@ -0,0 +1,17 @@ + + + + + res.users.view.form.inherit.size.restriction.for.attachments + res.users + + + + + + +