diff --git a/vendor_portal_odoo/README.rst b/vendor_portal_odoo/README.rst new file mode 100755 index 000000000..a06b25344 --- /dev/null +++ b/vendor_portal_odoo/README.rst @@ -0,0 +1,48 @@ +.. image:: https://img.shields.io/badge/license-LGPL--3-green.svg + :target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 + +Odoo Vendor Portal +================== +* This module helps to sent quotations for a product to multiple vendors and vendors can add their price in their portal and can choose best quotation for product. + +Configuration +============= +* No additional configurations needed + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +General Public License, Version 3 (LGPL v3). +(https://www.gnu.org/licenses/lgpl-3.0-standalone.html) + +Credits +------- +* Developer: (V17) Ashwin A, + (V18) Akhil, + 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/vendor_portal_odoo/__init__.py b/vendor_portal_odoo/__init__.py new file mode 100755 index 000000000..b7d69c66c --- /dev/null +++ b/vendor_portal_odoo/__init__.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-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 controllers +from . import models +from . import wizard diff --git a/vendor_portal_odoo/__manifest__.py b/vendor_portal_odoo/__manifest__.py new file mode 100755 index 000000000..fface7fef --- /dev/null +++ b/vendor_portal_odoo/__manifest__.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-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': 'Odoo Vendor Portal', + 'version': '18.0.1.0.0', + 'category': 'Purchases', + 'summary': """Vendor Portal Management in Odoo""", + 'description': """This module helps to sent quotations for a product + to multiple vendors and vendors can add their + price in their portal, and can choose best quotation for product""", + 'author': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'depends': ['website', 'purchase', 'portal', 'contacts', 'stock'], + 'data': [ + 'security/vendor_rfq_security.xml', + 'security/ir.model.access.csv', + 'data/rfq_sequence.xml', + 'data/rfq_mail_templates.xml', + 'data/rfq_cron.xml', + 'wizard/register_vendor_views.xml', + 'views/res_partner_views.xml', + 'views/vendor_rfq_views.xml', + 'views/res_config_settings_views.xml', + 'views/portal_rfq_templates.xml', + 'views/vendor_portal_menus.xml', + 'wizard/rfq_done_views.xml', + ], + 'images': ['static/description/banner.png'], + 'license': 'LGPL-3', + 'installable': True, + 'auto_install': False, + 'application': True, +} diff --git a/vendor_portal_odoo/controllers/__init__.py b/vendor_portal_odoo/controllers/__init__.py new file mode 100755 index 000000000..a51cbd160 --- /dev/null +++ b/vendor_portal_odoo/controllers/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-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 vendor_portal_odoo diff --git a/vendor_portal_odoo/controllers/vendor_portal_odoo.py b/vendor_portal_odoo/controllers/vendor_portal_odoo.py new file mode 100755 index 000000000..a187f4e12 --- /dev/null +++ b/vendor_portal_odoo/controllers/vendor_portal_odoo.py @@ -0,0 +1,144 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-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 collections import OrderedDict +from odoo import http, _ +from odoo.http import request +from odoo.addons.portal.controllers.portal import pager as portal_pager, \ + CustomerPortal + + +class RFQCustomerPortal(CustomerPortal): + + def _prepare_home_portal_values(self, counter): + """Retrieves and prepares the values to be displayed on the home portal + for the user.""" + values = super()._prepare_home_portal_values(counter) + partner_id = request.env.user.partner_id + values['my_rfq_count'] = request.env['vendor.rfq'].sudo().search_count( + [('vendor_ids', 'in', partner_id.ids), + ('state', 'not in', ['draft'])]) + return values + + def _rfq_get_page_view_values(self, vendor_rfq, access_token, **kwargs): + """RFQ Page values""" + values = { + 'page_name': 'vendor_rfq', + 'vendor_rfq': vendor_rfq, + } + return self._get_page_view_values(vendor_rfq, access_token, values, + 'my_rfq_history', False, **kwargs) + + @http.route(['/my/vendor_rfqs', '/my/vendor_rfqs/page/'], + type='http', auth="public", website=True) + def portal_my_vendor_rfqs(self, page=1, date_begin=None, + date_end=None, sortby=None, filterby=None, **kw): + """ Displays the portal page for vendor RFQs (Request for Quotations) + for the logged-in user.This method is responsible for rendering the + vendor RFQs in the portal with various filtering, sorting, and + pagination options.""" + values = self._prepare_portal_layout_values() + user_partner = request.env.user.partner_id + vendor_rfq = request.env['vendor.rfq'].sudo().search([]) + domain = [ + ('vendor_ids', 'in', user_partner.ids), + ('state', 'not in', ['draft'])] + if date_begin and date_end: + domain += [('create_date', '>', date_begin), + ('create_date', '<=', date_end)] + + searchbar_sortings = { + 'date': {'label': _('Newest'), + 'order': 'create_date desc, id desc'}, + 'name': {'label': _('Name'), 'order': 'name asc, id asc'}, + } + if not sortby: + sortby = 'name' + order = searchbar_sortings[sortby]['order'] + searchbar_filters = { + 'all': {'label': _('All'), 'domain': [ + ('state', 'in', ['draft', 'in_progress', 'pending', + 'done', 'cancel'])]}, + 'Done': {'label': _('Done'), 'domain': [('state', '=', 'done')]}, + 'In Progress': {'label': _('In Progress'), + 'domain': [('state', '=', 'in_progress')]}, + } + # default filter by value + if not filterby: + filterby = 'all' + domain += searchbar_filters[filterby]['domain'] + rfq_unit_count = vendor_rfq.search_count(domain) + pager = portal_pager( + url="/my/vendor_rfqs", + url_args={'date_begin': date_begin, 'date_end': date_end, + 'sortby': sortby, 'filterby': filterby}, + total=rfq_unit_count, + page=page, + step=self._items_per_page + ) + + orders = vendor_rfq.search( + domain, + order=order, + limit=self._items_per_page, + offset=pager['offset'] + ) + values.update({ + 'date': date_begin, + 'rfqs': orders, + 'page_name': 'vendor_rfq', + 'pager': pager, + 'searchbar_sortings': searchbar_sortings, + 'sortby': sortby, + 'searchbar_filters': OrderedDict(sorted(searchbar_filters.items())), + 'filterby': filterby, + 'default_url': '/my/vendor_rfqs', + }) + return request.render( + "vendor_portal_odoo.portal_my_rfq", + values) + + @http.route(['/my/vendor_rfq/'], type='http', auth="public", + website=True) + def portal_my_vendor_rfq(self, rfq_id, access_token=None, **kw): + """ Displays the details of a specific vendor RFQ (Request for Quotation) + for the logged-in user.""" + rfq_details = request.env['vendor.rfq'].sudo().browse(int(rfq_id)) + vendor_quote = rfq_details.vendor_quote_history_ids.filtered( + lambda x: x.vendor_id.id == request.env.user.partner_id.id) + quoted_price = vendor_quote.quoted_price + values = self._rfq_get_page_view_values(rfq_details, access_token, **kw) + values['quoted_price'] = quoted_price + values['vendor_quote'] = vendor_quote + return request.render( + "vendor_portal_odoo.portal_my_vendor_rfq", values) + + @http.route(['/quote/details'], type='http', auth="public", website=True) + def quote_details(self, **post): + """Handle the submission of a vendor's quote details.""" + request.env['vendor.quote.history'].sudo().create({ + 'vendor_id': request.env.user.partner_id.id, + 'quoted_price': float(post.get('price')), + 'estimate_date': post.get('delivery_date'), + 'note': post.get('additional_note'), + 'quote_id': post.get('rfq_id'), + }) + return request.redirect('/my/vendor_rfq/%s' % (post.get('rfq_id'))) diff --git a/vendor_portal_odoo/data/rfq_cron.xml b/vendor_portal_odoo/data/rfq_cron.xml new file mode 100755 index 000000000..cb9ed40b6 --- /dev/null +++ b/vendor_portal_odoo/data/rfq_cron.xml @@ -0,0 +1,13 @@ + + + + + Set RFQs as Done + + code + model.set_rfq_done() + + 1 + days + + diff --git a/vendor_portal_odoo/data/rfq_mail_templates.xml b/vendor_portal_odoo/data/rfq_mail_templates.xml new file mode 100755 index 000000000..4145f6f46 --- /dev/null +++ b/vendor_portal_odoo/data/rfq_mail_templates.xml @@ -0,0 +1,77 @@ + + + + + + Purchase Order: Send RFQ + + RFQ Request + {{ ctx.get('partner_to') }} + +
+

