diff --git a/delivery_date_sale_order_line/README.rst b/delivery_date_sale_order_line/README.rst new file mode 100755 index 000000000..5ea48e65c --- /dev/null +++ b/delivery_date_sale_order_line/README.rst @@ -0,0 +1,44 @@ +.. image:: https://img.shields.io/badge/licence-LGPL--3-blue.svg + :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 +Sale Delivery by Date +===================== +* Sale Delivery by Date module for Odoo 15. + +Installation +============ + - 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 `__ + +Credits +------- +* Version 15 : Fathima Mufeeda PP @ 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 +========== +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit https://www.cybrosys.com + +Further information +=================== +HTML Description: ``__ + diff --git a/delivery_date_sale_order_line/__init__.py b/delivery_date_sale_order_line/__init__.py new file mode 100644 index 000000000..7b2c59c1c --- /dev/null +++ b/delivery_date_sale_order_line/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# 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/delivery_date_sale_order_line/__manifest__.py b/delivery_date_sale_order_line/__manifest__.py new file mode 100644 index 000000000..2a70eb04c --- /dev/null +++ b/delivery_date_sale_order_line/__manifest__.py @@ -0,0 +1,47 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# 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': "Sale Delivery by Date", + 'description': """ + Adding delivery date in the sale order line and the delivery creatd based on it. + """, + 'summary': """ + Delivery date in the sale order. """, + 'author': "Cybrosys Techno Solutions", + 'company': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'maintainer': "Cybrosys Techno Solutions", + 'category': 'Sales', + 'version': '15.0.1.0.0', + 'depends': ['base', 'stock', 'sale_management'], + 'data': [ + 'views/sale_order_views.xml' + ], + 'images': [ + 'static/description/banner.png', + ], + 'license': 'LGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, + +} diff --git a/delivery_date_sale_order_line/doc/RELEASE_NOTES.md b/delivery_date_sale_order_line/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..e6ddfae17 --- /dev/null +++ b/delivery_date_sale_order_line/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 10.04.2023 +#### Version 15.0.1.0.0 +#### ADD +- Initial commit for Sale Delivery by Date diff --git a/delivery_date_sale_order_line/models/__init__.py b/delivery_date_sale_order_line/models/__init__.py new file mode 100644 index 000000000..286f3cb8d --- /dev/null +++ b/delivery_date_sale_order_line/models/__init__.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# 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_line +from . import stock_move +from . import stock_picking +from . import stock_rule diff --git a/delivery_date_sale_order_line/models/sale_order_line.py b/delivery_date_sale_order_line/models/sale_order_line.py new file mode 100644 index 000000000..2dc20c28a --- /dev/null +++ b/delivery_date_sale_order_line/models/sale_order_line.py @@ -0,0 +1,41 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# 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 + + +class SaleOrderLine(models.Model): + """Inheriting sale order line""" + _inherit = 'sale.order.line' + + delivery_datetime = fields.Datetime(string='Delivery Date', + help='Delivery date for the product') + + def _prepare_procurement_values(self, group_id=False): + """ Prepare specific key for moves or other components that will be + created from a stock rule coming from a sale order line. Here added + delivery_datetime custom key in to move. + """ + res = super(SaleOrderLine, self)._prepare_procurement_values(group_id) + res['delivery_datetime'] = self.delivery_datetime + if self.delivery_datetime: + res['date_planned'] = self.delivery_datetime + return res diff --git a/delivery_date_sale_order_line/models/stock_move.py b/delivery_date_sale_order_line/models/stock_move.py new file mode 100644 index 000000000..13526be67 --- /dev/null +++ b/delivery_date_sale_order_line/models/stock_move.py @@ -0,0 +1,81 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# 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 + + +class StockMove(models.Model): + """Inheriting stock move.""" + _inherit = 'stock.move' + + delivery_datetime = fields.Datetime(string='Delivery Date', + help='Delivery date for the product') + + def _get_new_picking_values(self): + """ added the custom field in this function which is return create + values for new picking that will be linked with group of moves in self. + """ + res = super(StockMove, self)._get_new_picking_values() + if res.get('picking_type_id'): + picking_type = self.env['stock.picking.type'].browse( + res.get('picking_type_id')) + if picking_type.code == 'outgoing': + res['scheduled_date'] = self.delivery_datetime + res['delivery_datetime'] = self.delivery_datetime + return res + def _search_picking(self, move): + """To add delivery date to the corresponding move.""" + domain = [ + ('group_id', '=', move.group_id.id), + ('location_id', '=', move.location_id.id), + ('location_dest_id', '=', move.location_dest_id.id), + ('picking_type_id', '=', move.picking_type_id.id), + ('printed', '=', False), + ('state', 'in', ['draft', 'confirmed', 'waiting', + 'partially_available', 'assigned'])] + if move.delivery_datetime: + domain += [('delivery_datetime', '=', move.delivery_datetime)] + return self.env['stock.picking'].search(domain, limit=1) + + def _assign_picking(self): + """ Try to assign the moves to an existing picking that has not been + reserved yet and has the same procurement group, locations and picking + type (moves should already have them identical). Otherwise, create a + new picking to assign them to. + """ + for move in self: + recompute = False + picking = self._search_picking(move) + if picking: + if picking.partner_id.id != move.partner_id.id or \ + picking.origin != move.origin: + picking.write({ + 'partner_id': False, + 'origin': False, + }) + else: + recompute = True + picking = picking.create(move._get_new_picking_values()) + move.write({'picking_id': picking.id}) + move._assign_picking_post_process(new=recompute) + if recompute: + move.recompute() + return True diff --git a/delivery_date_sale_order_line/models/stock_picking.py b/delivery_date_sale_order_line/models/stock_picking.py new file mode 100644 index 000000000..0e21f23c0 --- /dev/null +++ b/delivery_date_sale_order_line/models/stock_picking.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# 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 + + +class StockPicking(models.Model): + """Inheriting stock picking.""" + _inherit = 'stock.picking' + + delivery_datetime = fields.Datetime(string='Delivery Date', + help='Delivery date for the product') diff --git a/delivery_date_sale_order_line/models/stock_rule.py b/delivery_date_sale_order_line/models/stock_rule.py new file mode 100644 index 000000000..6d43691b1 --- /dev/null +++ b/delivery_date_sale_order_line/models/stock_rule.py @@ -0,0 +1,39 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# 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 models + + +class StockRule(models.Model): + """Inheriting stock rule.""" + _inherit = 'stock.rule' + + def _get_stock_move_values(self, product_id, product_qty, product_uom, + location_id, name, origin, values, group_id): + """this functions returns a dictionary of values that will be used + to create a stock move from a procurement.here added the custom field + delivery_datetime.""" + res = super(StockRule, self)._get_stock_move_values( + product_id, product_qty, product_uom, location_id, name, origin, + values, group_id) + if res.get('date', False): + res['delivery_datetime'] = res['date'] + return res diff --git a/delivery_date_sale_order_line/static/description/assets/icons/check.png b/delivery_date_sale_order_line/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/delivery_date_sale_order_line/static/description/assets/icons/check.png differ diff --git a/delivery_date_sale_order_line/static/description/assets/icons/chevron.png b/delivery_date_sale_order_line/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/delivery_date_sale_order_line/static/description/assets/icons/chevron.png differ diff --git a/delivery_date_sale_order_line/static/description/assets/icons/cogs.png b/delivery_date_sale_order_line/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/delivery_date_sale_order_line/static/description/assets/icons/cogs.png differ diff --git a/delivery_date_sale_order_line/static/description/assets/icons/consultation.png b/delivery_date_sale_order_line/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/delivery_date_sale_order_line/static/description/assets/icons/consultation.png differ diff --git a/delivery_date_sale_order_line/static/description/assets/icons/ecom-black.png b/delivery_date_sale_order_line/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/delivery_date_sale_order_line/static/description/assets/icons/ecom-black.png differ diff --git a/delivery_date_sale_order_line/static/description/assets/icons/education-black.png b/delivery_date_sale_order_line/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/delivery_date_sale_order_line/static/description/assets/icons/education-black.png differ diff --git a/delivery_date_sale_order_line/static/description/assets/icons/hotel-black.png b/delivery_date_sale_order_line/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/delivery_date_sale_order_line/static/description/assets/icons/hotel-black.png differ diff --git a/delivery_date_sale_order_line/static/description/assets/icons/license.png b/delivery_date_sale_order_line/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/delivery_date_sale_order_line/static/description/assets/icons/license.png differ diff --git a/delivery_date_sale_order_line/static/description/assets/icons/lifebuoy.png b/delivery_date_sale_order_line/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/delivery_date_sale_order_line/static/description/assets/icons/lifebuoy.png differ diff --git a/delivery_date_sale_order_line/static/description/assets/icons/logo.png b/delivery_date_sale_order_line/static/description/assets/icons/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/delivery_date_sale_order_line/static/description/assets/icons/logo.png differ diff --git a/delivery_date_sale_order_line/static/description/assets/icons/manufacturing-black.png b/delivery_date_sale_order_line/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/delivery_date_sale_order_line/static/description/assets/icons/manufacturing-black.png differ diff --git a/delivery_date_sale_order_line/static/description/assets/icons/pos-black.png b/delivery_date_sale_order_line/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/delivery_date_sale_order_line/static/description/assets/icons/pos-black.png differ diff --git a/delivery_date_sale_order_line/static/description/assets/icons/puzzle.png b/delivery_date_sale_order_line/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/delivery_date_sale_order_line/static/description/assets/icons/puzzle.png differ diff --git a/delivery_date_sale_order_line/static/description/assets/icons/restaurant-black.png b/delivery_date_sale_order_line/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/delivery_date_sale_order_line/static/description/assets/icons/restaurant-black.png differ diff --git a/delivery_date_sale_order_line/static/description/assets/icons/service-black.png b/delivery_date_sale_order_line/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/delivery_date_sale_order_line/static/description/assets/icons/service-black.png differ diff --git a/delivery_date_sale_order_line/static/description/assets/icons/trading-black.png b/delivery_date_sale_order_line/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/delivery_date_sale_order_line/static/description/assets/icons/trading-black.png differ diff --git a/delivery_date_sale_order_line/static/description/assets/icons/training.png b/delivery_date_sale_order_line/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/delivery_date_sale_order_line/static/description/assets/icons/training.png differ diff --git a/delivery_date_sale_order_line/static/description/assets/icons/update.png b/delivery_date_sale_order_line/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/delivery_date_sale_order_line/static/description/assets/icons/update.png differ diff --git a/delivery_date_sale_order_line/static/description/assets/icons/user.png b/delivery_date_sale_order_line/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/delivery_date_sale_order_line/static/description/assets/icons/user.png differ diff --git a/delivery_date_sale_order_line/static/description/assets/icons/wrench.png b/delivery_date_sale_order_line/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/delivery_date_sale_order_line/static/description/assets/icons/wrench.png differ diff --git a/delivery_date_sale_order_line/static/description/assets/modules/budget_image.png b/delivery_date_sale_order_line/static/description/assets/modules/budget_image.png new file mode 100644 index 000000000..b50130c7d Binary files /dev/null and b/delivery_date_sale_order_line/static/description/assets/modules/budget_image.png differ diff --git a/delivery_date_sale_order_line/static/description/assets/modules/credit_image.png b/delivery_date_sale_order_line/static/description/assets/modules/credit_image.png new file mode 100644 index 000000000..3ad04ecfd Binary files /dev/null and b/delivery_date_sale_order_line/static/description/assets/modules/credit_image.png differ diff --git a/delivery_date_sale_order_line/static/description/assets/modules/employee_image.png b/delivery_date_sale_order_line/static/description/assets/modules/employee_image.png new file mode 100644 index 000000000..30ad58232 Binary files /dev/null and b/delivery_date_sale_order_line/static/description/assets/modules/employee_image.png differ diff --git a/delivery_date_sale_order_line/static/description/assets/modules/export_image.png b/delivery_date_sale_order_line/static/description/assets/modules/export_image.png new file mode 100644 index 000000000..492980ad0 Binary files /dev/null and b/delivery_date_sale_order_line/static/description/assets/modules/export_image.png differ diff --git a/delivery_date_sale_order_line/static/description/assets/modules/gantt_image.png b/delivery_date_sale_order_line/static/description/assets/modules/gantt_image.png new file mode 100644 index 000000000..1ae7cfe3b Binary files /dev/null and b/delivery_date_sale_order_line/static/description/assets/modules/gantt_image.png differ diff --git a/delivery_date_sale_order_line/static/description/assets/modules/quotation_image.png b/delivery_date_sale_order_line/static/description/assets/modules/quotation_image.png new file mode 100644 index 000000000..499b1a72f Binary files /dev/null and b/delivery_date_sale_order_line/static/description/assets/modules/quotation_image.png differ diff --git a/delivery_date_sale_order_line/static/description/assets/screenshots/hero.gif b/delivery_date_sale_order_line/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..cf87934a7 Binary files /dev/null and b/delivery_date_sale_order_line/static/description/assets/screenshots/hero.gif differ diff --git a/delivery_date_sale_order_line/static/description/assets/screenshots/sale_delivery_date.png b/delivery_date_sale_order_line/static/description/assets/screenshots/sale_delivery_date.png new file mode 100644 index 000000000..389ddf99b Binary files /dev/null and b/delivery_date_sale_order_line/static/description/assets/screenshots/sale_delivery_date.png differ diff --git a/delivery_date_sale_order_line/static/description/assets/screenshots/sale_delivery_date_confirm.png b/delivery_date_sale_order_line/static/description/assets/screenshots/sale_delivery_date_confirm.png new file mode 100644 index 000000000..fe0de75c0 Binary files /dev/null and b/delivery_date_sale_order_line/static/description/assets/screenshots/sale_delivery_date_confirm.png differ diff --git a/delivery_date_sale_order_line/static/description/assets/screenshots/sale_delivery_date_confirm_deliveries.png b/delivery_date_sale_order_line/static/description/assets/screenshots/sale_delivery_date_confirm_deliveries.png new file mode 100644 index 000000000..adca4217f Binary files /dev/null and b/delivery_date_sale_order_line/static/description/assets/screenshots/sale_delivery_date_confirm_deliveries.png differ diff --git a/delivery_date_sale_order_line/static/description/assets/screenshots/sale_delivery_date_confirm_delivery.png b/delivery_date_sale_order_line/static/description/assets/screenshots/sale_delivery_date_confirm_delivery.png new file mode 100644 index 000000000..1a1ec026c Binary files /dev/null and b/delivery_date_sale_order_line/static/description/assets/screenshots/sale_delivery_date_confirm_delivery.png differ diff --git a/delivery_date_sale_order_line/static/description/banner.png b/delivery_date_sale_order_line/static/description/banner.png new file mode 100644 index 000000000..90fee9eb9 Binary files /dev/null and b/delivery_date_sale_order_line/static/description/banner.png differ diff --git a/delivery_date_sale_order_line/static/description/icon.png b/delivery_date_sale_order_line/static/description/icon.png new file mode 100644 index 000000000..e9efe127b Binary files /dev/null and b/delivery_date_sale_order_line/static/description/icon.png differ diff --git a/delivery_date_sale_order_line/static/description/index.html b/delivery_date_sale_order_line/static/description/index.html new file mode 100644 index 000000000..1402ff1fd --- /dev/null +++ b/delivery_date_sale_order_line/static/description/index.html @@ -0,0 +1,547 @@ +
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+ +
+
+
+
+ +
+
+
+

