diff --git a/shopping_through_agent/README.rst b/shopping_through_agent/README.rst new file mode 100644 index 000000000..5bf68e214 --- /dev/null +++ b/shopping_through_agent/README.rst @@ -0,0 +1,48 @@ +.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg + :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +Shopping Through Agent +====================== +This module enable agents to create sale orders on a website shop on behalf of the customers. + +Configuration +============= +* No additional configuration needed. + +License +------- +Affero General Public License v3.0 (AGPL v3) +(https://www.gnu.org/licenses/agpl-3.0-standalone.html) + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +* Developer : (V17) MOHAMMED DILSHAD TK + (V15) Aysha Shalin + 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/shopping_through_agent/__init__.py b/shopping_through_agent/__init__.py new file mode 100644 index 000000000..019a5010e --- /dev/null +++ b/shopping_through_agent/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Aysha Shalin (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/shopping_through_agent/__manifest__.py b/shopping_through_agent/__manifest__.py new file mode 100644 index 000000000..70d7c2bab --- /dev/null +++ b/shopping_through_agent/__manifest__.py @@ -0,0 +1,51 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Aysha Shalin (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': 'Shopping Through Agent', + 'version': '15.0.1.0.0', + 'category': 'eCommerce', + 'summary': """Agents can shop from Website Shop onbehalf of customers.""", + 'description': """This module enable agents to create sale orders on the + website shop on behalf for customers, streamlining the purchasing process + and assisting customers effectively.""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'depends': ['website_sale','sale_management'], + 'data': [ + 'data/website_menu_data.xml', + 'views/res_partner_views.xml', + 'views/sale_order_views.xml', + 'views/account_move_views.xml', + 'views/agent_shop_template.xml', + 'views/sale_order_portal_template.xml', + 'views/invoice_report_template.xml', + 'views/sale_order_report_template.xml', + 'views/website_sale_templates.xml', + ], + 'images': ['static/description/banner.png'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/shopping_through_agent/controllers/__init__.py b/shopping_through_agent/controllers/__init__.py new file mode 100644 index 000000000..16815f471 --- /dev/null +++ b/shopping_through_agent/controllers/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Aysha Shalin (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 shopping_through_agent +from . import website_sale diff --git a/shopping_through_agent/controllers/shopping_through_agent.py b/shopping_through_agent/controllers/shopping_through_agent.py new file mode 100644 index 000000000..b6a1a45cf --- /dev/null +++ b/shopping_through_agent/controllers/shopping_through_agent.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Aysha Shalin (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################### +from odoo.http import Controller, request, route + + +class Agent(Controller): + """ Class for the function to render a new page """ + @route(route='/agent/shop', auth='user', website=True) + def agent(self): + """ Function to pass the data to shop and also to clearing the cart """ + customer_ids = request.env['res.partner'].search( + [('agent_id', '=', request.env.user.partner_id.id)]) + return request.render('shopping_through_agent.agent_shop_template', + {'customer_ids': customer_ids}) diff --git a/shopping_through_agent/controllers/website_sale.py b/shopping_through_agent/controllers/website_sale.py new file mode 100644 index 000000000..c1a442d71 --- /dev/null +++ b/shopping_through_agent/controllers/website_sale.py @@ -0,0 +1,183 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Aysha Shalin (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################### +from odoo.addons.payment.controllers import portal as payment_portal +from odoo.addons.website_sale.controllers.main import WebsiteSale +from odoo import http +from odoo.http import request +from odoo.addons.website.models.ir_http import sitemap_qs2dom +from odoo.addons.http_routing.models.ir_http import slug + + +class WebsiteSale(WebsiteSale): + """ Class to inherit the functions in the website sale """ + def sitemap_shop(env, rule, qs): + if not qs or qs.lower() in '/shop': + yield {'loc': '/shop'} + + Category = env['product.public.category'] + dom = sitemap_qs2dom(qs, '/shop/category', Category._rec_name) + dom += env['website'].get_current_website().website_domain() + for cat in Category.search(dom): + loc = '/shop/category/%s' % slug(cat) + if not qs or qs.lower() in loc: + yield {'loc': loc} + + @http.route([ + '''/shop''', + '''/shop/page/''', + '''/shop/category/''', + '''/shop/category//page/''' + ], type='http', auth="public", website=True, sitemap=sitemap_shop) + def shop(self, page=0, category=None, search='', min_price=0.0, + max_price=0.0, ppg=False, **post): + """ Function to inherit shop and to set the posted value in the + website session. """ + res = super(WebsiteSale, self).shop(page, category, search, min_price, + max_price, ppg, **post) + order = request.website.sale_get_order() + if 'post_values' in request.session: + stored_post_values = request.session['post_values'] + if stored_post_values != post and post: + order.unlink() + if post: + request.session['post_values'] = post + return res + + @http.route(['/shop/cart'], type='http', auth="public", website=True, + sitemap=False) + def cart(self, access_token=None, revive='', **post): + """ Function to update the address from cart when the sale order is + created. """ + res = super().cart(access_token, revive, **post) + if 'post_values' in request.session: + post_values = request.session['post_values'] + order = request.website.sale_get_order() + if post_values: + customer_id = post_values.get('customer') + if customer_id: + customer = request.env['res.partner'].browse( + int(customer_id)) + order.update({ + 'partner_id': customer, + 'partner_invoice_id': customer, + 'partner_shipping_id': customer, + 'agent_id': request.env.user.partner_id.id + if request.env.user.partner_id.is_agent else '' + }) + return res + + def _get_shop_payment_values(self, order, **kwargs): + """ Function to update the sale order details created from website """ + res = super()._get_shop_payment_values(order, **kwargs) + if 'post_values' in request.session: + post_values = request.session['post_values'] + if post_values: + customer_id = post_values.get('customer') + if customer_id: + customer = request.env['res.partner'].browse( + int(customer_id)) + website_sale_order = res.get('website_sale_order', {}) + website_sale_order.update({ + 'partner_id': customer.id, + 'partner_invoice_id': customer.id, + 'partner_shipping_id': customer.id, + 'agent_id': request.env.user.partner_id.id + if request.env.user.partner_id.is_agent else '', + }) + res.update({ + 'partner': customer, + 'partner_id': customer.id, + 'website_sale_order': website_sale_order, + }) + return res + + def order_2_return_dict(self, order): + """ + This method is called in the payment process route in order to + prepare the dict containing the values to be rendered by the + confirmation template. + """ + res = super().order_2_return_dict(order) + if 'post_values' in request.session: + post_values = request.session['post_values'] + if post_values: + customer_id = post_values.get('customer') + if customer_id: + customer = request.env['res.partner'].browse( + int(customer_id)) + order.update({ + 'partner_id': customer.id, + 'partner_invoice_id': customer.id, + 'partner_shipping_id': customer.id, + }) + return res + + def checkout_values(self, **kw): + """ Updating the billing and shipping address based on customer """ + res = super().checkout_values(**kw) + if 'post_values' in request.session: + order = request.website.sale_get_order(force_create=True) + post_values = request.session['post_values'] + if post_values: + customer_id = post_values.get('customer') + if customer_id: + customer = request.env['res.partner'].browse( + int(customer_id)) + res.update({ + 'partner_id': customer, + 'shippings': customer, + 'order': order, + }) + return res + + @http.route(['/shop/confirmation'], type='http', auth="public", + website=True, sitemap=False) + def shop_payment_confirmation(self, **post): + """ Function to remove the values of post_values from the session """ + res = super().shop_payment_confirmation(**post) + request.session['post_values'] = {} + return res + + +class PaymentPortal(payment_portal.PaymentPortal): + """ Class to inherit the function to change the details of the + transactions. """ + @http.route( + '/shop/payment/transaction/', type='json', + auth='public', website=True) + def shop_payment_transaction(self, order_id, access_token, **kwargs): + """ Function to change the order details for delivery and invoice """ + res = super().shop_payment_transaction(order_id, access_token, **kwargs) + order_id = request.env['sale.order'].browse(int(order_id)) + if 'post_values' in request.session: + post_values = request.session['post_values'] + if post_values: + customer_id = post_values.get('customer') + if customer_id: + customer = request.env['res.partner'].browse( + int(customer_id)) + order_id.update({ + 'partner_id': customer.id, + 'partner_invoice_id': customer.id, + 'partner_shipping_id': customer.id, + }) + return res diff --git a/shopping_through_agent/data/website_menu_data.xml b/shopping_through_agent/data/website_menu_data.xml new file mode 100644 index 000000000..32f87c6b5 --- /dev/null +++ b/shopping_through_agent/data/website_menu_data.xml @@ -0,0 +1,10 @@ + + + + + Agent Shop + /agent/shop + + 10 + + diff --git a/shopping_through_agent/doc/RELEASE_NOTES.md b/shopping_through_agent/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..57dcb58e7 --- /dev/null +++ b/shopping_through_agent/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 06.06.2024 +#### Version 15.0.1.0.0 +##### ADD +- Initial Commit for Shopping Through Agent diff --git a/shopping_through_agent/models/__init__.py b/shopping_through_agent/models/__init__.py new file mode 100644 index 000000000..d3e334eb5 --- /dev/null +++ b/shopping_through_agent/models/__init__.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Aysha Shalin (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 account_move +from . import res_partner +from . import sale_order +from . import website_menu diff --git a/shopping_through_agent/models/account_move.py b/shopping_through_agent/models/account_move.py new file mode 100644 index 000000000..0cc9189bc --- /dev/null +++ b/shopping_through_agent/models/account_move.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Aysha Shalin (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################### +from odoo import fields, models + + +class AccountMove(models.Model): + """ Class to add the field for agent in invoice """ + _inherit = 'account.move' + + agent_id = fields.Many2one(comodel_name='res.partner', + string='Agent', + help='Select an agent for the customer') diff --git a/shopping_through_agent/models/res_partner.py b/shopping_through_agent/models/res_partner.py new file mode 100644 index 000000000..afc375e4c --- /dev/null +++ b/shopping_through_agent/models/res_partner.py @@ -0,0 +1,41 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Aysha Shalin (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################### +from odoo import api, fields, models + + +class ResPartner(models.Model): + """ Class to add the fields for agent in partner form """ + _inherit = 'res.partner' + + agent_id = fields.Many2one(comodel_name='res.partner', string='Agent', + help='Select an agent for the customer to ' + 'allow agent can create sale order for ' + 'the customer') + is_agent = fields.Boolean(string='Is Agent', + help='Enable if this person is a agent') + + @api.onchange('is_agent') + def _onchange_agent(self): + """ Onchange function for the agent field """ + if not self.is_agent: + self.agent_id = '' + self.search([('agent_id', '=', self.name)]).write({'agent_id': ''}) diff --git a/shopping_through_agent/models/sale_order.py b/shopping_through_agent/models/sale_order.py new file mode 100644 index 000000000..905a54a0a --- /dev/null +++ b/shopping_through_agent/models/sale_order.py @@ -0,0 +1,38 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Aysha Shalin (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################### +from odoo import fields, models + + +class SaleOrder(models.Model): + """ Class to add the field for agent in sale order """ + _inherit = 'sale.order' + + agent_id = fields.Many2one( + 'res.partner', 'Agent', + help='Select an agent for the customer') + + def _prepare_invoice(self): + """ Function to update the agent_id field in invoice based on the sale + order """ + res = super()._prepare_invoice() + res['agent_id'] = self.agent_id.id + return res diff --git a/shopping_through_agent/models/website_menu.py b/shopping_through_agent/models/website_menu.py new file mode 100644 index 000000000..49eaf1bec --- /dev/null +++ b/shopping_through_agent/models/website_menu.py @@ -0,0 +1,38 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Aysha Shalin (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################### +from odoo import models + + +class WebsiteMenu(models.Model): + """ Class to add a function for menu visibility """ + _inherit = 'website.menu' + + def _compute_visible(self): + """ Compute menu invisible for customer and visible for agent """ + super()._compute_visible() + self.env.registry._clear_cache() + for menu in self: + visible = True + if menu.name == 'Agent Shop': + if not menu.env.user.partner_id.is_agent: + visible = False + menu.is_visible = visible diff --git a/shopping_through_agent/static/description/assets/icons/cogs.png b/shopping_through_agent/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/shopping_through_agent/static/description/assets/icons/cogs.png differ diff --git a/shopping_through_agent/static/description/assets/icons/consultation.png b/shopping_through_agent/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/shopping_through_agent/static/description/assets/icons/consultation.png differ diff --git a/shopping_through_agent/static/description/assets/icons/ecom-black.png b/shopping_through_agent/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/shopping_through_agent/static/description/assets/icons/ecom-black.png differ diff --git a/shopping_through_agent/static/description/assets/icons/education-black.png b/shopping_through_agent/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/shopping_through_agent/static/description/assets/icons/education-black.png differ diff --git a/shopping_through_agent/static/description/assets/icons/hotel-black.png b/shopping_through_agent/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/shopping_through_agent/static/description/assets/icons/hotel-black.png differ diff --git a/shopping_through_agent/static/description/assets/icons/license.png b/shopping_through_agent/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/shopping_through_agent/static/description/assets/icons/license.png differ diff --git a/shopping_through_agent/static/description/assets/icons/lifebuoy.png b/shopping_through_agent/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/shopping_through_agent/static/description/assets/icons/lifebuoy.png differ diff --git a/shopping_through_agent/static/description/assets/icons/logo.png b/shopping_through_agent/static/description/assets/icons/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/shopping_through_agent/static/description/assets/icons/logo.png differ diff --git a/shopping_through_agent/static/description/assets/icons/manufacturing-black.png b/shopping_through_agent/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/shopping_through_agent/static/description/assets/icons/manufacturing-black.png differ diff --git a/shopping_through_agent/static/description/assets/icons/pos-black.png b/shopping_through_agent/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/shopping_through_agent/static/description/assets/icons/pos-black.png differ diff --git a/shopping_through_agent/static/description/assets/icons/puzzle.png b/shopping_through_agent/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/shopping_through_agent/static/description/assets/icons/puzzle.png differ diff --git a/shopping_through_agent/static/description/assets/icons/restaurant-black.png b/shopping_through_agent/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/shopping_through_agent/static/description/assets/icons/restaurant-black.png differ diff --git a/shopping_through_agent/static/description/assets/icons/service-black.png b/shopping_through_agent/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/shopping_through_agent/static/description/assets/icons/service-black.png differ diff --git a/shopping_through_agent/static/description/assets/icons/trading-black.png b/shopping_through_agent/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/shopping_through_agent/static/description/assets/icons/trading-black.png differ diff --git a/shopping_through_agent/static/description/assets/icons/training.png b/shopping_through_agent/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/shopping_through_agent/static/description/assets/icons/training.png differ diff --git a/shopping_through_agent/static/description/assets/icons/update.png b/shopping_through_agent/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/shopping_through_agent/static/description/assets/icons/update.png differ diff --git a/shopping_through_agent/static/description/assets/icons/user.png b/shopping_through_agent/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/shopping_through_agent/static/description/assets/icons/user.png differ diff --git a/shopping_through_agent/static/description/assets/icons/wrench.png b/shopping_through_agent/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/shopping_through_agent/static/description/assets/icons/wrench.png differ diff --git a/shopping_through_agent/static/description/assets/misc/categories.png b/shopping_through_agent/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/shopping_through_agent/static/description/assets/misc/categories.png differ diff --git a/shopping_through_agent/static/description/assets/misc/check-box.png b/shopping_through_agent/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/shopping_through_agent/static/description/assets/misc/check-box.png differ diff --git a/shopping_through_agent/static/description/assets/misc/compass.png b/shopping_through_agent/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/shopping_through_agent/static/description/assets/misc/compass.png differ diff --git a/shopping_through_agent/static/description/assets/misc/corporate.png b/shopping_through_agent/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/shopping_through_agent/static/description/assets/misc/corporate.png differ diff --git a/shopping_through_agent/static/description/assets/misc/customer-support.png b/shopping_through_agent/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/shopping_through_agent/static/description/assets/misc/customer-support.png differ diff --git a/shopping_through_agent/static/description/assets/misc/cybrosys-logo.png b/shopping_through_agent/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/shopping_through_agent/static/description/assets/misc/cybrosys-logo.png differ diff --git a/shopping_through_agent/static/description/assets/misc/features.png b/shopping_through_agent/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/shopping_through_agent/static/description/assets/misc/features.png differ diff --git a/shopping_through_agent/static/description/assets/misc/logo.png b/shopping_through_agent/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/shopping_through_agent/static/description/assets/misc/logo.png differ diff --git a/shopping_through_agent/static/description/assets/misc/pictures.png b/shopping_through_agent/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/shopping_through_agent/static/description/assets/misc/pictures.png differ diff --git a/shopping_through_agent/static/description/assets/misc/pie-chart.png b/shopping_through_agent/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/shopping_through_agent/static/description/assets/misc/pie-chart.png differ diff --git a/shopping_through_agent/static/description/assets/misc/right-arrow.png b/shopping_through_agent/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/shopping_through_agent/static/description/assets/misc/right-arrow.png differ diff --git a/shopping_through_agent/static/description/assets/misc/star.png b/shopping_through_agent/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/shopping_through_agent/static/description/assets/misc/star.png differ diff --git a/shopping_through_agent/static/description/assets/misc/support.png b/shopping_through_agent/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/shopping_through_agent/static/description/assets/misc/support.png differ diff --git a/shopping_through_agent/static/description/assets/misc/whatsapp.png b/shopping_through_agent/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/shopping_through_agent/static/description/assets/misc/whatsapp.png differ diff --git a/shopping_through_agent/static/description/assets/modules/product_brand_ecommerce.png b/shopping_through_agent/static/description/assets/modules/product_brand_ecommerce.png new file mode 100644 index 000000000..c44fba89c Binary files /dev/null and b/shopping_through_agent/static/description/assets/modules/product_brand_ecommerce.png differ diff --git a/shopping_through_agent/static/description/assets/modules/safer_pay.png b/shopping_through_agent/static/description/assets/modules/safer_pay.png new file mode 100644 index 000000000..4d8f8e4da Binary files /dev/null and b/shopping_through_agent/static/description/assets/modules/safer_pay.png differ diff --git a/shopping_through_agent/static/description/assets/modules/website_product_publish.png b/shopping_through_agent/static/description/assets/modules/website_product_publish.png new file mode 100644 index 000000000..cfa345d91 Binary files /dev/null and b/shopping_through_agent/static/description/assets/modules/website_product_publish.png differ diff --git a/shopping_through_agent/static/description/assets/modules/website_upload_files.png b/shopping_through_agent/static/description/assets/modules/website_upload_files.png new file mode 100644 index 000000000..7658cf1e3 Binary files /dev/null and b/shopping_through_agent/static/description/assets/modules/website_upload_files.png differ diff --git a/shopping_through_agent/static/description/assets/modules/whatsapp_product_inquiry.png b/shopping_through_agent/static/description/assets/modules/whatsapp_product_inquiry.png new file mode 100644 index 000000000..408e737ed Binary files /dev/null and b/shopping_through_agent/static/description/assets/modules/whatsapp_product_inquiry.png differ diff --git a/shopping_through_agent/static/description/assets/modules/woo_commerce.png b/shopping_through_agent/static/description/assets/modules/woo_commerce.png new file mode 100644 index 000000000..b24746c50 Binary files /dev/null and b/shopping_through_agent/static/description/assets/modules/woo_commerce.png differ diff --git a/shopping_through_agent/static/description/assets/screenshots/1.png b/shopping_through_agent/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..d0bf69672 Binary files /dev/null and b/shopping_through_agent/static/description/assets/screenshots/1.png differ diff --git a/shopping_through_agent/static/description/assets/screenshots/10.png b/shopping_through_agent/static/description/assets/screenshots/10.png new file mode 100644 index 000000000..ef7c84cee Binary files /dev/null and b/shopping_through_agent/static/description/assets/screenshots/10.png differ diff --git a/shopping_through_agent/static/description/assets/screenshots/11.png b/shopping_through_agent/static/description/assets/screenshots/11.png new file mode 100644 index 000000000..c397766c5 Binary files /dev/null and b/shopping_through_agent/static/description/assets/screenshots/11.png differ diff --git a/shopping_through_agent/static/description/assets/screenshots/12.png b/shopping_through_agent/static/description/assets/screenshots/12.png new file mode 100644 index 000000000..cc4d37b6b Binary files /dev/null and b/shopping_through_agent/static/description/assets/screenshots/12.png differ diff --git a/shopping_through_agent/static/description/assets/screenshots/2.png b/shopping_through_agent/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..fb4432dd9 Binary files /dev/null and b/shopping_through_agent/static/description/assets/screenshots/2.png differ diff --git a/shopping_through_agent/static/description/assets/screenshots/3.png b/shopping_through_agent/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..ef9e3b769 Binary files /dev/null and b/shopping_through_agent/static/description/assets/screenshots/3.png differ diff --git a/shopping_through_agent/static/description/assets/screenshots/4.png b/shopping_through_agent/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..4be82e835 Binary files /dev/null and b/shopping_through_agent/static/description/assets/screenshots/4.png differ diff --git a/shopping_through_agent/static/description/assets/screenshots/5.png b/shopping_through_agent/static/description/assets/screenshots/5.png new file mode 100644 index 000000000..28b5fe1f6 Binary files /dev/null and b/shopping_through_agent/static/description/assets/screenshots/5.png differ diff --git a/shopping_through_agent/static/description/assets/screenshots/5img.png b/shopping_through_agent/static/description/assets/screenshots/5img.png new file mode 100644 index 000000000..d63ed60e3 Binary files /dev/null and b/shopping_through_agent/static/description/assets/screenshots/5img.png differ diff --git a/shopping_through_agent/static/description/assets/screenshots/6.png b/shopping_through_agent/static/description/assets/screenshots/6.png new file mode 100644 index 000000000..a3e9bc596 Binary files /dev/null and b/shopping_through_agent/static/description/assets/screenshots/6.png differ diff --git a/shopping_through_agent/static/description/assets/screenshots/6img.png b/shopping_through_agent/static/description/assets/screenshots/6img.png new file mode 100644 index 000000000..720644c3d Binary files /dev/null and b/shopping_through_agent/static/description/assets/screenshots/6img.png differ diff --git a/shopping_through_agent/static/description/assets/screenshots/7.png b/shopping_through_agent/static/description/assets/screenshots/7.png new file mode 100644 index 000000000..16a927160 Binary files /dev/null and b/shopping_through_agent/static/description/assets/screenshots/7.png differ diff --git a/shopping_through_agent/static/description/assets/screenshots/8.png b/shopping_through_agent/static/description/assets/screenshots/8.png new file mode 100644 index 000000000..a5e0acd78 Binary files /dev/null and b/shopping_through_agent/static/description/assets/screenshots/8.png differ diff --git a/shopping_through_agent/static/description/assets/screenshots/9.png b/shopping_through_agent/static/description/assets/screenshots/9.png new file mode 100644 index 000000000..658fed9b4 Binary files /dev/null and b/shopping_through_agent/static/description/assets/screenshots/9.png differ diff --git a/shopping_through_agent/static/description/assets/screenshots/hero.gif b/shopping_through_agent/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..7914f27a6 Binary files /dev/null and b/shopping_through_agent/static/description/assets/screenshots/hero.gif differ diff --git a/shopping_through_agent/static/description/banner.png b/shopping_through_agent/static/description/banner.png new file mode 100644 index 000000000..f95ba0929 Binary files /dev/null and b/shopping_through_agent/static/description/banner.png differ diff --git a/shopping_through_agent/static/description/icon.png b/shopping_through_agent/static/description/icon.png new file mode 100644 index 000000000..2c0dbe916 Binary files /dev/null and b/shopping_through_agent/static/description/icon.png differ diff --git a/shopping_through_agent/static/description/index.html b/shopping_through_agent/static/description/index.html new file mode 100644 index 000000000..bfd3030b3 --- /dev/null +++ b/shopping_through_agent/static/description/index.html @@ -0,0 +1,711 @@ +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ +
+
+
+ +

+ Shopping Through Agent

+

+ This Module Enable Agents to Create Sale Orders from Website Shop on + behalf of the Customers.

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

+ Explore This + Module

+
+ + + + +
+
+ +
+

+ Overview +

+
+
+
+ Allows agents to create Sale Orders on the Website Shop on behalf of Customers, + facilitating the order process and providing a seamless purchasing experience for + customers who may need assistance. +
+
+ + +
+
+ +
+

+ Features +

+
+
+
+
+ + Enable a Customer as an Agent +
+
+
+
+ + Select an Agent for the Customer +
+
+
+
+ + Agent can select the Customer +
+
+
+
+ + Change the Sale Order address to the + Customer +
+
+
+ + + +
+
+ +
+

+ Screenshots +

+
+
+
+ +
+

+ Enable Is Agent to set the Customer as an Agent. +

+ +
+
+

+ Customers can Select an Agent from the List of Agents in + the designated 'Agent' field. +

+ +
+

+ If you are an Agent and open the Website, you will find a new Menu + titled 'Agent Shop'. +

+ +
+

+ If you click the Menu, it will open a new + Page for selecting the Customer. From there, + the Agent can choose the Customer and + proceed to Shop by clicking on 'Shop Now' as + the Customer. +

+ +
+

+ On the payment page, you can view the + Customer's Address and edit it by clicking + the Pencil Icon. +

+ +
+

+ On the Shipping page, you can observe that + the Address is set to the Customer's. +

+ +
+

+ When you Print the Sale Order, you will see + that the Agent Name is displayed in the + report. +

+ +
+

+ From the backend, you can view the Agent + associated with the created Sale Order. +

+ +
+

+ From the Sale Order in the Customer Portal, + the Customer can view the Agent Name. +

+ +
+

+ From the backend, you can view the Agent + associated with the created Invoice. +

+ +
+

+ From the Invoice in the Customer Portal, the + Customer can view the Agent Name. +

+ +
+

+ When you print or download the Invoice, you + will see that the Agent Name is displayed in + the report. +

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

+ Related + Products +

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

+ Our Services +

+
+ +
+
+
+
+ +
+
+ Odoo + Customization
+
+ +
+
+ +
+
+ Odoo + Implementation
+
+ +
+
+ +
+
+ Odoo + Support
+
+ + +
+
+ +
+
+ Hire + Odoo + Developer
+
+ +
+
+ +
+
+ Odoo + Integration
+
+ +
+
+ +
+
+ Odoo + Migration
+
+ + +
+
+ +
+
+ Odoo + Consultancy
+
+ +
+
+ +
+
+ Odoo + Implementation
+
+ +
+
+ +
+
+ Odoo + Licensing Consultancy
+
+
+ +
+ + + + + +
+
+ +
+

+ Our + Industries +

+
+ +
+
+
+
+ +
+ Trading +
+

+ Easily procure + and + sell your products

+
+
+ +
+
+ +
+ POS +
+

+ Easy + configuration + and convivial experience

+
+
+ +
+
+ +
+ Education +
+

+ A platform for + educational management

+
+
+ +
+
+ +
+ Manufacturing +
+

+ Plan, track and + schedule your operations

+
+
+ +
+
+ +
+ E-commerce & Website +
+

+ Mobile + friendly, + awe-inspiring product pages

+
+
+ +
+
+ +
+ Service Management +
+

+ Keep track of + services and invoice

+
+
+ +
+
+ +
+ Restaurant +
+

+ Run your bar or + restaurant methodically

+
+
+ +
+
+ +
+ Hotel Management +
+

+ An + all-inclusive + hotel management application

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

+ Support +

+
+
+
+
+
+
+ +
+
+

Need Help?

+

Got questions or need help? + Get in touch.

+ +

+ odoo@cybrosys.com

+
+
+
+
+
+
+
+ +
+
+

WhatsApp

+

Say hi to us on WhatsApp!

+ +

+ +91 86068 + 27707

+
+
+
+
+
+
+
+ +
+
+
+ \ No newline at end of file diff --git a/shopping_through_agent/views/account_move_views.xml b/shopping_through_agent/views/account_move_views.xml new file mode 100644 index 000000000..4363b096f --- /dev/null +++ b/shopping_through_agent/views/account_move_views.xml @@ -0,0 +1,16 @@ + + + + + account.move.view.form.inherit.shopping.through.agent + account.move + + + + + + + + diff --git a/shopping_through_agent/views/agent_shop_template.xml b/shopping_through_agent/views/agent_shop_template.xml new file mode 100644 index 000000000..fdabd1372 --- /dev/null +++ b/shopping_through_agent/views/agent_shop_template.xml @@ -0,0 +1,37 @@ + + + + + diff --git a/shopping_through_agent/views/invoice_report_template.xml b/shopping_through_agent/views/invoice_report_template.xml new file mode 100644 index 000000000..ef050b191 --- /dev/null +++ b/shopping_through_agent/views/invoice_report_template.xml @@ -0,0 +1,15 @@ + + + + + diff --git a/shopping_through_agent/views/res_partner_views.xml b/shopping_through_agent/views/res_partner_views.xml new file mode 100644 index 000000000..46299d2ba --- /dev/null +++ b/shopping_through_agent/views/res_partner_views.xml @@ -0,0 +1,16 @@ + + + + + res.partner.view.form.inherit.shopping.through.agent + res.partner + + + + + + + + + diff --git a/shopping_through_agent/views/sale_order_portal_template.xml b/shopping_through_agent/views/sale_order_portal_template.xml new file mode 100644 index 000000000..db6f9536d --- /dev/null +++ b/shopping_through_agent/views/sale_order_portal_template.xml @@ -0,0 +1,13 @@ + + + + + diff --git a/shopping_through_agent/views/sale_order_report_template.xml b/shopping_through_agent/views/sale_order_report_template.xml new file mode 100644 index 000000000..b52cd2cd7 --- /dev/null +++ b/shopping_through_agent/views/sale_order_report_template.xml @@ -0,0 +1,15 @@ + + + + + diff --git a/shopping_through_agent/views/sale_order_views.xml b/shopping_through_agent/views/sale_order_views.xml new file mode 100644 index 000000000..75936fa7f --- /dev/null +++ b/shopping_through_agent/views/sale_order_views.xml @@ -0,0 +1,15 @@ + + + + + sale.order.view.form.inherit.shopping.through.agent + sale.order + + + + + + + + diff --git a/shopping_through_agent/views/website_sale_templates.xml b/shopping_through_agent/views/website_sale_templates.xml new file mode 100644 index 000000000..524db0cea --- /dev/null +++ b/shopping_through_agent/views/website_sale_templates.xml @@ -0,0 +1,21 @@ + + + + +