diff --git a/progress_bar_widget/README.rst b/progress_bar_widget/README.rst new file mode 100644 index 000000000..df370a2d3 --- /dev/null +++ b/progress_bar_widget/README.rst @@ -0,0 +1,55 @@ +PROGRESS BAR WIDGET +==================== +New Progress Bar Widget for Odoo 15. + +Credits +------- +* Cybrosys Techno Solutions + +Usage +===== +You need to declare a float field. + progress = fields.Float(string='Progress', default=0.0) + +In the view declaration, + ... + +
+ ... + + ... + +
+ ... + +Installation +============ + - https://www.odoo.com/documentation/15.0/setup/install.html + - Install our custom addon + +License +------- +General Public License, Version 3 (LGPL v3). +https://www.odoo.com/documentation/user/15.0/legal/licenses/licenses.html + +Company +------- +* Cybrosys Techno Solutions + +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 +========== +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit https://www.cybrosys.com + +Further information +=================== +HTML Description: ``__ \ No newline at end of file diff --git a/progress_bar_widget/__manifest__.py b/progress_bar_widget/__manifest__.py new file mode 100644 index 000000000..060113beb --- /dev/null +++ b/progress_bar_widget/__manifest__.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2022-TODAY Cybrosys Technologies(). +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################### +{ + 'name': "Progress Bar Widget", + 'description': """Progress Bar Widget For Odoo 15""", + 'summary': "Progress Bar Widget For Odoo 15", + 'category': 'Tools', + 'version': '15.0.1.0.0', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'depends': ['web'], + 'assets': { + 'web.assets_backend': { + '/progress_bar_widget/static/src/css/progress_bar_widget.css', + '/progress_bar_widget/static/src/js/progress_bar_widget.js', + }, + 'web.assets_qweb': { + '/progress_bar_widget/static/src/xml/progress_bar_widget.xml', + }, + }, + 'images': ['static/description/banner.png'], + 'license': 'LGPL-3', + 'installable': True, + 'application': False, + 'auto_install': False, +} diff --git a/progress_bar_widget/doc/RELEASE_NOTES.md b/progress_bar_widget/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..db641a43c --- /dev/null +++ b/progress_bar_widget/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 12.08.2022 +#### Version 15.0.1.0.0 +##### ADD +- Initial commit for Progress Bar Widget. diff --git a/progress_bar_widget/static/description/assets/icons/check.png b/progress_bar_widget/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/progress_bar_widget/static/description/assets/icons/check.png differ diff --git a/progress_bar_widget/static/description/assets/icons/chevron.png b/progress_bar_widget/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/progress_bar_widget/static/description/assets/icons/chevron.png differ diff --git a/progress_bar_widget/static/description/assets/icons/cogs.png b/progress_bar_widget/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/progress_bar_widget/static/description/assets/icons/cogs.png differ diff --git a/progress_bar_widget/static/description/assets/icons/consultation.png b/progress_bar_widget/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/progress_bar_widget/static/description/assets/icons/consultation.png differ diff --git a/progress_bar_widget/static/description/assets/icons/ecom-black.png b/progress_bar_widget/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/progress_bar_widget/static/description/assets/icons/ecom-black.png differ diff --git a/progress_bar_widget/static/description/assets/icons/education-black.png b/progress_bar_widget/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/progress_bar_widget/static/description/assets/icons/education-black.png differ diff --git a/progress_bar_widget/static/description/assets/icons/hotel-black.png b/progress_bar_widget/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/progress_bar_widget/static/description/assets/icons/hotel-black.png differ diff --git a/progress_bar_widget/static/description/assets/icons/license.png b/progress_bar_widget/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/progress_bar_widget/static/description/assets/icons/license.png differ diff --git a/progress_bar_widget/static/description/assets/icons/lifebuoy.png b/progress_bar_widget/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/progress_bar_widget/static/description/assets/icons/lifebuoy.png differ diff --git a/progress_bar_widget/static/description/assets/icons/logo.png b/progress_bar_widget/static/description/assets/icons/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/progress_bar_widget/static/description/assets/icons/logo.png differ diff --git a/progress_bar_widget/static/description/assets/icons/manufacturing-black.png b/progress_bar_widget/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/progress_bar_widget/static/description/assets/icons/manufacturing-black.png differ diff --git a/progress_bar_widget/static/description/assets/icons/pos-black.png b/progress_bar_widget/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/progress_bar_widget/static/description/assets/icons/pos-black.png differ diff --git a/progress_bar_widget/static/description/assets/icons/puzzle.png b/progress_bar_widget/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/progress_bar_widget/static/description/assets/icons/puzzle.png differ diff --git a/progress_bar_widget/static/description/assets/icons/restaurant-black.png b/progress_bar_widget/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/progress_bar_widget/static/description/assets/icons/restaurant-black.png differ diff --git a/progress_bar_widget/static/description/assets/icons/service-black.png b/progress_bar_widget/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/progress_bar_widget/static/description/assets/icons/service-black.png differ diff --git a/progress_bar_widget/static/description/assets/icons/trading-black.png b/progress_bar_widget/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/progress_bar_widget/static/description/assets/icons/trading-black.png differ diff --git a/progress_bar_widget/static/description/assets/icons/training.png b/progress_bar_widget/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/progress_bar_widget/static/description/assets/icons/training.png differ diff --git a/progress_bar_widget/static/description/assets/icons/update.png b/progress_bar_widget/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/progress_bar_widget/static/description/assets/icons/update.png differ diff --git a/progress_bar_widget/static/description/assets/icons/user.png b/progress_bar_widget/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/progress_bar_widget/static/description/assets/icons/user.png differ diff --git a/progress_bar_widget/static/description/assets/icons/wrench.png b/progress_bar_widget/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/progress_bar_widget/static/description/assets/icons/wrench.png differ diff --git a/progress_bar_widget/static/description/assets/modules/budget_image.png b/progress_bar_widget/static/description/assets/modules/budget_image.png new file mode 100644 index 000000000..b50130c7d Binary files /dev/null and b/progress_bar_widget/static/description/assets/modules/budget_image.png differ diff --git a/progress_bar_widget/static/description/assets/modules/credit_image.png b/progress_bar_widget/static/description/assets/modules/credit_image.png new file mode 100644 index 000000000..3ad04ecfd Binary files /dev/null and b/progress_bar_widget/static/description/assets/modules/credit_image.png differ diff --git a/progress_bar_widget/static/description/assets/modules/employee_image.png b/progress_bar_widget/static/description/assets/modules/employee_image.png new file mode 100644 index 000000000..30ad58232 Binary files /dev/null and b/progress_bar_widget/static/description/assets/modules/employee_image.png differ diff --git a/progress_bar_widget/static/description/assets/modules/export_image.png b/progress_bar_widget/static/description/assets/modules/export_image.png new file mode 100644 index 000000000..492980ad0 Binary files /dev/null and b/progress_bar_widget/static/description/assets/modules/export_image.png differ diff --git a/progress_bar_widget/static/description/assets/modules/gantt_image.png b/progress_bar_widget/static/description/assets/modules/gantt_image.png new file mode 100644 index 000000000..1ae7cfe3b Binary files /dev/null and b/progress_bar_widget/static/description/assets/modules/gantt_image.png differ diff --git a/progress_bar_widget/static/description/assets/modules/quotation_image.png b/progress_bar_widget/static/description/assets/modules/quotation_image.png new file mode 100644 index 000000000..499b1a72f Binary files /dev/null and b/progress_bar_widget/static/description/assets/modules/quotation_image.png differ diff --git a/progress_bar_widget/static/description/assets/screenshots/hero.gif b/progress_bar_widget/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..02d7ae604 Binary files /dev/null and b/progress_bar_widget/static/description/assets/screenshots/hero.gif differ diff --git a/progress_bar_widget/static/description/assets/screenshots/widget_code.png b/progress_bar_widget/static/description/assets/screenshots/widget_code.png new file mode 100644 index 000000000..9934117c8 Binary files /dev/null and b/progress_bar_widget/static/description/assets/screenshots/widget_code.png differ diff --git a/progress_bar_widget/static/description/assets/screenshots/widget_view.png b/progress_bar_widget/static/description/assets/screenshots/widget_view.png new file mode 100644 index 000000000..2ced5d60e Binary files /dev/null and b/progress_bar_widget/static/description/assets/screenshots/widget_view.png differ diff --git a/progress_bar_widget/static/description/banner.png b/progress_bar_widget/static/description/banner.png new file mode 100644 index 000000000..e622370e7 Binary files /dev/null and b/progress_bar_widget/static/description/banner.png differ diff --git a/progress_bar_widget/static/description/icon.png b/progress_bar_widget/static/description/icon.png new file mode 100644 index 000000000..bc6d38823 Binary files /dev/null and b/progress_bar_widget/static/description/icon.png differ diff --git a/progress_bar_widget/static/description/index.html b/progress_bar_widget/static/description/index.html new file mode 100644 index 000000000..c86a63e69 --- /dev/null +++ b/progress_bar_widget/static/description/index.html @@ -0,0 +1,546 @@ + + + +
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+ +
+
+
+
+ +
+
+
+