+ Sale Delivery by Date

+

+ A Module For Sale Delivery By Date to add delivery date in the sale order line and the delivery creatd based on it. +

+ +
+
+ + + +
+
+

+ Overview. +

+
+ +
+

+ Sale Delivery By Date helps to manage expected delivery date of product on sale order line. + This delivery date will be also set on stock move/operation, + While confirm sales order it will also generate different Delivery Order based on a Delivery Date from sale order line.

+ +
+

+
+ +
+
+

+ Features. +

+
+ +
+
+ +
+
+

+ Allow user to add different expected delivery date for the Sale Order line.

+
+
+ +
+
+ +
+
+

+ Generate multiple Delivery order Based Delivery Date Set on Sale Order line.

+
+
+ +
+
+

+ Screenshots. +

+
+ +
+

+ Create Sale Order with multiple Delivery dates.

+ +
+ +
+

+ Confirming Sale Order with Delivery Dates.

+ +
+ +
+

+ Different Delivery Order based on Delivery Dates.

+ + +
+ +
+ +
+
+

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/delivery_date_sale_order_line/views/sale_order_views.xml b/delivery_date_sale_order_line/views/sale_order_views.xml new file mode 100644 index 000000000..8489484ad --- /dev/null +++ b/delivery_date_sale_order_line/views/sale_order_views.xml @@ -0,0 +1,14 @@ + + + + + sale.order.inherit.delivery.date.sale.order.line + sale.order + + + + + + + + diff --git a/user_weather_notification/README.rst b/user_weather_notification/README.rst new file mode 100644 index 000000000..511918b43 --- /dev/null +++ b/user_weather_notification/README.rst @@ -0,0 +1,42 @@ +.. 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 + +User Weather Notification +========================= +Users can see Weather Notification by using openweathermap API + +Installation +============ +- www.odoo.com/documentation/15.0/setup/install.html +- Install our custom addon + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +Developer: muzammil @cybrosys, 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/user_weather_notification/__init__.py b/user_weather_notification/__init__.py new file mode 100755 index 000000000..a19cca6a3 --- /dev/null +++ b/user_weather_notification/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Mohamed Muzammil VP(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 controllers +from . import models diff --git a/user_weather_notification/__manifest__.py b/user_weather_notification/__manifest__.py new file mode 100755 index 000000000..aba081b5e --- /dev/null +++ b/user_weather_notification/__manifest__.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Mohamed Muzammil VP(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': 'User Weather Notification', + 'version': '15.0.1.0.0', + 'summary': """Weather Notification in odoo'""", + 'description': """Users can see Weather Notification by using + openweathermap API'""", + 'category': 'Extra Tools', + 'depends': ['web', 'base', 'sale'], + 'author': "Cybrosys Techno Solutions", + 'website': "https://www.cybrosys.com", + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'data': ['views/res_users_views.xml'], + 'images': ['static/description/banner.jpg'], + 'assets': { + 'web.assets_backend': { + 'user_weather_notification/static/src/scss/weather.scss', + 'user_weather_notification/static/src/js/weather_notification.js', + }, + 'web.assets_qweb': { + 'user_weather_notification/static/src/xml/weather_notification_templates.xml', + }, + + }, + 'external_dependencies': { + 'python': ['geocoder'], + }, + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': True, +} diff --git a/user_weather_notification/controllers/__init__.py b/user_weather_notification/controllers/__init__.py new file mode 100755 index 000000000..d1b810d68 --- /dev/null +++ b/user_weather_notification/controllers/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Mohamed Muzammil VP(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 main diff --git a/user_weather_notification/controllers/main.py b/user_weather_notification/controllers/main.py new file mode 100644 index 000000000..169ddc33c --- /dev/null +++ b/user_weather_notification/controllers/main.py @@ -0,0 +1,63 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Mohamed Muzammil VP(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 . +# +################################################################################ +import geocoder +import requests +from odoo import http +from odoo.http import request + + +class WeatherNotification(http.Controller): + """controller for fetching weather data""" + + @http.route('/weather/notification/check', type='json', auth="public", + methods=['POST']) + def weather_notification(self): + """method for fetching weather data""" + if request.env.user.location_set == 'auto' and \ + request.env.user.api_key: + g_coder = geocoder.ip('me') + if g_coder.status_code == 200: + lat = round(g_coder.latlng[0], 2) + lng = round(g_coder.latlng[1], 2) + url = 'https://api.openweathermap.org/data/2.5/weather?lat=%s&lon=%s&appid=%s' % ( + lat, lng, request.env.user.api_key) + weather = requests.get(url) + if weather.status_code == 200: + weather_data = weather.json() + return weather_data + else: + weather_data = {'data': False} + return weather_data + elif request.env.user.location_set == 'manual' and \ + request.env.user.api_key: + url = 'https://api.openweathermap.org/data/2.5/weather?q=%s&appid=%s' % ( + request.env.user.city, request.env.user.api_key) + city_req = requests.get(url) + if city_req.status_code == 200: + weather_data = city_req.json() + return weather_data + else: + weather_data = {'data': False} + return weather_data + else: + weather_data = {'data': False} + return weather_data diff --git a/user_weather_notification/doc/RELEASE_NOTES.md b/user_weather_notification/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..c3046f0d2 --- /dev/null +++ b/user_weather_notification/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 11.04.2023 +#### Version 15.0.1.0.0 +#### ADD +- Initial commit for User Weather Notification diff --git a/user_weather_notification/models/__init__.py b/user_weather_notification/models/__init__.py new file mode 100644 index 000000000..41641d1df --- /dev/null +++ b/user_weather_notification/models/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Mohamed Muzammil VP(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/user_weather_notification/models/res_users.py b/user_weather_notification/models/res_users.py new file mode 100644 index 000000000..a35fe475e --- /dev/null +++ b/user_weather_notification/models/res_users.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Mohamed Muzammil VP(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 . +# +################################################################################ +import requests +from odoo import api, fields, models, _ +from odoo.exceptions import ValidationError + + +class ResUsers(models.Model): + """inherit the res.users model to add custom fields and methods""" + _inherit = "res.users" + + api_key = fields.Char(string='API Key', help="API key from OpenWeatherMap") + location_set = fields.Selection(selection=[ + ('auto', 'Use Browser Location'), + ('manual', 'Manual Location'), + ], string="Set Location", default='auto', + help="Use Browser Location:Fetching data based on browsers location," + "Manual Location:Need to specify the city in the city field ") + city = fields.Char(string='City') + + @api.constrains('city') + def _check_city(self): + """Constraints to check city is valid or not""" + for rec in self: + if rec.api_key: + url = 'https://api.openweathermap.org/data/2.5/weather?q=%s&appid=%s' \ + % (rec.city, rec.api_key) + city_check = requests.get(url).json() + if city_check['cod'] != 200: + raise ValidationError(_(city_check['message'])) diff --git a/user_weather_notification/static/description/assets/icons/check.png b/user_weather_notification/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/user_weather_notification/static/description/assets/icons/check.png differ diff --git a/user_weather_notification/static/description/assets/icons/chevron.png b/user_weather_notification/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/user_weather_notification/static/description/assets/icons/chevron.png differ diff --git a/user_weather_notification/static/description/assets/icons/cogs.png b/user_weather_notification/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/user_weather_notification/static/description/assets/icons/cogs.png differ diff --git a/user_weather_notification/static/description/assets/icons/consultation.png b/user_weather_notification/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/user_weather_notification/static/description/assets/icons/consultation.png differ diff --git a/user_weather_notification/static/description/assets/icons/ecom-black.png b/user_weather_notification/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/user_weather_notification/static/description/assets/icons/ecom-black.png differ diff --git a/user_weather_notification/static/description/assets/icons/education-black.png b/user_weather_notification/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/user_weather_notification/static/description/assets/icons/education-black.png differ diff --git a/user_weather_notification/static/description/assets/icons/hotel-black.png b/user_weather_notification/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/user_weather_notification/static/description/assets/icons/hotel-black.png differ diff --git a/user_weather_notification/static/description/assets/icons/insta_feed_snippet_icon.png b/user_weather_notification/static/description/assets/icons/insta_feed_snippet_icon.png new file mode 100644 index 000000000..9af668a31 Binary files /dev/null and b/user_weather_notification/static/description/assets/icons/insta_feed_snippet_icon.png differ diff --git a/user_weather_notification/static/description/assets/icons/license.png b/user_weather_notification/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/user_weather_notification/static/description/assets/icons/license.png differ diff --git a/user_weather_notification/static/description/assets/icons/lifebuoy.png b/user_weather_notification/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/user_weather_notification/static/description/assets/icons/lifebuoy.png differ diff --git a/user_weather_notification/static/description/assets/icons/logo.png b/user_weather_notification/static/description/assets/icons/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/user_weather_notification/static/description/assets/icons/logo.png differ diff --git a/user_weather_notification/static/description/assets/icons/manufacturing-black.png b/user_weather_notification/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/user_weather_notification/static/description/assets/icons/manufacturing-black.png differ diff --git a/user_weather_notification/static/description/assets/icons/pos-black.png b/user_weather_notification/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/user_weather_notification/static/description/assets/icons/pos-black.png differ diff --git a/user_weather_notification/static/description/assets/icons/puzzle.png b/user_weather_notification/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/user_weather_notification/static/description/assets/icons/puzzle.png differ diff --git a/user_weather_notification/static/description/assets/icons/restaurant-black.png b/user_weather_notification/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/user_weather_notification/static/description/assets/icons/restaurant-black.png differ diff --git a/user_weather_notification/static/description/assets/icons/service-black.png b/user_weather_notification/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/user_weather_notification/static/description/assets/icons/service-black.png differ diff --git a/user_weather_notification/static/description/assets/icons/trading-black.png b/user_weather_notification/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/user_weather_notification/static/description/assets/icons/trading-black.png differ diff --git a/user_weather_notification/static/description/assets/icons/training.png b/user_weather_notification/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/user_weather_notification/static/description/assets/icons/training.png differ diff --git a/user_weather_notification/static/description/assets/icons/update.png b/user_weather_notification/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/user_weather_notification/static/description/assets/icons/update.png differ diff --git a/user_weather_notification/static/description/assets/icons/user.png b/user_weather_notification/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/user_weather_notification/static/description/assets/icons/user.png differ diff --git a/user_weather_notification/static/description/assets/icons/wrench.png b/user_weather_notification/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/user_weather_notification/static/description/assets/icons/wrench.png differ diff --git a/user_weather_notification/static/description/assets/misc/categories.png b/user_weather_notification/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/user_weather_notification/static/description/assets/misc/categories.png differ diff --git a/user_weather_notification/static/description/assets/misc/check-box.png b/user_weather_notification/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/user_weather_notification/static/description/assets/misc/check-box.png differ diff --git a/user_weather_notification/static/description/assets/misc/compass.png b/user_weather_notification/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/user_weather_notification/static/description/assets/misc/compass.png differ diff --git a/user_weather_notification/static/description/assets/misc/corporate.png b/user_weather_notification/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/user_weather_notification/static/description/assets/misc/corporate.png differ diff --git a/user_weather_notification/static/description/assets/misc/customer-support.png b/user_weather_notification/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/user_weather_notification/static/description/assets/misc/customer-support.png differ diff --git a/user_weather_notification/static/description/assets/misc/cybrosys-logo.png b/user_weather_notification/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/user_weather_notification/static/description/assets/misc/cybrosys-logo.png differ diff --git a/user_weather_notification/static/description/assets/misc/features.png b/user_weather_notification/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/user_weather_notification/static/description/assets/misc/features.png differ diff --git a/user_weather_notification/static/description/assets/misc/logo.png b/user_weather_notification/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/user_weather_notification/static/description/assets/misc/logo.png differ diff --git a/user_weather_notification/static/description/assets/misc/pictures.png b/user_weather_notification/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/user_weather_notification/static/description/assets/misc/pictures.png differ diff --git a/user_weather_notification/static/description/assets/misc/pie-chart.png b/user_weather_notification/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/user_weather_notification/static/description/assets/misc/pie-chart.png differ diff --git a/user_weather_notification/static/description/assets/misc/right-arrow.png b/user_weather_notification/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/user_weather_notification/static/description/assets/misc/right-arrow.png differ diff --git a/user_weather_notification/static/description/assets/misc/star.png b/user_weather_notification/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/user_weather_notification/static/description/assets/misc/star.png differ diff --git a/user_weather_notification/static/description/assets/misc/support.png b/user_weather_notification/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/user_weather_notification/static/description/assets/misc/support.png differ diff --git a/user_weather_notification/static/description/assets/misc/whatsapp.png b/user_weather_notification/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/user_weather_notification/static/description/assets/misc/whatsapp.png differ diff --git a/user_weather_notification/static/description/assets/modules/1.png b/user_weather_notification/static/description/assets/modules/1.png new file mode 100644 index 000000000..5238bdeab Binary files /dev/null and b/user_weather_notification/static/description/assets/modules/1.png differ diff --git a/user_weather_notification/static/description/assets/modules/2.png b/user_weather_notification/static/description/assets/modules/2.png new file mode 100644 index 000000000..1ae7cfe3b Binary files /dev/null and b/user_weather_notification/static/description/assets/modules/2.png differ diff --git a/user_weather_notification/static/description/assets/modules/3.png b/user_weather_notification/static/description/assets/modules/3.png new file mode 100644 index 000000000..3c3ff1afb Binary files /dev/null and b/user_weather_notification/static/description/assets/modules/3.png differ diff --git a/user_weather_notification/static/description/assets/modules/4.png b/user_weather_notification/static/description/assets/modules/4.png new file mode 100644 index 000000000..3fae4631e Binary files /dev/null and b/user_weather_notification/static/description/assets/modules/4.png differ diff --git a/user_weather_notification/static/description/assets/modules/5.gif b/user_weather_notification/static/description/assets/modules/5.gif new file mode 100644 index 000000000..2a5f8e659 Binary files /dev/null and b/user_weather_notification/static/description/assets/modules/5.gif differ diff --git a/user_weather_notification/static/description/assets/modules/6.png b/user_weather_notification/static/description/assets/modules/6.png new file mode 100644 index 000000000..7f2815273 Binary files /dev/null and b/user_weather_notification/static/description/assets/modules/6.png differ diff --git a/user_weather_notification/static/description/assets/screenshots/hero.gif b/user_weather_notification/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..c9ff91b12 Binary files /dev/null and b/user_weather_notification/static/description/assets/screenshots/hero.gif differ diff --git a/user_weather_notification/static/description/assets/screenshots/screen_2.png b/user_weather_notification/static/description/assets/screenshots/screen_2.png new file mode 100644 index 000000000..d7f37465f Binary files /dev/null and b/user_weather_notification/static/description/assets/screenshots/screen_2.png differ diff --git a/user_weather_notification/static/description/assets/screenshots/screen_3.png b/user_weather_notification/static/description/assets/screenshots/screen_3.png new file mode 100644 index 000000000..6c114611a Binary files /dev/null and b/user_weather_notification/static/description/assets/screenshots/screen_3.png differ diff --git a/user_weather_notification/static/description/assets/screenshots/screen_4.png b/user_weather_notification/static/description/assets/screenshots/screen_4.png new file mode 100644 index 000000000..68888e2ec Binary files /dev/null and b/user_weather_notification/static/description/assets/screenshots/screen_4.png differ diff --git a/user_weather_notification/static/description/assets/screenshots/screen_5.png b/user_weather_notification/static/description/assets/screenshots/screen_5.png new file mode 100644 index 000000000..8b7951ccd Binary files /dev/null and b/user_weather_notification/static/description/assets/screenshots/screen_5.png differ diff --git a/user_weather_notification/static/description/assets/screenshots/screen_6.png b/user_weather_notification/static/description/assets/screenshots/screen_6.png new file mode 100644 index 000000000..87911db7b Binary files /dev/null and b/user_weather_notification/static/description/assets/screenshots/screen_6.png differ diff --git a/user_weather_notification/static/description/banner.jpg b/user_weather_notification/static/description/banner.jpg new file mode 100644 index 000000000..83124c0a9 Binary files /dev/null and b/user_weather_notification/static/description/banner.jpg differ diff --git a/user_weather_notification/static/description/icon.png b/user_weather_notification/static/description/icon.png new file mode 100644 index 000000000..5533f9686 Binary files /dev/null and b/user_weather_notification/static/description/icon.png differ diff --git a/user_weather_notification/static/description/index.html b/user_weather_notification/static/description/index.html new file mode 100644 index 000000000..27f702d65 --- /dev/null +++ b/user_weather_notification/static/description/index.html @@ -0,0 +1,546 @@ +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ +
+
+
+ +

+ User Weather Notification

+

A Module For User Weather Notification

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

Explore This + Module

+
+ + + + +
+
+ +
+

Overview +

+
+
+
+ As we know, many industries are depending on weather conditions + like manufacturing, Event Management, + Construction etc. So we believe our concept of weather module + can be used in these industries to + understand and plan their works according to the weather + condition. This module is a starter to think + and explore the opportunity to bring the advanced features in + Odoo. +
+
+ + + +
+
+ +
+

Features +

+
+
+
+
+ + Support in Desktop. +
+
+
+
+ + The user will get the weather notification +
+
+
+ + + +
+
+ +
+

Screenshots +

+
+
+
+ +
+

User can easily find the weather report from a single click. + Summary of the weather conditions is + displayed on the weather board. The user will easily get + weather updates, state of climate and current + temperature etc. +

+ +
+ +
+

User must provide api key for openweathermap and select auto + location or manual location

+ +

For manual location user must enter a valid city of + openweathermap api

+ +
+
+ +
+
+

Required openweathermap API.

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

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

+
+
+
+
+
+
+
+ +
+
+
+ \ No newline at end of file diff --git a/user_weather_notification/static/src/js/weather_notification.js b/user_weather_notification/static/src/js/weather_notification.js new file mode 100644 index 000000000..0c316e796 --- /dev/null +++ b/user_weather_notification/static/src/js/weather_notification.js @@ -0,0 +1,45 @@ +odoo.define('weather_systray.weather', function(require) { + "use strict"; + var core = require('web.core'); + var QWeb = core.qweb; + var SystrayMenu = require('web.SystrayMenu'); + var Widget = require('web.Widget'); + var rpc = require('web.rpc'); +/*Extending widget and adding the template*/ + var WeatherMenu = Widget.extend({ + template: 'user_weather_notification.UserMenuS', + events: { + 'click #create_so': 'onclick_myicon', + }, + /*when it start card is hidden*/ + start: function() { + var self = this + self.$('.card').hide(); + }, + /*toggle the card hide or visible*/ + onclick_myicon: async function() { + if (self.$(".card").is(":visible")) { + self.$('.card').hide(); + } + else { + self.$('.card').show(); + /*take the data from the controller and shows*/ + rpc.query({ + route: "/weather/notification/check", + }).then(function(result) { + if (result.data == false){ + self.$("#description").text('Configure Settings') + }else{ + self.$("#title").text(result.name); + self.$("#main").text(result.weather[0].main); + var temp = Math.floor(result.main.temp - 273); + self.$("#temp").text(temp + "°C"); + self.$("#description").text(result.weather[0].description); + } + }) + } + } + }); + SystrayMenu.Items.push(WeatherMenu); + return WeatherMenu; +}); diff --git a/user_weather_notification/static/src/scss/weather.scss b/user_weather_notification/static/src/scss/weather.scss new file mode 100644 index 000000000..42d46456f --- /dev/null +++ b/user_weather_notification/static/src/scss/weather.scss @@ -0,0 +1,11 @@ +.card { + display:block; + position:absolute; + top: 40px; + width: 250px; + right:100px; +} +.img{ + width: 250px; +} + diff --git a/user_weather_notification/static/src/weather_card.jpg b/user_weather_notification/static/src/weather_card.jpg new file mode 100644 index 000000000..cc5cda90c Binary files /dev/null and b/user_weather_notification/static/src/weather_card.jpg differ diff --git a/user_weather_notification/static/src/xml/weather_notification_templates.xml b/user_weather_notification/static/src/xml/weather_notification_templates.xml new file mode 100644 index 000000000..e46780d22 --- /dev/null +++ b/user_weather_notification/static/src/xml/weather_notification_templates.xml @@ -0,0 +1,53 @@ + + + + +
+ +
+
+ + +
  • + +
  • +
    +
    diff --git a/user_weather_notification/views/res_users_views.xml b/user_weather_notification/views/res_users_views.xml new file mode 100644 index 000000000..a2c994294 --- /dev/null +++ b/user_weather_notification/views/res_users_views.xml @@ -0,0 +1,21 @@ + + + + + res.users.form.inherit.user.weather.notification + res.users + form + + + + + + + + + + + + + +