diff --git a/edit_order_date/README.rst b/edit_order_date/README.rst new file mode 100644 index 000000000..e12b332f2 --- /dev/null +++ b/edit_order_date/README.rst @@ -0,0 +1,48 @@ +.. image:: https://img.shields.io/badge/licence-LGPL--3-green.svg + :target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 + +Edit Sale Order Date +==================== +We can change the order date of the confirmed sale order. The access for the editing +the order date can be restricted to particular user group. The user who have no access +to edit the field got a user error while trying to change the field. + +Configuration +============= +No additional configurations needed. + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +General Public License, Version 3 (LGPL v3). +(https://www.gnu.org/licenses/lgpl-3.0-standalone.html) + +Credits +------- +Developer : (V15) Saneen K, 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/edit_order_date/__init__.py b/edit_order_date/__init__.py new file mode 100644 index 000000000..a6a3c2326 --- /dev/null +++ b/edit_order_date/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Saneen K (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/edit_order_date/__manifest__.py b/edit_order_date/__manifest__.py new file mode 100644 index 000000000..c91fea984 --- /dev/null +++ b/edit_order_date/__manifest__.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Saneen K (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': "Edit Sale Order Date", + 'version': '15.0.1.0.0', + 'category': 'Sales', + 'summary': 'Change the sale order date for particular user group', + 'description': 'We can change the order date of the confirmed sale order.' + 'The access for the editing the order date can be' + 'restricted to particular user group. The user who have no ' + 'access to edit the field got a user error while trying to' + 'change the field', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'depends': ['base', 'sale_management'], + 'data': [ + 'security/edit_order_date_groups.xml', + ], + 'images': ['static/description/banner.jpg'], + 'license': 'LGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/edit_order_date/doc/RELEASE_NOTES.md b/edit_order_date/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..9c6d725d1 --- /dev/null +++ b/edit_order_date/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 30.08.2023 +#### Version 15.0.1.0.0 +#### ADD +- Initial commit for Edit Sale Order Date diff --git a/edit_order_date/models/__init__.py b/edit_order_date/models/__init__.py new file mode 100644 index 000000000..6c2e19fa3 --- /dev/null +++ b/edit_order_date/models/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Saneen K (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 sale_order diff --git a/edit_order_date/models/sale_order.py b/edit_order_date/models/sale_order.py new file mode 100644 index 000000000..8d2000f12 --- /dev/null +++ b/edit_order_date/models/sale_order.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Saneen K (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, _ +from odoo.exceptions import UserError + + +class SaleOrder(models.Model): + """Inherit the Sale Order for make the field editable to security group""" + _inherit = 'sale.order' + + date_order = fields.Datetime( + string="Order Date", readonly=False, copy=False, required=True, + help="Creation date of draft/sent orders,\nConfirmation date of " + "confirmed orders.") + + def write(self, values): + """Supering the write function for making the order_date field + readonly for particular user group""" + result = super().write(values) + if ('date_order' in values and values['date_order'] != self.date_order + and not self.env.user.has_group( + 'edit_order_date.edit_order_date_group_user') and not + self.env.is_admin()): + raise UserError( + _("You have no access to change 'Order Date'")) + return result diff --git a/edit_order_date/security/edit_order_date_groups.xml b/edit_order_date/security/edit_order_date_groups.xml new file mode 100644 index 000000000..d6164ecf7 --- /dev/null +++ b/edit_order_date/security/edit_order_date_groups.xml @@ -0,0 +1,8 @@ + + + + + Edit Order Date + + + diff --git a/edit_order_date/static/description/assets/icons/check.png b/edit_order_date/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/edit_order_date/static/description/assets/icons/check.png differ diff --git a/edit_order_date/static/description/assets/icons/chevron.png b/edit_order_date/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/edit_order_date/static/description/assets/icons/chevron.png differ diff --git a/edit_order_date/static/description/assets/icons/cogs.png b/edit_order_date/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/edit_order_date/static/description/assets/icons/cogs.png differ diff --git a/edit_order_date/static/description/assets/icons/consultation.png b/edit_order_date/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/edit_order_date/static/description/assets/icons/consultation.png differ diff --git a/edit_order_date/static/description/assets/icons/ecom-black.png b/edit_order_date/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/edit_order_date/static/description/assets/icons/ecom-black.png differ diff --git a/edit_order_date/static/description/assets/icons/education-black.png b/edit_order_date/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/edit_order_date/static/description/assets/icons/education-black.png differ diff --git a/edit_order_date/static/description/assets/icons/hotel-black.png b/edit_order_date/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/edit_order_date/static/description/assets/icons/hotel-black.png differ diff --git a/edit_order_date/static/description/assets/icons/license.png b/edit_order_date/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/edit_order_date/static/description/assets/icons/license.png differ diff --git a/edit_order_date/static/description/assets/icons/lifebuoy.png b/edit_order_date/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/edit_order_date/static/description/assets/icons/lifebuoy.png differ diff --git a/edit_order_date/static/description/assets/icons/manufacturing-black.png b/edit_order_date/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/edit_order_date/static/description/assets/icons/manufacturing-black.png differ diff --git a/edit_order_date/static/description/assets/icons/pos-black.png b/edit_order_date/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/edit_order_date/static/description/assets/icons/pos-black.png differ diff --git a/edit_order_date/static/description/assets/icons/puzzle.png b/edit_order_date/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/edit_order_date/static/description/assets/icons/puzzle.png differ diff --git a/edit_order_date/static/description/assets/icons/restaurant-black.png b/edit_order_date/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/edit_order_date/static/description/assets/icons/restaurant-black.png differ diff --git a/edit_order_date/static/description/assets/icons/service-black.png b/edit_order_date/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/edit_order_date/static/description/assets/icons/service-black.png differ diff --git a/edit_order_date/static/description/assets/icons/trading-black.png b/edit_order_date/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/edit_order_date/static/description/assets/icons/trading-black.png differ diff --git a/edit_order_date/static/description/assets/icons/training.png b/edit_order_date/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/edit_order_date/static/description/assets/icons/training.png differ diff --git a/edit_order_date/static/description/assets/icons/update.png b/edit_order_date/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/edit_order_date/static/description/assets/icons/update.png differ diff --git a/edit_order_date/static/description/assets/icons/user.png b/edit_order_date/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/edit_order_date/static/description/assets/icons/user.png differ diff --git a/edit_order_date/static/description/assets/icons/wrench.png b/edit_order_date/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/edit_order_date/static/description/assets/icons/wrench.png differ diff --git a/edit_order_date/static/description/assets/misc/categories.png b/edit_order_date/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/edit_order_date/static/description/assets/misc/categories.png differ diff --git a/edit_order_date/static/description/assets/misc/check-box.png b/edit_order_date/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/edit_order_date/static/description/assets/misc/check-box.png differ diff --git a/edit_order_date/static/description/assets/misc/compass.png b/edit_order_date/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/edit_order_date/static/description/assets/misc/compass.png differ diff --git a/edit_order_date/static/description/assets/misc/corporate.png b/edit_order_date/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/edit_order_date/static/description/assets/misc/corporate.png differ diff --git a/edit_order_date/static/description/assets/misc/customer-support.png b/edit_order_date/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/edit_order_date/static/description/assets/misc/customer-support.png differ diff --git a/edit_order_date/static/description/assets/misc/cybrosys-logo.png b/edit_order_date/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/edit_order_date/static/description/assets/misc/cybrosys-logo.png differ diff --git a/edit_order_date/static/description/assets/misc/features.png b/edit_order_date/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/edit_order_date/static/description/assets/misc/features.png differ diff --git a/edit_order_date/static/description/assets/misc/logo.png b/edit_order_date/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/edit_order_date/static/description/assets/misc/logo.png differ diff --git a/edit_order_date/static/description/assets/misc/pictures.png b/edit_order_date/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/edit_order_date/static/description/assets/misc/pictures.png differ diff --git a/edit_order_date/static/description/assets/misc/pie-chart.png b/edit_order_date/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/edit_order_date/static/description/assets/misc/pie-chart.png differ diff --git a/edit_order_date/static/description/assets/misc/right-arrow.png b/edit_order_date/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/edit_order_date/static/description/assets/misc/right-arrow.png differ diff --git a/edit_order_date/static/description/assets/misc/star.png b/edit_order_date/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/edit_order_date/static/description/assets/misc/star.png differ diff --git a/edit_order_date/static/description/assets/misc/support.png b/edit_order_date/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/edit_order_date/static/description/assets/misc/support.png differ diff --git a/edit_order_date/static/description/assets/misc/whatsapp.png b/edit_order_date/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/edit_order_date/static/description/assets/misc/whatsapp.png differ diff --git a/edit_order_date/static/description/assets/modules/1.png b/edit_order_date/static/description/assets/modules/1.png new file mode 100644 index 000000000..004c61a9e Binary files /dev/null and b/edit_order_date/static/description/assets/modules/1.png differ diff --git a/edit_order_date/static/description/assets/modules/2.png b/edit_order_date/static/description/assets/modules/2.png new file mode 100644 index 000000000..04d502e26 Binary files /dev/null and b/edit_order_date/static/description/assets/modules/2.png differ diff --git a/edit_order_date/static/description/assets/modules/3.png b/edit_order_date/static/description/assets/modules/3.png new file mode 100644 index 000000000..c4b3a2088 Binary files /dev/null and b/edit_order_date/static/description/assets/modules/3.png differ diff --git a/edit_order_date/static/description/assets/modules/4.png b/edit_order_date/static/description/assets/modules/4.png new file mode 100644 index 000000000..958ed2bf4 Binary files /dev/null and b/edit_order_date/static/description/assets/modules/4.png differ diff --git a/edit_order_date/static/description/assets/modules/5.png b/edit_order_date/static/description/assets/modules/5.png new file mode 100644 index 000000000..c138dd7c2 Binary files /dev/null and b/edit_order_date/static/description/assets/modules/5.png differ diff --git a/edit_order_date/static/description/assets/modules/6.png b/edit_order_date/static/description/assets/modules/6.png new file mode 100644 index 000000000..09e2d45b2 Binary files /dev/null and b/edit_order_date/static/description/assets/modules/6.png differ diff --git a/edit_order_date/static/description/assets/screenshots/1.png b/edit_order_date/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..64d3f71e7 Binary files /dev/null and b/edit_order_date/static/description/assets/screenshots/1.png differ diff --git a/edit_order_date/static/description/assets/screenshots/11.png b/edit_order_date/static/description/assets/screenshots/11.png new file mode 100644 index 000000000..1c9adb230 Binary files /dev/null and b/edit_order_date/static/description/assets/screenshots/11.png differ diff --git a/edit_order_date/static/description/assets/screenshots/2.png b/edit_order_date/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..da02000d4 Binary files /dev/null and b/edit_order_date/static/description/assets/screenshots/2.png differ diff --git a/edit_order_date/static/description/assets/screenshots/22.png b/edit_order_date/static/description/assets/screenshots/22.png new file mode 100644 index 000000000..fc4f8bf8b Binary files /dev/null and b/edit_order_date/static/description/assets/screenshots/22.png differ diff --git a/edit_order_date/static/description/assets/screenshots/33.png b/edit_order_date/static/description/assets/screenshots/33.png new file mode 100644 index 000000000..0b9bdd6fd Binary files /dev/null and b/edit_order_date/static/description/assets/screenshots/33.png differ diff --git a/edit_order_date/static/description/assets/screenshots/hero.gif b/edit_order_date/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..7edbf708a Binary files /dev/null and b/edit_order_date/static/description/assets/screenshots/hero.gif differ diff --git a/edit_order_date/static/description/banner.jpg b/edit_order_date/static/description/banner.jpg new file mode 100644 index 000000000..72d64da92 Binary files /dev/null and b/edit_order_date/static/description/banner.jpg differ diff --git a/edit_order_date/static/description/icon.png b/edit_order_date/static/description/icon.png new file mode 100644 index 000000000..aa66df6b0 Binary files /dev/null and b/edit_order_date/static/description/icon.png differ diff --git a/edit_order_date/static/description/index.html b/edit_order_date/static/description/index.html new file mode 100644 index 000000000..00d22c216 --- /dev/null +++ b/edit_order_date/static/description/index.html @@ -0,0 +1,562 @@ +
+ +
+ +
+
+ Odoo.sh +
+
+ Community +
+
+ Enterprise +
+
+
+ +
+
+
+ +