+ Progress Bar Widget

+

+ New progress bar widget for Odoo 15 +

+ +
+
+ + +
+
+

+ Overview +

+
+ +
+

+ This module creates a new widget for the progressbar. + Users can use widget="progress_bar_widget" for applying this widget. + This widgets work with the progress float fields. +

+
+
+
+
+

+ Features +

+
+ +
+
+ +
+
+

+ Widget for the progressbar.

+
+
+
+
+
+ +
+
+

+ Using widget="progress_bar_widget" for applying widget on a float field.

+
+
+ +
+
+
+

+ Screenshots +

+
+
+

+ Add widget="progress_bar_widget" code into a field.

+ +
+ +
+

+ New Progressbar view

+ +
+
+ +
+
+

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?

+
+
+
+ + +
+ +
+ +
+ +
+ WhatsApp +
+
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
+
+ + +
+ \ No newline at end of file diff --git a/progress_bar_widget/static/src/css/progress_bar_widget.css b/progress_bar_widget/static/src/css/progress_bar_widget.css new file mode 100644 index 000000000..c175c8058 --- /dev/null +++ b/progress_bar_widget/static/src/css/progress_bar_widget.css @@ -0,0 +1,53 @@ +.progress_bar .pro-bar { + background: hsl(0, 0%, 97%); + box-shadow: 0 1px 2px hsla(0, 0%, 0%, 0.1) inset; + height: 4px; + width: 200px; + margin-bottom: 15px; + margin-top: 10px; + position: relative; +} +.progress_bar .progress_bar_title{ + color: hsl(218, 4%, 50%); + font-size: 15px; + font-weight: 300; + position: relative; + top: -28px; + z-index: 1; +} +.progress_bar .progress_number { + float: right; + margin-top: -6px; + margin-right: -50px; +} +.progress_bar .progress-bar-inner { + background-color: green; + display: block; + width: 0; + height: 100%; + position: absolute; + top: 0; + left: 0; + transition: width 1s linear 0s; +} +.progress_bar .progress-bar-inner:before { + content: ""; + background-color: hsl(0, 0%, 100%); + border-radius: 50%; + width: 4px; + height: 4px; + position: absolute; + right: 1px; + top: 0; + z-index: 1; +} +.progress_bar .progress-bar-inner:after { + content: ""; + width: 14px; + height: 14px; + background-color: inherit; + border-radius: 50%; + position: absolute; + right: -4px; + top: -5px; +} \ No newline at end of file diff --git a/progress_bar_widget/static/src/js/progress_bar_widget.js b/progress_bar_widget/static/src/js/progress_bar_widget.js new file mode 100644 index 000000000..861ff316b --- /dev/null +++ b/progress_bar_widget/static/src/js/progress_bar_widget.js @@ -0,0 +1,22 @@ +/** @odoo-module **/ +import AbstractField from 'web.AbstractField'; +import fieldRegistry from 'web.field_registry'; + +var ProgressBarWidget = AbstractField.extend({ + template: "ProgressBarWidget", + + _render: function() { + var value = this.value; + var max_value = 100; + value = value || 0; + var widthComplete; + if (value <= max_value){ + widthComplete = parseInt(value/max_value * 100); + }else{ + widthComplete = 100; + } + this.$('.progress_number').text(widthComplete.toString() + '%'); + this.$('.progress-bar-inner').css('width', widthComplete + '%'); + }, +}) +fieldRegistry.add('progress_bar_widget', ProgressBarWidget); \ No newline at end of file diff --git a/progress_bar_widget/static/src/xml/progress_bar_widget.xml b/progress_bar_widget/static/src/xml/progress_bar_widget.xml new file mode 100644 index 000000000..0cced2538 --- /dev/null +++ b/progress_bar_widget/static/src/xml/progress_bar_widget.xml @@ -0,0 +1,15 @@ + + + +
+
+
+ + + + +
+
+
+
+
\ No newline at end of file