+ Dear , +
+
+ We would like to request a quotation for the Product + + of + + + Quantity from you. +
+
+ If you are interested, please check and let us know the quote +
+
+ Best regards, +
+ +

+
+
+ {{ ctx.get('lang') }} + +
+ + + Purchase Order: Quote Accepted + + Quote Accepted + {{ ctx.get('partner_to') }} + +
+

+ Dear, +
+
+ We want to let you know that we accept your quoted price of + + for the + + within your specified delivery date + + from you. +
+
+ We'd like to buy + + units of + + from you by the estimated date. +
+ We will send you a purchase order as soon as possible. +
+
+ Best regards, +
+ +

+
+
+ {{ ctx.get('lang') }} + +
+
+
\ No newline at end of file diff --git a/vendor_portal_odoo/data/rfq_sequence.xml b/vendor_portal_odoo/data/rfq_sequence.xml new file mode 100755 index 000000000..56f40e905 --- /dev/null +++ b/vendor_portal_odoo/data/rfq_sequence.xml @@ -0,0 +1,13 @@ + + + + + + RFQ Sequence + vendor.rfq + RFQ + 5 + + + + \ No newline at end of file diff --git a/vendor_portal_odoo/doc/RELEASE_NOTES.md b/vendor_portal_odoo/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..dcff04a06 --- /dev/null +++ b/vendor_portal_odoo/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 26.03.2025 +#### Version 18.0.1.0.0 +##### ADD +-Initial Commit for Odoo Vendor Portal diff --git a/vendor_portal_odoo/models/__init__.py b/vendor_portal_odoo/models/__init__.py new file mode 100755 index 000000000..e85edf65c --- /dev/null +++ b/vendor_portal_odoo/models/__init__.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-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 res_config_settings +from . import res_partner +from . import vendor_quote_history +from . import vendor_rfq diff --git a/vendor_portal_odoo/models/res_config_settings.py b/vendor_portal_odoo/models/res_config_settings.py new file mode 100755 index 000000000..ee02214fa --- /dev/null +++ b/vendor_portal_odoo/models/res_config_settings.py @@ -0,0 +1,73 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-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 ResConfigSettings(models.TransientModel): + """Class used to add field to res.config.settings""" + _inherit = 'res.config.settings' + + rfq_done_based_on = fields.Selection([ + ('based_on_price', 'Minimum Quoted Price'), + ('based_on_delivery_time', 'Minimum Delivery time') + ], string="Set RFQs Based on", default='based_on_price', help='RFQ Based On') + quote_submission_msg = fields.Text("Quote Submission", + help="Status message to display if a quote was submitted") + quote_accept_msg = fields.Text("Quote Acceptance", + help="Status message to display if a quote was accepted") + quote_not_accept_msg = fields.Text("Quote not Accepted", + help="Status message to display if a quote was not accepted" + ) + quote_cancel_msg = fields.Text("Quote Cancelled", + help="Status message to display if a quote was cancelled") + quote_to_po_msg = fields.Text("PO created for the RFQ", + help="Status message to display if a quote was converted to PO") + + def set_values(self): + """Setting field values""" + res = super(ResConfigSettings, self).set_values() + config_parm = self.env['ir.config_parameter'].sudo() + config_parm.set_param( + 'vendor_portal_odoo.rfq_done_based_on', self.rfq_done_based_on) + config_parm.set_param( + 'vendor_portal_odoo.quote_submission_msg', self.quote_submission_msg) + config_parm.set_param( + 'vendor_portal_odoo.quote_accept_msg', self.quote_accept_msg) + config_parm.set_param( + 'vendor_portal_odoo.quote_not_accept_msg', self.quote_not_accept_msg) + config_parm.set_param( + 'vendor_portal_odoo.quote_cancel_msg', self.quote_cancel_msg) + config_parm.set_param( + 'vendor_portal_odoo.quote_to_po_msg', self.quote_to_po_msg) + return res + + def get_values(self): + """Getting field values""" + res = super(ResConfigSettings, self).get_values() + config_parm = self.env['ir.config_parameter'].sudo() + res['rfq_done_based_on'] = config_parm.get_param('vendor_portal_odoo.rfq_done_based_on') + res['quote_submission_msg'] = config_parm.get_param('vendor_portal_odoo.quote_submission_msg') + res['quote_accept_msg'] = config_parm.get_param('vendor_portal_odoo.quote_accept_msg') + res['quote_not_accept_msg'] = config_parm.get_param('vendor_portal_odoo.quote_not_accept_msg') + res['quote_cancel_msg'] = config_parm.get_param('vendor_portal_odoo.quote_cancel_msg') + res['quote_to_po_msg'] = config_parm.get_param('vendor_portal_odoo.quote_to_po_msg') + return res diff --git a/vendor_portal_odoo/models/res_partner.py b/vendor_portal_odoo/models/res_partner.py new file mode 100755 index 000000000..65c3f18de --- /dev/null +++ b/vendor_portal_odoo/models/res_partner.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-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 ResPartner(models.Model): + """Class used to add field to res.partner for differentiate + registered vendors""" + _inherit = 'res.partner' + + is_registered = fields.Boolean("Is Registered Vendor", default=False, + help="To denote the is the partner is " + "registered as vendor") diff --git a/vendor_portal_odoo/models/vendor_quote_history.py b/vendor_portal_odoo/models/vendor_quote_history.py new file mode 100644 index 000000000..7b9fe17ce --- /dev/null +++ b/vendor_portal_odoo/models/vendor_quote_history.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-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 VendorQuoteHistory(models.Model): + """Vendor Quotation History""" + _name = 'vendor.quote.history' + _description = "Vendor Quotation History" + _rec_name = 'vendor_id' + + vendor_id = fields.Many2one('res.partner', + domain="[('is_registered', '=', True)]", + string="Vendor", + help="Select Vendor") + quoted_price = fields.Monetary(currency_field='currency_id', + help="Quoted Price") + currency_id = fields.Many2one('res.currency', string='Currency', + help="Currency", + required=True, + default=lambda + self: self.env.user.company_id.currency_id) + estimate_date = fields.Date(string="Estimate date", help="Estimated Date") + note = fields.Text(string="Note", help="Additional Note") + quote_id = fields.Many2one('vendor.rfq', help="Quote ID") diff --git a/vendor_portal_odoo/models/vendor_rfq.py b/vendor_portal_odoo/models/vendor_rfq.py new file mode 100755 index 000000000..5d4b6f1d9 --- /dev/null +++ b/vendor_portal_odoo/models/vendor_rfq.py @@ -0,0 +1,184 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-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 api, fields, models, _ + + +class VendorRFQ(models.Model): + """Vendor RFQ model""" + _name = 'vendor.rfq' + _inherit = ['mail.thread', 'mail.activity.mixin'] + _description = 'Vendor RFQ' + + name = fields.Char('RFQ Reference', required=True, index=True, + help="Name", copy=False, default=lambda x: _('New')) + product_id = fields.Many2one('product.product', string='Product', + help="Select Product") + quantity = fields.Float(string="Quantity", help="Quantity Required") + uom_id = fields.Many2one('uom.uom', string='UoM', help="UOM") + estimated_quote = fields.Monetary("Estimated Quote", + currency_field='currency_id', + help="Estimated Quote Price") + currency_id = fields.Many2one('res.currency', string='Currency', + help="Currency", + required=True, + default=lambda + self: self.env.user.company_id.currency_id) + notes = fields.Html(string='Notes', help="Additional Note") + estimated_delivery_date = fields.Date(string="Delivery date", + help="Vendor's delivery date") + quote_date = fields.Date(default=fields.Datetime.now(), help="Quote Date ") + closing_date = fields.Date(string="Closing date", + help="Quotation closing date") + vendor_ids = fields.Many2many('res.partner', + domain="[('is_registered', '=', True)]", + help="Vendors you want to send quotations") + vendor_quote_history_ids = fields.One2many('vendor.quote.history', + 'quote_id', + string="Vendor Quote History", + help="Vendor Quote History") + user_id = fields.Many2one('res.users', default=lambda self: self.env.user, + string="Responsible", help="Responsible Person") + approved_vendor_id = fields.Many2one('res.partner', string="Approved Vendor", help="Approved Vendor") + order_id = fields.Many2one('purchase.order', string='Order ID', help="Order ID") + state = fields.Selection([ + ('draft', 'Draft'), + ('pending', 'Pending'), + ('in_progress', 'In Progress'), + ('done', 'Done'), + ('cancel', 'Cancelled'), ('order', 'Purchase Order'), + ], string="Status", default='draft', help="Different stages") + company_id = fields.Many2one( + 'res.company', string='Company', + default=lambda self: self.env.company, help="Select Company" + ) + + @api.model + def create(self, vals): + """Override the create method to assign a unique sequence to the + 'name' field.""" + if vals.get('name', 'New') == 'New': + vals['name'] = self.env['ir.sequence'].next_by_code( + 'vendor.rfq') or '/' + res = super(VendorRFQ, self).create(vals) + return res + + def action_send_by_mail(self): + """This method sends an email to each vendor listed in the `vendor_ids` + field, using a predefined email template. The template is personalized + with the vendor's name and language. The email is sent from the current + user's email address.""" + template = self.env.ref( + 'vendor_portal_odoo.email_template_vendor_rfq_request').id + for vendor in self.vendor_ids: + context = { + 'name': vendor.name, + 'lang': vendor.lang, + } + email_values = { + 'email_to': vendor.email, + 'email_from': self.env.user.partner_id.email, + } + self.env['mail.template'].browse(template).with_context( + context).send_mail(self.id, email_values=email_values, + force_send=True) + self.state = 'in_progress' + + def action_pending(self): + """For changing state to pending""" + self.state = 'pending' + + def action_cancel(self): + """For changing state to cancel""" + self.state = 'cancel' + + def action_done(self): + """For mark as done""" + + return { + 'type': 'ir.actions.act_window', + 'view_mode': 'form', + 'res_model': 'rfq.done', + 'target': 'new', + 'views': [[False, 'form']], + 'context': {'default_quote_ids': self.vendor_quote_history_ids.ids}, + } + + def action_create_quotation(self): + """For creating purchase RFQ from vendor quotations""" + rfq_quote = self.env['vendor.quote.history'].search([ + ('vendor_id', '=', self.approved_vendor_id.id), + ('quote_id', '=', self.id)]) + price = rfq_quote.quoted_price + order = self.env['purchase.order'].sudo().create({ + 'partner_id': self.approved_vendor_id.id, + 'order_line': [ + (0, 0, { + 'name': self.product_id.name, + 'product_id': self.product_id.id, + 'product_qty': self.quantity, + 'product_uom': self.product_id.uom_po_id.id, + 'price_unit': price, + 'date_planned': rfq_quote.estimate_date, + 'taxes_id': [(6, 0, self.product_id.supplier_taxes_id.ids)], + })], + }) + self.write({ + 'state': 'order', + 'order_id': order.id + }) + return { + 'type': 'ir.actions.act_window', + 'res_model': 'purchase.order', + 'res_id': order.id, + 'target': 'current', + 'views': [(False, 'form')], + } + + def set_rfq_done(self): + """Set the RFQ as done""" + quotes = self.search([('state', '=', 'in_progress'), + ('vendor_quote_history_ids', + '!=', False), + ('closing_date', '=', + fields.Date.today())]) + if quotes: + rfq_done_based_on = self.env['ir.config_parameter'].get_param( + 'vendor_portal_odoo.rfq_done_based_on') + for rec in quotes: + order = 'quoted_price asc' if rfq_done_based_on == 'based_on_price' else 'estimate_date asc' + vendor_quotes = rec.vendor_quote_history_ids.search([], + limit=1, + order=order) + rec.write({ + 'approved_vendor_id': vendor_quotes.vendor_id.id, + 'state': 'done' + }) + + def get_purchase_order(self): + """Retrieve the purchase order associated with the current record.""" + return { + 'type': 'ir.actions.act_window', + 'res_model': 'purchase.order', + 'res_id': self.order_id.id, + 'target': 'current', + 'views': [(False, 'form')], + } diff --git a/vendor_portal_odoo/security/ir.model.access.csv b/vendor_portal_odoo/security/ir.model.access.csv new file mode 100755 index 000000000..ea80a692c --- /dev/null +++ b/vendor_portal_odoo/security/ir.model.access.csv @@ -0,0 +1,5 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_register_vendor_wizard,access.register.vendor.wizard,model_register_vendor,base.group_user,1,1,1,1 +access_vendor_rfq,access.vendor.rfq,model_vendor_rfq,base.group_user,1,1,1,1 +access_vendor_quote_history,access.vendor.quote.history,model_vendor_quote_history,base.group_user,1,1,1,1 +access_vendor_rfq_quote_done,access.rfq.done,model_rfq_done,base.group_user,1,1,1,1 diff --git a/vendor_portal_odoo/security/vendor_rfq_security.xml b/vendor_portal_odoo/security/vendor_rfq_security.xml new file mode 100755 index 000000000..548c535a3 --- /dev/null +++ b/vendor_portal_odoo/security/vendor_rfq_security.xml @@ -0,0 +1,9 @@ + + + + + Vendor Quotation multi company rule + + ['|', ('company_id', '=', False), ('company_id', 'in', company_ids)] + + diff --git a/vendor_portal_odoo/static/description/assets/cybro-icon.png b/vendor_portal_odoo/static/description/assets/cybro-icon.png new file mode 100755 index 000000000..06e73e11d Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/cybro-icon.png differ diff --git a/vendor_portal_odoo/static/description/assets/cybro-odoo.png b/vendor_portal_odoo/static/description/assets/cybro-odoo.png new file mode 100755 index 000000000..ed02e07a4 Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/cybro-odoo.png differ diff --git a/vendor_portal_odoo/static/description/assets/h2.png b/vendor_portal_odoo/static/description/assets/h2.png new file mode 100755 index 000000000..0bfc4707d Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/h2.png differ diff --git a/vendor_portal_odoo/static/description/assets/icons/arrows-repeat.svg b/vendor_portal_odoo/static/description/assets/icons/arrows-repeat.svg new file mode 100755 index 000000000..1d7efabc5 --- /dev/null +++ b/vendor_portal_odoo/static/description/assets/icons/arrows-repeat.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/vendor_portal_odoo/static/description/assets/icons/banner-1.png b/vendor_portal_odoo/static/description/assets/icons/banner-1.png new file mode 100755 index 000000000..c180db172 Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/icons/banner-1.png differ diff --git a/vendor_portal_odoo/static/description/assets/icons/banner-2.svg b/vendor_portal_odoo/static/description/assets/icons/banner-2.svg new file mode 100755 index 000000000..e606d97d9 --- /dev/null +++ b/vendor_portal_odoo/static/description/assets/icons/banner-2.svg @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/vendor_portal_odoo/static/description/assets/icons/banner-bg.png b/vendor_portal_odoo/static/description/assets/icons/banner-bg.png new file mode 100755 index 000000000..a8238d3c0 Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/icons/banner-bg.png differ diff --git a/vendor_portal_odoo/static/description/assets/icons/banner-bg.svg b/vendor_portal_odoo/static/description/assets/icons/banner-bg.svg new file mode 100755 index 000000000..b1378103e --- /dev/null +++ b/vendor_portal_odoo/static/description/assets/icons/banner-bg.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/vendor_portal_odoo/static/description/assets/icons/banner-call.svg b/vendor_portal_odoo/static/description/assets/icons/banner-call.svg new file mode 100755 index 000000000..96c687e81 --- /dev/null +++ b/vendor_portal_odoo/static/description/assets/icons/banner-call.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/vendor_portal_odoo/static/description/assets/icons/banner-mail.svg b/vendor_portal_odoo/static/description/assets/icons/banner-mail.svg new file mode 100755 index 000000000..cbf0d158d --- /dev/null +++ b/vendor_portal_odoo/static/description/assets/icons/banner-mail.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/vendor_portal_odoo/static/description/assets/icons/banner-pattern.svg b/vendor_portal_odoo/static/description/assets/icons/banner-pattern.svg new file mode 100755 index 000000000..9c1c7e101 --- /dev/null +++ b/vendor_portal_odoo/static/description/assets/icons/banner-pattern.svg @@ -0,0 +1,343 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/vendor_portal_odoo/static/description/assets/icons/banner-promo.svg b/vendor_portal_odoo/static/description/assets/icons/banner-promo.svg new file mode 100755 index 000000000..d52791b11 --- /dev/null +++ b/vendor_portal_odoo/static/description/assets/icons/banner-promo.svg @@ -0,0 +1,147 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/vendor_portal_odoo/static/description/assets/icons/brand-pair.svg b/vendor_portal_odoo/static/description/assets/icons/brand-pair.svg new file mode 100755 index 000000000..d8db7fc1e --- /dev/null +++ b/vendor_portal_odoo/static/description/assets/icons/brand-pair.svg @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/vendor_portal_odoo/static/description/assets/icons/check.png b/vendor_portal_odoo/static/description/assets/icons/check.png new file mode 100755 index 000000000..c8e85f51d Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/icons/check.png differ diff --git a/vendor_portal_odoo/static/description/assets/icons/chevron.png b/vendor_portal_odoo/static/description/assets/icons/chevron.png new file mode 100755 index 000000000..2089293d6 Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/icons/chevron.png differ diff --git a/vendor_portal_odoo/static/description/assets/icons/close-icon.svg b/vendor_portal_odoo/static/description/assets/icons/close-icon.svg new file mode 100755 index 000000000..df8cce37a --- /dev/null +++ b/vendor_portal_odoo/static/description/assets/icons/close-icon.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/vendor_portal_odoo/static/description/assets/icons/cogs.png b/vendor_portal_odoo/static/description/assets/icons/cogs.png new file mode 100755 index 000000000..95d0bad62 Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/icons/cogs.png differ diff --git a/vendor_portal_odoo/static/description/assets/icons/collabarate-icon.svg b/vendor_portal_odoo/static/description/assets/icons/collabarate-icon.svg new file mode 100755 index 000000000..dd4e10518 --- /dev/null +++ b/vendor_portal_odoo/static/description/assets/icons/collabarate-icon.svg @@ -0,0 +1,3 @@ + + + diff --git a/vendor_portal_odoo/static/description/assets/icons/consultation.png b/vendor_portal_odoo/static/description/assets/icons/consultation.png new file mode 100755 index 000000000..8319d4baa Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/icons/consultation.png differ diff --git a/vendor_portal_odoo/static/description/assets/icons/cybro-logo.png b/vendor_portal_odoo/static/description/assets/icons/cybro-logo.png new file mode 100755 index 000000000..ff4b78220 Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/icons/cybro-logo.png differ diff --git a/vendor_portal_odoo/static/description/assets/icons/down.svg b/vendor_portal_odoo/static/description/assets/icons/down.svg new file mode 100755 index 000000000..f21c36271 --- /dev/null +++ b/vendor_portal_odoo/static/description/assets/icons/down.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/vendor_portal_odoo/static/description/assets/icons/ecom-black.png b/vendor_portal_odoo/static/description/assets/icons/ecom-black.png new file mode 100755 index 000000000..a9385ff13 Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/icons/ecom-black.png differ diff --git a/vendor_portal_odoo/static/description/assets/icons/education-black.png b/vendor_portal_odoo/static/description/assets/icons/education-black.png new file mode 100755 index 000000000..3eb09b27b Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/icons/education-black.png differ diff --git a/vendor_portal_odoo/static/description/assets/icons/faq.png b/vendor_portal_odoo/static/description/assets/icons/faq.png new file mode 100755 index 000000000..4250b5b81 Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/icons/faq.png differ diff --git a/vendor_portal_odoo/static/description/assets/icons/feature-icon.svg b/vendor_portal_odoo/static/description/assets/icons/feature-icon.svg new file mode 100755 index 000000000..fa0ea6850 --- /dev/null +++ b/vendor_portal_odoo/static/description/assets/icons/feature-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/vendor_portal_odoo/static/description/assets/icons/feature.png b/vendor_portal_odoo/static/description/assets/icons/feature.png new file mode 100755 index 000000000..ac7a785c0 Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/icons/feature.png differ diff --git a/vendor_portal_odoo/static/description/assets/icons/gear.svg b/vendor_portal_odoo/static/description/assets/icons/gear.svg new file mode 100755 index 000000000..0cc66b6ea --- /dev/null +++ b/vendor_portal_odoo/static/description/assets/icons/gear.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/vendor_portal_odoo/static/description/assets/icons/hero.gif b/vendor_portal_odoo/static/description/assets/icons/hero.gif new file mode 100644 index 000000000..72179d3f1 Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/icons/hero.gif differ diff --git a/vendor_portal_odoo/static/description/assets/icons/hire-odoo.svg b/vendor_portal_odoo/static/description/assets/icons/hire-odoo.svg new file mode 100755 index 000000000..e1ac089b0 --- /dev/null +++ b/vendor_portal_odoo/static/description/assets/icons/hire-odoo.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/vendor_portal_odoo/static/description/assets/icons/hotel-black.png b/vendor_portal_odoo/static/description/assets/icons/hotel-black.png new file mode 100755 index 000000000..130f613be Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/icons/hotel-black.png differ diff --git a/vendor_portal_odoo/static/description/assets/icons/license.png b/vendor_portal_odoo/static/description/assets/icons/license.png new file mode 100755 index 000000000..a5869797e Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/icons/license.png differ diff --git a/vendor_portal_odoo/static/description/assets/icons/life-ring-icon.svg b/vendor_portal_odoo/static/description/assets/icons/life-ring-icon.svg new file mode 100755 index 000000000..3ae6e1d89 --- /dev/null +++ b/vendor_portal_odoo/static/description/assets/icons/life-ring-icon.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/vendor_portal_odoo/static/description/assets/icons/lifebuoy.png b/vendor_portal_odoo/static/description/assets/icons/lifebuoy.png new file mode 100755 index 000000000..658d56ccc Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/icons/lifebuoy.png differ diff --git a/vendor_portal_odoo/static/description/assets/icons/mail.svg b/vendor_portal_odoo/static/description/assets/icons/mail.svg new file mode 100755 index 000000000..1eedde695 --- /dev/null +++ b/vendor_portal_odoo/static/description/assets/icons/mail.svg @@ -0,0 +1,3 @@ + + + diff --git a/vendor_portal_odoo/static/description/assets/icons/manufacturing-black.png b/vendor_portal_odoo/static/description/assets/icons/manufacturing-black.png new file mode 100755 index 000000000..697eb0e9f Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/icons/manufacturing-black.png differ diff --git a/vendor_portal_odoo/static/description/assets/icons/notes.png b/vendor_portal_odoo/static/description/assets/icons/notes.png new file mode 100755 index 000000000..ee5e95404 Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/icons/notes.png differ diff --git a/vendor_portal_odoo/static/description/assets/icons/notification icon.svg b/vendor_portal_odoo/static/description/assets/icons/notification icon.svg new file mode 100755 index 000000000..053189973 --- /dev/null +++ b/vendor_portal_odoo/static/description/assets/icons/notification icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/vendor_portal_odoo/static/description/assets/icons/odoo-consultancy.svg b/vendor_portal_odoo/static/description/assets/icons/odoo-consultancy.svg new file mode 100755 index 000000000..e05f65bde --- /dev/null +++ b/vendor_portal_odoo/static/description/assets/icons/odoo-consultancy.svg @@ -0,0 +1,4 @@ + + + + diff --git a/vendor_portal_odoo/static/description/assets/icons/odoo-licencing.svg b/vendor_portal_odoo/static/description/assets/icons/odoo-licencing.svg new file mode 100755 index 000000000..2606c88b0 --- /dev/null +++ b/vendor_portal_odoo/static/description/assets/icons/odoo-licencing.svg @@ -0,0 +1,3 @@ + + + diff --git a/vendor_portal_odoo/static/description/assets/icons/odoo-logo.png b/vendor_portal_odoo/static/description/assets/icons/odoo-logo.png new file mode 100755 index 000000000..0e4d0eb5a Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/icons/odoo-logo.png differ diff --git a/vendor_portal_odoo/static/description/assets/icons/patter.svg b/vendor_portal_odoo/static/description/assets/icons/patter.svg new file mode 100755 index 000000000..25c9c0a8f --- /dev/null +++ b/vendor_portal_odoo/static/description/assets/icons/patter.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/vendor_portal_odoo/static/description/assets/icons/pattern1.png b/vendor_portal_odoo/static/description/assets/icons/pattern1.png new file mode 100755 index 000000000..09ab0fb2d Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/icons/pattern1.png differ diff --git a/vendor_portal_odoo/static/description/assets/icons/pos-black.png b/vendor_portal_odoo/static/description/assets/icons/pos-black.png new file mode 100755 index 000000000..97c0f90c1 Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/icons/pos-black.png differ diff --git a/vendor_portal_odoo/static/description/assets/icons/puzzle-piece-icon.svg b/vendor_portal_odoo/static/description/assets/icons/puzzle-piece-icon.svg new file mode 100755 index 000000000..3e9ad9373 --- /dev/null +++ b/vendor_portal_odoo/static/description/assets/icons/puzzle-piece-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/vendor_portal_odoo/static/description/assets/icons/puzzle.png b/vendor_portal_odoo/static/description/assets/icons/puzzle.png new file mode 100755 index 000000000..65cf854e7 Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/icons/puzzle.png differ diff --git a/vendor_portal_odoo/static/description/assets/icons/replace-icon.svg b/vendor_portal_odoo/static/description/assets/icons/replace-icon.svg new file mode 100755 index 000000000..d0e3a7af1 --- /dev/null +++ b/vendor_portal_odoo/static/description/assets/icons/replace-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/vendor_portal_odoo/static/description/assets/icons/restaurant-black.png b/vendor_portal_odoo/static/description/assets/icons/restaurant-black.png new file mode 100755 index 000000000..4a35eb939 Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/icons/restaurant-black.png differ diff --git a/vendor_portal_odoo/static/description/assets/icons/screenshot-main.png b/vendor_portal_odoo/static/description/assets/icons/screenshot-main.png new file mode 100755 index 000000000..575f8e676 Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/icons/screenshot-main.png differ diff --git a/vendor_portal_odoo/static/description/assets/icons/screenshot.png b/vendor_portal_odoo/static/description/assets/icons/screenshot.png new file mode 100755 index 000000000..cef272529 Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/icons/screenshot.png differ diff --git a/vendor_portal_odoo/static/description/assets/icons/service-black.png b/vendor_portal_odoo/static/description/assets/icons/service-black.png new file mode 100755 index 000000000..301ab51cb Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/icons/service-black.png differ diff --git a/vendor_portal_odoo/static/description/assets/icons/skype-fill.svg b/vendor_portal_odoo/static/description/assets/icons/skype-fill.svg new file mode 100755 index 000000000..c17423639 --- /dev/null +++ b/vendor_portal_odoo/static/description/assets/icons/skype-fill.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/vendor_portal_odoo/static/description/assets/icons/skype.png b/vendor_portal_odoo/static/description/assets/icons/skype.png new file mode 100755 index 000000000..51b409fb3 Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/icons/skype.png differ diff --git a/vendor_portal_odoo/static/description/assets/icons/skype.svg b/vendor_portal_odoo/static/description/assets/icons/skype.svg new file mode 100755 index 000000000..df3dad39b --- /dev/null +++ b/vendor_portal_odoo/static/description/assets/icons/skype.svg @@ -0,0 +1,3 @@ + + + diff --git a/vendor_portal_odoo/static/description/assets/icons/star-1.svg b/vendor_portal_odoo/static/description/assets/icons/star-1.svg new file mode 100755 index 000000000..7e55ab162 --- /dev/null +++ b/vendor_portal_odoo/static/description/assets/icons/star-1.svg @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/vendor_portal_odoo/static/description/assets/icons/star-2.svg b/vendor_portal_odoo/static/description/assets/icons/star-2.svg new file mode 100755 index 000000000..5ae9f507a --- /dev/null +++ b/vendor_portal_odoo/static/description/assets/icons/star-2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/vendor_portal_odoo/static/description/assets/icons/support.png b/vendor_portal_odoo/static/description/assets/icons/support.png new file mode 100755 index 000000000..4f18b8b82 Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/icons/support.png differ diff --git a/vendor_portal_odoo/static/description/assets/icons/test-1 - Copy.png b/vendor_portal_odoo/static/description/assets/icons/test-1 - Copy.png new file mode 100755 index 000000000..f6a902663 Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/icons/test-1 - Copy.png differ diff --git a/vendor_portal_odoo/static/description/assets/icons/test-1.png b/vendor_portal_odoo/static/description/assets/icons/test-1.png new file mode 100755 index 000000000..0908add2b Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/icons/test-1.png differ diff --git a/vendor_portal_odoo/static/description/assets/icons/test-2.png b/vendor_portal_odoo/static/description/assets/icons/test-2.png new file mode 100755 index 000000000..4671fe91e Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/icons/test-2.png differ diff --git a/vendor_portal_odoo/static/description/assets/icons/trading-black.png b/vendor_portal_odoo/static/description/assets/icons/trading-black.png new file mode 100755 index 000000000..9398ba2f1 Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/icons/trading-black.png differ diff --git a/vendor_portal_odoo/static/description/assets/icons/training.png b/vendor_portal_odoo/static/description/assets/icons/training.png new file mode 100755 index 000000000..884ca024d Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/icons/training.png differ diff --git a/vendor_portal_odoo/static/description/assets/icons/translate.svg b/vendor_portal_odoo/static/description/assets/icons/translate.svg new file mode 100755 index 000000000..af9c8a1aa --- /dev/null +++ b/vendor_portal_odoo/static/description/assets/icons/translate.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/vendor_portal_odoo/static/description/assets/icons/update.png b/vendor_portal_odoo/static/description/assets/icons/update.png new file mode 100755 index 000000000..ecbc5a01a Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/icons/update.png differ diff --git a/vendor_portal_odoo/static/description/assets/icons/user.png b/vendor_portal_odoo/static/description/assets/icons/user.png new file mode 100755 index 000000000..6ffb23d9f Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/icons/user.png differ diff --git a/vendor_portal_odoo/static/description/assets/icons/video.png b/vendor_portal_odoo/static/description/assets/icons/video.png new file mode 100755 index 000000000..576705b17 Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/icons/video.png differ diff --git a/vendor_portal_odoo/static/description/assets/icons/whatsapp.png b/vendor_portal_odoo/static/description/assets/icons/whatsapp.png new file mode 100755 index 000000000..d513a5356 Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/icons/whatsapp.png differ diff --git a/vendor_portal_odoo/static/description/assets/icons/wrench-icon.svg b/vendor_portal_odoo/static/description/assets/icons/wrench-icon.svg new file mode 100755 index 000000000..174b5a465 --- /dev/null +++ b/vendor_portal_odoo/static/description/assets/icons/wrench-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/vendor_portal_odoo/static/description/assets/icons/wrench.png b/vendor_portal_odoo/static/description/assets/icons/wrench.png new file mode 100755 index 000000000..6c04dea0f Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/icons/wrench.png differ diff --git a/vendor_portal_odoo/static/description/assets/modules/1.jpg b/vendor_portal_odoo/static/description/assets/modules/1.jpg new file mode 100644 index 000000000..3cb15fe01 Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/modules/1.jpg differ diff --git a/vendor_portal_odoo/static/description/assets/modules/2.jpg b/vendor_portal_odoo/static/description/assets/modules/2.jpg new file mode 100644 index 000000000..662cadcc3 Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/modules/2.jpg differ diff --git a/vendor_portal_odoo/static/description/assets/modules/3.jpg b/vendor_portal_odoo/static/description/assets/modules/3.jpg new file mode 100644 index 000000000..717a00443 Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/modules/3.jpg differ diff --git a/vendor_portal_odoo/static/description/assets/modules/4.png b/vendor_portal_odoo/static/description/assets/modules/4.png new file mode 100644 index 000000000..00ebf54ad Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/modules/4.png differ diff --git a/vendor_portal_odoo/static/description/assets/modules/5.jpg b/vendor_portal_odoo/static/description/assets/modules/5.jpg new file mode 100644 index 000000000..7c67e2eec Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/modules/5.jpg differ diff --git a/vendor_portal_odoo/static/description/assets/modules/6.gif b/vendor_portal_odoo/static/description/assets/modules/6.gif new file mode 100644 index 000000000..a35ece8df Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/modules/6.gif differ diff --git a/vendor_portal_odoo/static/description/assets/screenshots/1.png b/vendor_portal_odoo/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..2723b3a35 Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/screenshots/1.png differ diff --git a/vendor_portal_odoo/static/description/assets/screenshots/10.png b/vendor_portal_odoo/static/description/assets/screenshots/10.png new file mode 100644 index 000000000..ee4520d1b Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/screenshots/10.png differ diff --git a/vendor_portal_odoo/static/description/assets/screenshots/11.png b/vendor_portal_odoo/static/description/assets/screenshots/11.png new file mode 100644 index 000000000..f9e8475a1 Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/screenshots/11.png differ diff --git a/vendor_portal_odoo/static/description/assets/screenshots/12.png b/vendor_portal_odoo/static/description/assets/screenshots/12.png new file mode 100644 index 000000000..92395d8a1 Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/screenshots/12.png differ diff --git a/vendor_portal_odoo/static/description/assets/screenshots/13.png b/vendor_portal_odoo/static/description/assets/screenshots/13.png new file mode 100644 index 000000000..89b2d3fde Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/screenshots/13.png differ diff --git a/vendor_portal_odoo/static/description/assets/screenshots/2.png b/vendor_portal_odoo/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..70884e6ef Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/screenshots/2.png differ diff --git a/vendor_portal_odoo/static/description/assets/screenshots/3.png b/vendor_portal_odoo/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..5e6f58d87 Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/screenshots/3.png differ diff --git a/vendor_portal_odoo/static/description/assets/screenshots/4.png b/vendor_portal_odoo/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..609715d04 Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/screenshots/4.png differ diff --git a/vendor_portal_odoo/static/description/assets/screenshots/5.png b/vendor_portal_odoo/static/description/assets/screenshots/5.png new file mode 100644 index 000000000..184bc8d5e Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/screenshots/5.png differ diff --git a/vendor_portal_odoo/static/description/assets/screenshots/6.png b/vendor_portal_odoo/static/description/assets/screenshots/6.png new file mode 100644 index 000000000..ea5592c48 Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/screenshots/6.png differ diff --git a/vendor_portal_odoo/static/description/assets/screenshots/7.png b/vendor_portal_odoo/static/description/assets/screenshots/7.png new file mode 100644 index 000000000..4b7e4797e Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/screenshots/7.png differ diff --git a/vendor_portal_odoo/static/description/assets/screenshots/8.png b/vendor_portal_odoo/static/description/assets/screenshots/8.png new file mode 100644 index 000000000..5206d3213 Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/screenshots/8.png differ diff --git a/vendor_portal_odoo/static/description/assets/screenshots/9.png b/vendor_portal_odoo/static/description/assets/screenshots/9.png new file mode 100644 index 000000000..88b51e51b Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/screenshots/9.png differ diff --git a/vendor_portal_odoo/static/description/assets/y18.jpg b/vendor_portal_odoo/static/description/assets/y18.jpg new file mode 100755 index 000000000..eea1714f2 Binary files /dev/null and b/vendor_portal_odoo/static/description/assets/y18.jpg differ diff --git a/vendor_portal_odoo/static/description/banner.png b/vendor_portal_odoo/static/description/banner.png new file mode 100644 index 000000000..80e694d51 Binary files /dev/null and b/vendor_portal_odoo/static/description/banner.png differ diff --git a/vendor_portal_odoo/static/description/icon.png b/vendor_portal_odoo/static/description/icon.png new file mode 100644 index 000000000..d267906a2 Binary files /dev/null and b/vendor_portal_odoo/static/description/icon.png differ diff --git a/vendor_portal_odoo/static/description/index.html b/vendor_portal_odoo/static/description/index.html new file mode 100644 index 000000000..cb45936ef --- /dev/null +++ b/vendor_portal_odoo/static/description/index.html @@ -0,0 +1,1086 @@ + + + + + + Odoo Vendor Portal + + + + + + + + + + +
+
+ + + +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ +
+
+
+
+