+ Edit Sale Order Date

+

Change the Sale Order Date for a Particular User Group

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

Explore This + Module

+
+ + + + +
+
+ +
+

Overview +

+
+
+
+ This module helps us to change the order date of the confirmed sale order. The access for editing + the order date can be restricted to a particular user group. The user who has no access to edit the + field got a user error while trying to change the field. +
+
+ + + +
+
+ +
+

Features +

+
+
+
+
+ + Can edit the order date of sale order. +
+
+ + This feature can be restricted to user groups +
+ +
+
+ +
+ + Available in Odoo 15.0 + Community, Odoo.sh and Enterprise. +
+ + +
+
+ + + +
+
+ +
+

Screenshots +

+
+
+
+ +
+

Set the user group +

+

First we have to set the user groups for editing the field 'Order Date'. For that + go to the General Settings. General Settings -> Users & Companies. Select the user who can edit the field. Under + the 'Technical' section enable the 'Edit Order Date' and 'SAVE' the record. +

+ +
+ +
+

Edit order date. +

+

After setting the user group go to sales and choose a confirmed sale order. The field 'Order Date' + that can be edited. After changing the date 'SAVE' the record.

+ +
+ +
+

User has no access. +

+

Make that any of the users has no access to edit the field. For that disables the 'Edit Order Date' + in Users & Companies.

+ +
+ +
+

Try to edit order date. +

+

Now login with the user who has no access to edit the field. Then open a confirmed sale order + and try to edit the field 'Order Date'.

+ +
+ +
+

User error. +

+

After editing the field try to save the record we can see a user error is raised. + So the field 'Order Date' can be edited only for the users who have access to edit it.

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

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

+
+
+
+
+
+
+
+ +
+
+
+ \ No newline at end of file