diff --git a/bulk_duplicate_records/README.rst b/bulk_duplicate_records/README.rst new file mode 100644 index 000000000..80142bfb2 --- /dev/null +++ b/bulk_duplicate_records/README.rst @@ -0,0 +1,44 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +Mass Duplicate Records +====================== + +Mass Duplicate Records + +Installation +============ +- www.odoo.com/documentation/16.0/setup/install.html +- Install our custom addon + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +* Developer: + Ammu@cybrosys + Version 15.0.1.0.0: Ammu@cybrosys + +Contacts +-------- +* Mail Contact : odoo@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: ``__ \ No newline at end of file diff --git a/bulk_duplicate_records/__init__.py b/bulk_duplicate_records/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/bulk_duplicate_records/__manifest__.py b/bulk_duplicate_records/__manifest__.py new file mode 100644 index 000000000..4807f43f5 --- /dev/null +++ b/bulk_duplicate_records/__manifest__.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2022-TODAY Cybrosys Technologies(). +# Author: Cybrosys Technologies () +# +# 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': 'Mass Duplicate Records For All Models', + 'version': '15.0.1.0.0', + 'summary': 'Allows to Duplicate Multiple Records from List/Tree View for all Models', + 'description': 'Allows to Duplicate Multiple Records from List/Tree View for all Models', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'depends': ['base'], + 'assets': { + 'web.assets_backend': [ + 'mass_duplicate_records/static/src/js/mass_list_controller.js', + 'mass_duplicate_records/static/src/js/mass_basic_controller.js', + 'mass_duplicate_records/static/src/js/mass_basic_model.js', + ], + }, + 'installable': True, + 'application': False, + 'auto_install': False, + 'license': 'LGPL-3', +} diff --git a/bulk_duplicate_records/doc/RELEASE_NOTES.md b/bulk_duplicate_records/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..a9eaad8dc --- /dev/null +++ b/bulk_duplicate_records/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 17.10.2022 +#### Version 15.0.1.0.0 +#### ADD +- Initial commit for Mass Duplication Records diff --git a/bulk_duplicate_records/static/description/assets/icons/check.png b/bulk_duplicate_records/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/bulk_duplicate_records/static/description/assets/icons/check.png differ diff --git a/bulk_duplicate_records/static/description/assets/icons/chevron.png b/bulk_duplicate_records/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/bulk_duplicate_records/static/description/assets/icons/chevron.png differ diff --git a/bulk_duplicate_records/static/description/assets/icons/cogs.png b/bulk_duplicate_records/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/bulk_duplicate_records/static/description/assets/icons/cogs.png differ diff --git a/bulk_duplicate_records/static/description/assets/icons/consultation.png b/bulk_duplicate_records/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/bulk_duplicate_records/static/description/assets/icons/consultation.png differ diff --git a/bulk_duplicate_records/static/description/assets/icons/ecom-black.png b/bulk_duplicate_records/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/bulk_duplicate_records/static/description/assets/icons/ecom-black.png differ diff --git a/bulk_duplicate_records/static/description/assets/icons/education-black.png b/bulk_duplicate_records/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/bulk_duplicate_records/static/description/assets/icons/education-black.png differ diff --git a/bulk_duplicate_records/static/description/assets/icons/hotel-black.png b/bulk_duplicate_records/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/bulk_duplicate_records/static/description/assets/icons/hotel-black.png differ diff --git a/bulk_duplicate_records/static/description/assets/icons/license.png b/bulk_duplicate_records/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/bulk_duplicate_records/static/description/assets/icons/license.png differ diff --git a/bulk_duplicate_records/static/description/assets/icons/lifebuoy.png b/bulk_duplicate_records/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/bulk_duplicate_records/static/description/assets/icons/lifebuoy.png differ diff --git a/bulk_duplicate_records/static/description/assets/icons/logo.png b/bulk_duplicate_records/static/description/assets/icons/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/bulk_duplicate_records/static/description/assets/icons/logo.png differ diff --git a/bulk_duplicate_records/static/description/assets/icons/manufacturing-black.png b/bulk_duplicate_records/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/bulk_duplicate_records/static/description/assets/icons/manufacturing-black.png differ diff --git a/bulk_duplicate_records/static/description/assets/icons/pos-black.png b/bulk_duplicate_records/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/bulk_duplicate_records/static/description/assets/icons/pos-black.png differ diff --git a/bulk_duplicate_records/static/description/assets/icons/puzzle.png b/bulk_duplicate_records/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/bulk_duplicate_records/static/description/assets/icons/puzzle.png differ diff --git a/bulk_duplicate_records/static/description/assets/icons/restaurant-black.png b/bulk_duplicate_records/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/bulk_duplicate_records/static/description/assets/icons/restaurant-black.png differ diff --git a/bulk_duplicate_records/static/description/assets/icons/service-black.png b/bulk_duplicate_records/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/bulk_duplicate_records/static/description/assets/icons/service-black.png differ diff --git a/bulk_duplicate_records/static/description/assets/icons/trading-black.png b/bulk_duplicate_records/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/bulk_duplicate_records/static/description/assets/icons/trading-black.png differ diff --git a/bulk_duplicate_records/static/description/assets/icons/training.png b/bulk_duplicate_records/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/bulk_duplicate_records/static/description/assets/icons/training.png differ diff --git a/bulk_duplicate_records/static/description/assets/icons/update.png b/bulk_duplicate_records/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/bulk_duplicate_records/static/description/assets/icons/update.png differ diff --git a/bulk_duplicate_records/static/description/assets/icons/user.png b/bulk_duplicate_records/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/bulk_duplicate_records/static/description/assets/icons/user.png differ diff --git a/bulk_duplicate_records/static/description/assets/icons/wrench.png b/bulk_duplicate_records/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/bulk_duplicate_records/static/description/assets/icons/wrench.png differ diff --git a/bulk_duplicate_records/static/description/assets/modules/budget_image.png b/bulk_duplicate_records/static/description/assets/modules/budget_image.png new file mode 100644 index 000000000..b50130c7d Binary files /dev/null and b/bulk_duplicate_records/static/description/assets/modules/budget_image.png differ diff --git a/bulk_duplicate_records/static/description/assets/modules/credit_image.png b/bulk_duplicate_records/static/description/assets/modules/credit_image.png new file mode 100644 index 000000000..3ad04ecfd Binary files /dev/null and b/bulk_duplicate_records/static/description/assets/modules/credit_image.png differ diff --git a/bulk_duplicate_records/static/description/assets/modules/employee_image.png b/bulk_duplicate_records/static/description/assets/modules/employee_image.png new file mode 100644 index 000000000..30ad58232 Binary files /dev/null and b/bulk_duplicate_records/static/description/assets/modules/employee_image.png differ diff --git a/bulk_duplicate_records/static/description/assets/modules/export_image.png b/bulk_duplicate_records/static/description/assets/modules/export_image.png new file mode 100644 index 000000000..492980ad0 Binary files /dev/null and b/bulk_duplicate_records/static/description/assets/modules/export_image.png differ diff --git a/bulk_duplicate_records/static/description/assets/modules/gantt_image.png b/bulk_duplicate_records/static/description/assets/modules/gantt_image.png new file mode 100644 index 000000000..1ae7cfe3b Binary files /dev/null and b/bulk_duplicate_records/static/description/assets/modules/gantt_image.png differ diff --git a/bulk_duplicate_records/static/description/assets/modules/quotation_image.png b/bulk_duplicate_records/static/description/assets/modules/quotation_image.png new file mode 100644 index 000000000..499b1a72f Binary files /dev/null and b/bulk_duplicate_records/static/description/assets/modules/quotation_image.png differ diff --git a/bulk_duplicate_records/static/description/assets/screenshots/hero.gif b/bulk_duplicate_records/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..fb8f39040 Binary files /dev/null and b/bulk_duplicate_records/static/description/assets/screenshots/hero.gif differ diff --git a/bulk_duplicate_records/static/description/assets/screenshots/mass1.png b/bulk_duplicate_records/static/description/assets/screenshots/mass1.png new file mode 100644 index 000000000..c74b42a1c Binary files /dev/null and b/bulk_duplicate_records/static/description/assets/screenshots/mass1.png differ diff --git a/bulk_duplicate_records/static/description/assets/screenshots/mass2.png b/bulk_duplicate_records/static/description/assets/screenshots/mass2.png new file mode 100644 index 000000000..d4dd2ff99 Binary files /dev/null and b/bulk_duplicate_records/static/description/assets/screenshots/mass2.png differ diff --git a/bulk_duplicate_records/static/description/banner.png b/bulk_duplicate_records/static/description/banner.png new file mode 100644 index 000000000..9294fb64d Binary files /dev/null and b/bulk_duplicate_records/static/description/banner.png differ diff --git a/bulk_duplicate_records/static/description/icon.png b/bulk_duplicate_records/static/description/icon.png new file mode 100644 index 000000000..aed3680a8 Binary files /dev/null and b/bulk_duplicate_records/static/description/icon.png differ diff --git a/bulk_duplicate_records/static/description/index.html b/bulk_duplicate_records/static/description/index.html new file mode 100644 index 000000000..1b3ef1652 --- /dev/null +++ b/bulk_duplicate_records/static/description/index.html @@ -0,0 +1,564 @@ +
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+ +
+
+
+
+ +
+
+
+