+ Vendor Portal Management in Odoo18 +

+

Odoo Vendor Portal +

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

Key + Highlights

+
+
+
+
+ +
+
+ Simplified Odoo Vendor Management. +
+
+
+
+
+
+ +
+
+ Mail notification to Vendor. +
+
+
+
+
+
+ +
+
+ Create individual portals for your suppliers on the Odoo website. +
+
+
+
+
+ +
+
+
+ Odoo Vendor Portal +

+ Are you ready to make your business more + organized? +
Improve now! +

+ +
+
+ +
+
+
+ + + + +
+
+ +
+
+
+
+ acc_bg +
+ +
+
+
+
+

+ Register Vendors to access the portal. +

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

+ Send the vendor portal invitation link to invite the desired vendors to the portal. +

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

+ List of registered vendors. +

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

+ Set the Conditions to automatically set the RFQs as completed.Set the status messages that customers see in the vendor portal. +

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

+ Create RFQ with necessary details +

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

+ Send RFQ's to the Selected Vendors. +

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

+ From the vendor portal website, vendors can submit their quotes to the admin. +

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

+ When the administrator updates the backend, the vendor can check the status of his quote +

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

+ Admins are able to see the submitted Quotes. +

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

+ Admins are able to mark the RFQ as done. +

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

+ Vendor will receive an email when his quote has been accepted. +

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

+ Portal RFQ Status of accepted quotes. +

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

+ Portal RFQ Status of rejected quotes. +

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

+ Simplified Odoo Vendor Management.

+
+ +
+
+
+
+
+
+ +
+

+ Mail notification to Vendor.

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

+ Yes. it works with Odoosh. +

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

+ Latest Release 18.0.1.0.0 +

+ + 15th March, 2025 + +
+
+
+
+
+ Add +
+
+
+
    +
  • + Initial Commit +
  • + +
+
+
+
+
+
+
+
+
+
+ + + +
+

+ Related Products +

+ +
+ + +
+

+ Our Services

+ +
+ +
+
+ .... +
+
+ +
+ + +
+
+ + + + + + diff --git a/vendor_portal_odoo/views/portal_rfq_templates.xml b/vendor_portal_odoo/views/portal_rfq_templates.xml new file mode 100755 index 000000000..a0ffcd76e --- /dev/null +++ b/vendor_portal_odoo/views/portal_rfq_templates.xml @@ -0,0 +1,308 @@ + + + + + + + + +