diff --git a/versioning_in_sale_order/README.rst b/versioning_in_sale_order/README.rst new file mode 100755 index 000000000..966516a2a --- /dev/null +++ b/versioning_in_sale_order/README.rst @@ -0,0 +1,43 @@ +.. 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 + +Sale Order Versions +=================== +Module helps to create multiple versions of sale order and can choose the +version they needed.And after choosing the version all other versions get cancelled + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +======= +GENERAL PUBLIC LICENSE, Version 3 (AGPLv3) +(https://www.gnu.org/licenses/agpl-3.0-standalone.html) + +Credits +------- +Developer: (V14) Mohammed Irfan T , 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/versioning_in_sale_order/__init__.py b/versioning_in_sale_order/__init__.py new file mode 100644 index 000000000..9356c657f --- /dev/null +++ b/versioning_in_sale_order/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Mohammed Irfan T (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/versioning_in_sale_order/__manifest__.py b/versioning_in_sale_order/__manifest__.py new file mode 100644 index 000000000..842d691f9 --- /dev/null +++ b/versioning_in_sale_order/__manifest__.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Mohammed Irfan T (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': 'Sale Order Versions', + 'version': '14.0.1.0.0', + 'category': 'Sales', + 'summary': 'For creating multiple sale order versions', + 'description': """Module helps to create multiple versions of sale order + and can choose the version they needed.And after choosing the version all + other versions get cancelled""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'depends': ['sale_management'], + 'data': [ + 'views/sale_order_views.xml', + ], + 'images': ['static/description/banner.png'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/versioning_in_sale_order/doc/RELEASE_NOTES.md b/versioning_in_sale_order/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..2904d5c8a --- /dev/null +++ b/versioning_in_sale_order/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 04.11.2023 +#### Version 14.0.1.0.0 +#### ADD + +- Initial commit for Sale Order Versions diff --git a/versioning_in_sale_order/models/__init__.py b/versioning_in_sale_order/models/__init__.py new file mode 100644 index 000000000..97c383bcb --- /dev/null +++ b/versioning_in_sale_order/models/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Mohammed Irfan T (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 sale_order diff --git a/versioning_in_sale_order/models/sale_order.py b/versioning_in_sale_order/models/sale_order.py new file mode 100644 index 000000000..daa00c922 --- /dev/null +++ b/versioning_in_sale_order/models/sale_order.py @@ -0,0 +1,86 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Mohammed Irfan T (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 SaleOrder(models.Model): + """Inherits Sales to create sale order versions""" + _inherit = "sale.order" + + is_version = fields.Boolean(string="Is Version", + help="For checking version or not") + version_count = fields.Integer(string="Sale Version Count", + compute='_compute_version_count', + help="Count of version created") + current_version_id = fields.Many2one("sale.order", + string='Current version', + help="For creating versions") + version_ids = fields.One2many("sale.order", string='Version', + inverse_name="current_version_id", + help="Versions created") + state = fields.Selection(selection_add=[('revised', 'Revised')], + string='State', help='State of the sale order') + + def action_create_versions(self): + """For creating the versions of the sale order.""" + sale_order_copy_id = self.copy() + sale_order_copy_id.is_version = True + sale_order_copy_id.name = "%s-%s" % ( + self.name, str(len(self.version_ids) + 1)) + sale_order_copy_id.state = 'revised' + self.write({'version_ids': [(4, sale_order_copy_id.id)]}) + + @api.depends('version_ids') + def _compute_version_count(self): + """For calculating the number of versions created.""" + for sale in self: + sale.version_count = len(sale.version_ids) + + def action_view_versions(self): + """Action for viewing versions""" + return { + "type": "ir.actions.act_window", + "view_mode": "kanban,tree,form", + "name": _("Sale Order Versions"), + "res_model": self._name, + "domain": [('id', 'in', self.version_ids.ids)], + "target": "current" + } + + def action_restore(self): + """Restore the current version of a sale and cancel all other versions + This method restores the current version of a sale to the 'draft' + state and cancels all other versions of the sale by setting their + state to 'cancel'. + :return: None""" + self.write({'state': 'draft'}) + for version in self.current_version_id.version_ids: + if version != self: + version.write({'state': 'cancel'}) + + def set_to_revise(self): + """Set the state of the record to 'revised'. + This method updates the state of the record to 'revised'. It is + typically used to indicate that the record has undergone a revision + or modification. + :return: None""" + self.write({'state': 'revised'}) diff --git a/versioning_in_sale_order/static/description/assets/icons/check.png b/versioning_in_sale_order/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/versioning_in_sale_order/static/description/assets/icons/check.png differ diff --git a/versioning_in_sale_order/static/description/assets/icons/chevron.png b/versioning_in_sale_order/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/versioning_in_sale_order/static/description/assets/icons/chevron.png differ diff --git a/versioning_in_sale_order/static/description/assets/icons/cogs.png b/versioning_in_sale_order/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/versioning_in_sale_order/static/description/assets/icons/cogs.png differ diff --git a/versioning_in_sale_order/static/description/assets/icons/consultation.png b/versioning_in_sale_order/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/versioning_in_sale_order/static/description/assets/icons/consultation.png differ diff --git a/versioning_in_sale_order/static/description/assets/icons/ecom-black.png b/versioning_in_sale_order/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/versioning_in_sale_order/static/description/assets/icons/ecom-black.png differ diff --git a/versioning_in_sale_order/static/description/assets/icons/education-black.png b/versioning_in_sale_order/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/versioning_in_sale_order/static/description/assets/icons/education-black.png differ diff --git a/versioning_in_sale_order/static/description/assets/icons/hotel-black.png b/versioning_in_sale_order/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/versioning_in_sale_order/static/description/assets/icons/hotel-black.png differ diff --git a/versioning_in_sale_order/static/description/assets/icons/license.png b/versioning_in_sale_order/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/versioning_in_sale_order/static/description/assets/icons/license.png differ diff --git a/versioning_in_sale_order/static/description/assets/icons/lifebuoy.png b/versioning_in_sale_order/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/versioning_in_sale_order/static/description/assets/icons/lifebuoy.png differ diff --git a/versioning_in_sale_order/static/description/assets/icons/manufacturing-black.png b/versioning_in_sale_order/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/versioning_in_sale_order/static/description/assets/icons/manufacturing-black.png differ diff --git a/versioning_in_sale_order/static/description/assets/icons/pos-black.png b/versioning_in_sale_order/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/versioning_in_sale_order/static/description/assets/icons/pos-black.png differ diff --git a/versioning_in_sale_order/static/description/assets/icons/puzzle.png b/versioning_in_sale_order/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/versioning_in_sale_order/static/description/assets/icons/puzzle.png differ diff --git a/versioning_in_sale_order/static/description/assets/icons/restaurant-black.png b/versioning_in_sale_order/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/versioning_in_sale_order/static/description/assets/icons/restaurant-black.png differ diff --git a/versioning_in_sale_order/static/description/assets/icons/service-black.png b/versioning_in_sale_order/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/versioning_in_sale_order/static/description/assets/icons/service-black.png differ diff --git a/versioning_in_sale_order/static/description/assets/icons/trading-black.png b/versioning_in_sale_order/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/versioning_in_sale_order/static/description/assets/icons/trading-black.png differ diff --git a/versioning_in_sale_order/static/description/assets/icons/training.png b/versioning_in_sale_order/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/versioning_in_sale_order/static/description/assets/icons/training.png differ diff --git a/versioning_in_sale_order/static/description/assets/icons/update.png b/versioning_in_sale_order/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/versioning_in_sale_order/static/description/assets/icons/update.png differ diff --git a/versioning_in_sale_order/static/description/assets/icons/user.png b/versioning_in_sale_order/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/versioning_in_sale_order/static/description/assets/icons/user.png differ diff --git a/versioning_in_sale_order/static/description/assets/icons/wrench.png b/versioning_in_sale_order/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/versioning_in_sale_order/static/description/assets/icons/wrench.png differ diff --git a/versioning_in_sale_order/static/description/assets/misc/categories.png b/versioning_in_sale_order/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/versioning_in_sale_order/static/description/assets/misc/categories.png differ diff --git a/versioning_in_sale_order/static/description/assets/misc/check-box.png b/versioning_in_sale_order/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/versioning_in_sale_order/static/description/assets/misc/check-box.png differ diff --git a/versioning_in_sale_order/static/description/assets/misc/compass.png b/versioning_in_sale_order/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/versioning_in_sale_order/static/description/assets/misc/compass.png differ diff --git a/versioning_in_sale_order/static/description/assets/misc/corporate.png b/versioning_in_sale_order/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/versioning_in_sale_order/static/description/assets/misc/corporate.png differ diff --git a/versioning_in_sale_order/static/description/assets/misc/customer-support.png b/versioning_in_sale_order/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/versioning_in_sale_order/static/description/assets/misc/customer-support.png differ diff --git a/versioning_in_sale_order/static/description/assets/misc/cybrosys-logo.png b/versioning_in_sale_order/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/versioning_in_sale_order/static/description/assets/misc/cybrosys-logo.png differ diff --git a/versioning_in_sale_order/static/description/assets/misc/features.png b/versioning_in_sale_order/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/versioning_in_sale_order/static/description/assets/misc/features.png differ diff --git a/versioning_in_sale_order/static/description/assets/misc/logo.png b/versioning_in_sale_order/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/versioning_in_sale_order/static/description/assets/misc/logo.png differ diff --git a/versioning_in_sale_order/static/description/assets/misc/pictures.png b/versioning_in_sale_order/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/versioning_in_sale_order/static/description/assets/misc/pictures.png differ diff --git a/versioning_in_sale_order/static/description/assets/misc/pie-chart.png b/versioning_in_sale_order/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/versioning_in_sale_order/static/description/assets/misc/pie-chart.png differ diff --git a/versioning_in_sale_order/static/description/assets/misc/right-arrow.png b/versioning_in_sale_order/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/versioning_in_sale_order/static/description/assets/misc/right-arrow.png differ diff --git a/versioning_in_sale_order/static/description/assets/misc/star.png b/versioning_in_sale_order/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/versioning_in_sale_order/static/description/assets/misc/star.png differ diff --git a/versioning_in_sale_order/static/description/assets/misc/support.png b/versioning_in_sale_order/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/versioning_in_sale_order/static/description/assets/misc/support.png differ diff --git a/versioning_in_sale_order/static/description/assets/misc/whatsapp.png b/versioning_in_sale_order/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/versioning_in_sale_order/static/description/assets/misc/whatsapp.png differ diff --git a/versioning_in_sale_order/static/description/assets/modules/barcode_scanning.png b/versioning_in_sale_order/static/description/assets/modules/barcode_scanning.png new file mode 100644 index 000000000..4be2248a4 Binary files /dev/null and b/versioning_in_sale_order/static/description/assets/modules/barcode_scanning.png differ diff --git a/versioning_in_sale_order/static/description/assets/modules/delivery_status.png b/versioning_in_sale_order/static/description/assets/modules/delivery_status.png new file mode 100644 index 000000000..6122a2c42 Binary files /dev/null and b/versioning_in_sale_order/static/description/assets/modules/delivery_status.png differ diff --git a/versioning_in_sale_order/static/description/assets/modules/dynamic_product.png b/versioning_in_sale_order/static/description/assets/modules/dynamic_product.png new file mode 100644 index 000000000..8189b153b Binary files /dev/null and b/versioning_in_sale_order/static/description/assets/modules/dynamic_product.png differ diff --git a/versioning_in_sale_order/static/description/assets/modules/multi_warehouse.png b/versioning_in_sale_order/static/description/assets/modules/multi_warehouse.png new file mode 100644 index 000000000..92bb04f71 Binary files /dev/null and b/versioning_in_sale_order/static/description/assets/modules/multi_warehouse.png differ diff --git a/versioning_in_sale_order/static/description/assets/modules/sale_discount.png b/versioning_in_sale_order/static/description/assets/modules/sale_discount.png new file mode 100644 index 000000000..924a65196 Binary files /dev/null and b/versioning_in_sale_order/static/description/assets/modules/sale_discount.png differ diff --git a/versioning_in_sale_order/static/description/assets/modules/sale_report.png b/versioning_in_sale_order/static/description/assets/modules/sale_report.png new file mode 100644 index 000000000..d881f99c6 Binary files /dev/null and b/versioning_in_sale_order/static/description/assets/modules/sale_report.png differ diff --git a/versioning_in_sale_order/static/description/assets/screenshots/1.png b/versioning_in_sale_order/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..5ee11fe58 Binary files /dev/null and b/versioning_in_sale_order/static/description/assets/screenshots/1.png differ diff --git a/versioning_in_sale_order/static/description/assets/screenshots/2.png b/versioning_in_sale_order/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..1538108e6 Binary files /dev/null and b/versioning_in_sale_order/static/description/assets/screenshots/2.png differ diff --git a/versioning_in_sale_order/static/description/assets/screenshots/3.png b/versioning_in_sale_order/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..1361834e7 Binary files /dev/null and b/versioning_in_sale_order/static/description/assets/screenshots/3.png differ diff --git a/versioning_in_sale_order/static/description/assets/screenshots/4.png b/versioning_in_sale_order/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..25a3eeaa7 Binary files /dev/null and b/versioning_in_sale_order/static/description/assets/screenshots/4.png differ diff --git a/versioning_in_sale_order/static/description/assets/screenshots/5.png b/versioning_in_sale_order/static/description/assets/screenshots/5.png new file mode 100644 index 000000000..16dc6154a Binary files /dev/null and b/versioning_in_sale_order/static/description/assets/screenshots/5.png differ diff --git a/versioning_in_sale_order/static/description/assets/screenshots/6.png b/versioning_in_sale_order/static/description/assets/screenshots/6.png new file mode 100644 index 000000000..1aab06d5c Binary files /dev/null and b/versioning_in_sale_order/static/description/assets/screenshots/6.png differ diff --git a/versioning_in_sale_order/static/description/assets/screenshots/7.png b/versioning_in_sale_order/static/description/assets/screenshots/7.png new file mode 100644 index 000000000..0f5981391 Binary files /dev/null and b/versioning_in_sale_order/static/description/assets/screenshots/7.png differ diff --git a/versioning_in_sale_order/static/description/assets/screenshots/8.png b/versioning_in_sale_order/static/description/assets/screenshots/8.png new file mode 100644 index 000000000..814587bc9 Binary files /dev/null and b/versioning_in_sale_order/static/description/assets/screenshots/8.png differ diff --git a/versioning_in_sale_order/static/description/assets/screenshots/9.png b/versioning_in_sale_order/static/description/assets/screenshots/9.png new file mode 100644 index 000000000..9f8574b15 Binary files /dev/null and b/versioning_in_sale_order/static/description/assets/screenshots/9.png differ diff --git a/versioning_in_sale_order/static/description/assets/screenshots/hero.gif b/versioning_in_sale_order/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..6e781047c Binary files /dev/null and b/versioning_in_sale_order/static/description/assets/screenshots/hero.gif differ diff --git a/versioning_in_sale_order/static/description/banner.png b/versioning_in_sale_order/static/description/banner.png new file mode 100644 index 000000000..3cbcac070 Binary files /dev/null and b/versioning_in_sale_order/static/description/banner.png differ diff --git a/versioning_in_sale_order/static/description/icon.png b/versioning_in_sale_order/static/description/icon.png new file mode 100644 index 000000000..8dfaf20f9 Binary files /dev/null and b/versioning_in_sale_order/static/description/icon.png differ diff --git a/versioning_in_sale_order/static/description/index.html b/versioning_in_sale_order/static/description/index.html new file mode 100644 index 000000000..9ecf4fe8b --- /dev/null +++ b/versioning_in_sale_order/static/description/index.html @@ -0,0 +1,646 @@ +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ +
+
+
+ +

+ Sale Order Versions

+

Allows To Create + Multiple Versions Of A Sale Order.

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

Explore This + Module

+
+ + + +
+
+ +
+

Overview +

+
+
+
+ This module helps to create multiple versions of a sale order. Users can confirm one of the versions and other + sale order versions will be canceled. +
+
+ + +
+
+ +
+

+ Features +

+
+
+
+
+ + Community & + Enterprise and Odoo.sh Support. +
+
+ + Create multiple versions of a sale order. +
+ +
+ + Sequence number of versions contains the version number. +
+ +
+
+
+ + Confirm one of the version or main. +
+
+ + The other versions will be cancelled. +
+
+ + Make changes on the versions. +
+
+
+ + +
+
+ +
+

+ Screenshots +

+
+
+
+
+

+ We can see the "CREATE VERSION" button in Sale module. +

+

+ Create a sale order and create a version for the sale order.

+ +
+ +
+

+ Smart Button for created versions. +

+

+ The created version can view in the versions smart button.

+ +
+ +
+

+ The versions are collected inside the tab. The sequence number + contains the version number.

+ +
+
+

+ Form view of versions. +

+

+ We can see a "RESTORE" button. If we want to restore the version + we can use RESTORE button.

+ +
+
+

+ We can see a "SET TO REVISED" Button. If we want to revise the + version we can use this button. +

+ +
+

+ By clicking SET TO REVISED button. +

+

+ The sale order will be gone to revised state.

+ +
+

+ By confirming the version sale order,Sale order will create.Rest of + the sale order will go to cancelled order. +

+ +
+ +
+

+ In tree view we can see the main sale order. +

+ +
+
+

+ Confirmed sale order will see in Orders. +

+ +
+
+ + +
+
+

Suggested 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/versioning_in_sale_order/views/sale_order_views.xml b/versioning_in_sale_order/views/sale_order_views.xml new file mode 100644 index 000000000..e69d6bd87 --- /dev/null +++ b/versioning_in_sale_order/views/sale_order_views.xml @@ -0,0 +1,59 @@ + + + + + + sale.order.view.form.inherit.versioning.in.sale.order + + sale.order + + + + + + + + + + + + + + {'invisible': ['|',('state', 'not in', + 'cancel'),('is_version', + '=', True)]} + + + + + + + + [('state', '!=', + 'cancel')] + + +