+ Mass Duplicate Records For All Models

+

+ Allows to Duplicate Multiple Records from List/Tree View for all Models +

+ +
+
+ + + +
+
+

+ Overview +

+
+ +
+

+ Mass duplication of records in any model.p> +

+

+ +
+ + +
+
+

+ Features +

+
+ +
+
+ +
+
+

+ It's very easy to use, and it's very time saving feature to users to duplicate everything in one single click instead of copy each record one by one.

+
+
+ +
+
+ +
+
+

+ Easy to duplicate single and multiple records by one click.

+
+
+ +
+
+ +
+
+

+ "Mass Duplicate" button for duplicating selected records.

+
+
+
+
+ +
+
+

+ Selection of more than record from list view.

+
+
+ +
+ +
+
+

+ Screenshots +

+
+ +
+

+ Mass Duplicate Button

+

+ After selecting the required records from the list view you can see 'Mass Duplicate' Button in the Action menu.Like every modules you can duplicate the records from list view.

+ +
+
+

+ Duplicated Records in the list view

+

+ Here we can see the original records with duplicated records in sale order.

+ +
+ +
+ +
+
+

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

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

Need Help?

+
+
+
+ + +
+ +
+ + +
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
+
+ + +
\ No newline at end of file diff --git a/bulk_duplicate_records/static/src/js/mass_basic_controller.js b/bulk_duplicate_records/static/src/js/mass_basic_controller.js new file mode 100644 index 000000000..8b4249285 --- /dev/null +++ b/bulk_duplicate_records/static/src/js/mass_basic_controller.js @@ -0,0 +1,11 @@ +odoo.define('mass_duplicate_.BasicController', function(require) { + "use strict"; + + var BasicController = require('web.BasicController'); + var menuDuplicateAction = BasicController.include({ + _duplicateRecords: function(ids) { + var self = this; + return self.model.duplicateRecords(ids, self.modelName); + }, + }); +}); \ No newline at end of file diff --git a/bulk_duplicate_records/static/src/js/mass_basic_model.js b/bulk_duplicate_records/static/src/js/mass_basic_model.js new file mode 100644 index 000000000..81023fc70 --- /dev/null +++ b/bulk_duplicate_records/static/src/js/mass_basic_model.js @@ -0,0 +1,26 @@ +odoo.define('mass_duplicate_records.BasicModel', function(require) { + "use strict"; + + var BasicModel = require('web.BasicModel'); + var session = require('web.session'); + var BasicModel = BasicModel.include({ + + duplicateRecords: function(recordIds, modelName) { + var self = this; + var records = _.map(recordIds, function(id) { + return self.localData[id]; + }); + var context = _.extend(records[0].getContext(), session.user_context); + for (var i = 0; i < records.length; i++) { + var new_records = this._rpc({ + model: modelName, + method: 'copy', + args: [records[i].res_id], + context: context, + }) + } + location.reload() + return new_records + }, + }); +}); \ No newline at end of file diff --git a/bulk_duplicate_records/static/src/js/mass_list_controller.js b/bulk_duplicate_records/static/src/js/mass_list_controller.js new file mode 100644 index 000000000..111bf056c --- /dev/null +++ b/bulk_duplicate_records/static/src/js/mass_list_controller.js @@ -0,0 +1,26 @@ +odoo.define('mass_duplicate_records.mass_duplicate', function(require) { + "use strict"; + + + var core = require('web.core'); + const ListController = require('web.ListController'); + var _t = core._t; + + const NewMenuItem = ListController.include({ + _onDuplicateSelectedRecords: function() { + this._duplicateRecords(this.selectedRecords); + }, + _getActionMenuItems: function(state) { + const props = this._super(...arguments); + const otherActionItems = []; + if (this.activeActions && props) { + props.items.other.unshift({ + description: _t("Mass Duplicate"), + callback: () => this._onDuplicateSelectedRecords() + }); + return props; + } + }, + + }); +}); \ No newline at end of file