diff --git a/shopping_through_agent/README.rst b/shopping_through_agent/README.rst new file mode 100644 index 000000000..cf5b6befd --- /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 enables agent to create sale orders on a website shop +on behalf of the customer. + +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 (odoo@cybrosys.com) + 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..b6b1b7f05 --- /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: MOHAMMED DILSHAD TK (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..9a6e593d1 --- /dev/null +++ b/shopping_through_agent/__manifest__.py @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: MOHAMMED DILSHAD TK (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': '16.0.1.0.0', + 'category': 'eCommerce', + 'summary': 'Agent can shop onbehalf of the customer.', + 'description': "Enables agent to create sale orders on a website shop on " + "behalf of the customer.", + '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..8c4e897fc --- /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: MOHAMMED DILSHAD TK (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..6ebec8c39 --- /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: MOHAMMED DILSHAD TK (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..c279a3a10 --- /dev/null +++ b/shopping_through_agent/controllers/website_sale.py @@ -0,0 +1,156 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: MOHAMMED DILSHAD TK (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 import main +from odoo.http import request + + +class WebsiteSale(main.WebsiteSale): + """Class to inherit the functions in the website sale""" + + 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().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 + + 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 _prepare_shop_payment_confirmation_values(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()._prepare_shop_payment_confirmation_values(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 + + 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.""" + 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..cd64ef381 --- /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..256d5d63a --- /dev/null +++ b/shopping_through_agent/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 20.04.2024 +#### Version 16.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..4d8f49e0d --- /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: MOHAMMED DILSHAD TK (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..b57474f42 --- /dev/null +++ b/shopping_through_agent/models/account_move.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: MOHAMMED DILSHAD TK (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 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..6a1c6bd13 --- /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: MOHAMMED DILSHAD TK (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 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): + """On change 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..3417617fe --- /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: MOHAMMED DILSHAD TK (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 in sale order""" + _inherit = 'sale.order' + + agent_id = fields.Many2one( + 'res.partner', 'Agent', + help='Select a 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..0e30332b2 --- /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: Ashok PK (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/1.png b/shopping_through_agent/static/description/assets/modules/1.png new file mode 100644 index 000000000..ed175b076 Binary files /dev/null and b/shopping_through_agent/static/description/assets/modules/1.png differ diff --git a/shopping_through_agent/static/description/assets/modules/2.png b/shopping_through_agent/static/description/assets/modules/2.png new file mode 100644 index 000000000..cbcc848e2 Binary files /dev/null and b/shopping_through_agent/static/description/assets/modules/2.png differ diff --git a/shopping_through_agent/static/description/assets/modules/3.png b/shopping_through_agent/static/description/assets/modules/3.png new file mode 100644 index 000000000..acf97a878 Binary files /dev/null and b/shopping_through_agent/static/description/assets/modules/3.png differ diff --git a/shopping_through_agent/static/description/assets/modules/4.png b/shopping_through_agent/static/description/assets/modules/4.png new file mode 100644 index 000000000..1d2238b80 Binary files /dev/null and b/shopping_through_agent/static/description/assets/modules/4.png differ diff --git a/shopping_through_agent/static/description/assets/modules/5.png b/shopping_through_agent/static/description/assets/modules/5.png new file mode 100644 index 000000000..e703ae21b Binary files /dev/null and b/shopping_through_agent/static/description/assets/modules/5.png differ diff --git a/shopping_through_agent/static/description/assets/modules/6.png b/shopping_through_agent/static/description/assets/modules/6.png new file mode 100644 index 000000000..7a9d3b1f6 Binary files /dev/null and b/shopping_through_agent/static/description/assets/modules/6.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..938f9c468 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..ab2dae0b3 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..c715a26ea 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/2img.png b/shopping_through_agent/static/description/assets/screenshots/2img.png new file mode 100644 index 000000000..c37db76ff Binary files /dev/null and b/shopping_through_agent/static/description/assets/screenshots/2img.png differ diff --git a/shopping_through_agent/static/description/assets/screenshots/3img.png b/shopping_through_agent/static/description/assets/screenshots/3img.png new file mode 100644 index 000000000..1c488a016 Binary files /dev/null and b/shopping_through_agent/static/description/assets/screenshots/3img.png differ diff --git a/shopping_through_agent/static/description/assets/screenshots/4img.png b/shopping_through_agent/static/description/assets/screenshots/4img.png new file mode 100644 index 000000000..e5790aa70 Binary files /dev/null and b/shopping_through_agent/static/description/assets/screenshots/4img.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/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/7img.png b/shopping_through_agent/static/description/assets/screenshots/7img.png new file mode 100644 index 000000000..45a7c5ee7 Binary files /dev/null and b/shopping_through_agent/static/description/assets/screenshots/7img.png differ diff --git a/shopping_through_agent/static/description/assets/screenshots/8img.png b/shopping_through_agent/static/description/assets/screenshots/8img.png new file mode 100644 index 000000000..f26da1754 Binary files /dev/null and b/shopping_through_agent/static/description/assets/screenshots/8img.png differ diff --git a/shopping_through_agent/static/description/assets/screenshots/9img.png b/shopping_through_agent/static/description/assets/screenshots/9img.png new file mode 100644 index 000000000..fa33921c6 Binary files /dev/null and b/shopping_through_agent/static/description/assets/screenshots/9img.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..063866b4b Binary files /dev/null and b/shopping_through_agent/static/description/assets/screenshots/hero.gif differ diff --git a/shopping_through_agent/static/description/assets/screenshots/img1.png b/shopping_through_agent/static/description/assets/screenshots/img1.png new file mode 100644 index 000000000..23beb0889 Binary files /dev/null and b/shopping_through_agent/static/description/assets/screenshots/img1.png 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..a5b5600aa 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..9ee154c02 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..105f08b16 --- /dev/null +++ b/shopping_through_agent/static/description/index.html @@ -0,0 +1,709 @@ +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ +
+
+
+ +

+ Shopping Through Agent

+

This Module Adds a + Agent can Shop on Behalf of the Customer.

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

+ Explore This + Module

+
+ + + + +
+
+ +
+

+ Overview +

+
+
+
+ This module enables agent to create sale orders on a website shop on + instead of the customer +
+
+ + +
+
+ +
+

+ 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 shipping page, you can observe that + the address is set to the Customer's. +

+ +
+

+ On the payment page, you can view the + Customer's address and edit it by clicking + the pencil icon. +

+ +
+

+ When you print the Sale Order, you will see + that the Agent Name is displayed on the + page. +

+ +
+

+ 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 on + the page. +

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

+ 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..f9d1f118a --- /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..710f627db --- /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..f4995c95e --- /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..5893382a9 --- /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..e7b9f5839 --- /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..df8cf47c4 --- /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..a2153c2cb --- /dev/null +++ b/shopping_through_agent/views/website_sale_templates.xml @@ -0,0 +1,21 @@ + + + + +