diff --git a/purchase_product_history/README.rst b/purchase_product_history/README.rst new file mode 100755 index 000000000..ce75b31e2 --- /dev/null +++ b/purchase_product_history/README.rst @@ -0,0 +1,49 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +Purchase History Of Products +============================ +This module helps to show purchase history of product in odoo16. + +Configuration +============= +*Set product purchase limit and status from settings + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +General Public License, Version 3 (AGPL v3). +(https://www.gnu.org/licenses/agpl-3.0-standalone.html) + +Credits +------- +* Developer: +(V16) Sruthi M K +(V17) Anjhana A K +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/purchase_product_history/__init__.py b/purchase_product_history/__init__.py new file mode 100755 index 000000000..0c87519f6 --- /dev/null +++ b/purchase_product_history/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Sruthi MK (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 models diff --git a/purchase_product_history/__manifest__.py b/purchase_product_history/__manifest__.py new file mode 100755 index 000000000..f5ea8913f --- /dev/null +++ b/purchase_product_history/__manifest__.py @@ -0,0 +1,47 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Sruthi MK (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': 'Purchase History Of Products', + 'version': '17.0.1.0.0', + 'category': 'Purchases', + 'summary': 'Show purchase history of products and variants', + 'description': """Which will helps to show purchase history of the products + and product variants. Also we can set limit and status in the settings. + The purchased history will be visible based on the this limit and + status.""", + 'author': 'Cybrosys Techno solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'depends': ['purchase'], + 'data': [ + 'security/ir.model.access.csv', + 'views/res_config_settings_views.xml', + 'views/product_template_views.xml', + 'views/product_product_views.xml', + ], + 'license': 'AGPL-3', + 'images': ['static/description/banner.jpg'], + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/purchase_product_history/doc/RELEASE_NOTES.md b/purchase_product_history/doc/RELEASE_NOTES.md new file mode 100755 index 000000000..4a4ffadfd --- /dev/null +++ b/purchase_product_history/doc/RELEASE_NOTES.md @@ -0,0 +1,5 @@ +## Module +#### 07.12.2023 +#### Version 17.0.1.0.0 +#### ADD +- Initial commit for Purchase History Of Products diff --git a/purchase_product_history/models/__init__.py b/purchase_product_history/models/__init__.py new file mode 100755 index 000000000..e331ced39 --- /dev/null +++ b/purchase_product_history/models/__init__.py @@ -0,0 +1,26 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Sruthi MK (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 product_product +from . import product_template +from . import purchase_product_history_line +from . import purchase_template_history_line +from . import res_config_settings diff --git a/purchase_product_history/models/product_product.py b/purchase_product_history/models/product_product.py new file mode 100755 index 000000000..2070a26e8 --- /dev/null +++ b/purchase_product_history/models/product_product.py @@ -0,0 +1,71 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Sruthi MK (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 ProductProduct(models.Model): + """ProductProduct class represents to add purchase histories of + the product""" + _inherit = 'product.product' + + po_product_line_ids = fields.One2many('purchase.product.history.line', + 'product_history_id', + string='Purchase History', + compute='_compute_po_product_line_ids', + help='Purchased product variant ' + 'details') + + def _compute_po_product_line_ids(self): + """Compute the purchase history lines. It will show all purchase order + details of the particular product in product.template based on the + limit and status.""" + self.po_product_line_ids = False + status = self.env['ir.config_parameter'].sudo().get_param( + 'purchase_product_history.status') + limit = self.env['ir.config_parameter'].sudo().get_param( + 'purchase_product_history.limit') + if int(limit) >= 0 and status != False: + state = '' + if status == 'all': + state = ('draft', 'sent', 'to approve', 'purchase', 'done', + 'cancel') + elif status == 'rfq': + state = 'draft' + elif status == 'purchase_order': + state = ('purchase', 'done') + order_line = self.env['purchase.order.line'].search([]) + if not limit: + product_po_order_line = order_line.filtered( + lambda + l: l.product_id and l.product_id.id == self.id and l.state in state) + else: + product_po_order_line = order_line.search( + [('product_id', '=', self.id), ('state', 'in', state)], + limit=int(limit)) + self.env['purchase.product.history.line'].create([{ + 'product_history_id': self.id, + 'order_reference_id': line.order_id.id, + 'description': line.name, + 'price_unit': line.price_unit, + 'product_qty': line.product_qty, + 'price_subtotal': line.price_subtotal, + } for line in product_po_order_line] if product_po_order_line else []) diff --git a/purchase_product_history/models/product_template.py b/purchase_product_history/models/product_template.py new file mode 100755 index 000000000..e54de24f6 --- /dev/null +++ b/purchase_product_history/models/product_template.py @@ -0,0 +1,68 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Sruthi MK (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 ProductTemplate(models.Model): + """Product template class for adding purchase history of the product.""" + _inherit = 'product.template' + _description = 'Product template' + + po_history_line_ids = fields.One2many('purchase.template.history.line', + 'history_id', + string='Purchase history', + compute='_compute_po_history_line_ids', + help='Purchased product details') + + def _compute_po_history_line_ids(self): + """Compute the purchase history lines. It will show all purchase order + details of the particular product in product.product based on the + limit and status.""" + self.po_history_line_ids = False + status = self.env['ir.config_parameter'].sudo().get_param( + 'purchase_product_history.status') + limit = int(self.env['ir.config_parameter'].sudo().get_param( + 'purchase_product_history.limit')) + if limit < 0 or not status: + return + state = '' + if status == 'all': + state = ( + 'draft', 'sent', 'to approve', 'purchase', 'done', 'cancel') + elif status == 'rfq': + state = ('draft',) + elif status == 'purchase_order': + state = ('purchase', 'done') + order_line = self.env['purchase.order.line'].search([ + ('product_id', 'in', self.product_variant_ids.ids), + ('state', 'in', state) + ], limit=(None if limit == 0 else limit)) + self.env['purchase.template.history.line'].create([ + { + 'history_id': self.id, + 'order_reference_id': rec.order_id.id, + 'description': rec.name, + 'price_unit': rec.price_unit, + 'product_qty': rec.product_qty, + 'price_subtotal': rec.price_subtotal + } for rec in order_line + ]) diff --git a/purchase_product_history/models/purchase_product_history_line.py b/purchase_product_history/models/purchase_product_history_line.py new file mode 100644 index 000000000..975b0f19c --- /dev/null +++ b/purchase_product_history/models/purchase_product_history_line.py @@ -0,0 +1,41 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Sruthi MK (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 PurchaseProductHistoryLine(models.Model): + """Purchase product history datas for product.product""" + _name = 'purchase.product.history.line' + _description = 'Product history line for product' + + product_history_id = fields.Many2one('product.product', string='Product', + help='Name of the product') + order_reference_id = fields.Many2one('purchase.order', string='Order', + help='Purchase order reference of the' + ' product') + description = fields.Text(string='Description', help='Description of the' + ' product') + price_unit = fields.Float(string='Unit Price', help='Unit price of the' + ' product') + product_qty = fields.Float(string='Quantity', help='Product quantity') + price_subtotal = fields.Float(string='Subtotal', help='Subtotal of the ' + 'product') diff --git a/purchase_product_history/models/purchase_template_history_line.py b/purchase_product_history/models/purchase_template_history_line.py new file mode 100644 index 000000000..4dd622743 --- /dev/null +++ b/purchase_product_history/models/purchase_template_history_line.py @@ -0,0 +1,41 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Sruthi MK (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 PurchaseTemplateHistoryLine(models.Model): + """Purchase product history datas for product.template""" + _name = 'purchase.template.history.line' + _description = 'Purchase history line for template' + + history_id = fields.Many2one('product.template', string='Product', + help='Name of the product variant') + order_reference_id = fields.Many2one('purchase.order', string='Order', + help='Purchase order reference of the' + ' product') + description = fields.Text(string='Description', help='Description of the' + ' product') + price_unit = fields.Float(string='Unit Price', help='Unit price of the' + ' product') + product_qty = fields.Float(string='Quantity', help='Product quantity') + price_subtotal = fields.Float(string='Subtotal', help='Subtotal of the' + 'product') diff --git a/purchase_product_history/models/res_config_settings.py b/purchase_product_history/models/res_config_settings.py new file mode 100755 index 000000000..d13515450 --- /dev/null +++ b/purchase_product_history/models/res_config_settings.py @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Sruthi MK (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 +from odoo.exceptions import ValidationError + + +class ResConfigSettings(models.TransientModel): + """ResConfigSettings class for adding the limit and status of products""" + _inherit = 'res.config.settings' + + limit = fields.Integer(string='Limit', default=0, + config_parameter='purchase_product_history.limit', + help='Specify the limit to show') + status = fields.Selection( + [('all', 'All'), ('rfq', 'RFQ'), ('purchase_order', 'Purchase Order')], + string='Status', + config_parameter='purchase_product_history.status', + help='Specify the status of the purchase order') + + def set_values(self): + """inorder to set values in the settings""" + res = super().set_values() + self.env['ir.config_parameter'].set_param( + 'purchase_product_history.limit', + self.limit) + self.env['ir.config_parameter'].set_param( + 'purchase_product_history.status', + self.status) + if self.limit < 0: + raise ValidationError("Limit cannot be less than 0") + return res diff --git a/purchase_product_history/security/ir.model.access.csv b/purchase_product_history/security/ir.model.access.csv new file mode 100755 index 000000000..1103bd286 --- /dev/null +++ b/purchase_product_history/security/ir.model.access.csv @@ -0,0 +1,3 @@ +id,name,model_id/id,group_id/id,perm_read,perm_write,perm_create,perm_unlink +access_purchase_template_history_line,access.purchase.template.history.line,model_purchase_template_history_line,base.group_user,1,1,1,1 +access_purchase_product_history_line,access.purchase.product.history.line,model_purchase_product_history_line,base.group_user,1,1,1,1 diff --git a/purchase_product_history/static/description/assets/icons/check.png b/purchase_product_history/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/purchase_product_history/static/description/assets/icons/check.png differ diff --git a/purchase_product_history/static/description/assets/icons/chevron.png b/purchase_product_history/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/purchase_product_history/static/description/assets/icons/chevron.png differ diff --git a/purchase_product_history/static/description/assets/icons/cogs.png b/purchase_product_history/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/purchase_product_history/static/description/assets/icons/cogs.png differ diff --git a/purchase_product_history/static/description/assets/icons/consultation.png b/purchase_product_history/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/purchase_product_history/static/description/assets/icons/consultation.png differ diff --git a/purchase_product_history/static/description/assets/icons/ecom-black.png b/purchase_product_history/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/purchase_product_history/static/description/assets/icons/ecom-black.png differ diff --git a/purchase_product_history/static/description/assets/icons/education-black.png b/purchase_product_history/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/purchase_product_history/static/description/assets/icons/education-black.png differ diff --git a/purchase_product_history/static/description/assets/icons/hotel-black.png b/purchase_product_history/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/purchase_product_history/static/description/assets/icons/hotel-black.png differ diff --git a/purchase_product_history/static/description/assets/icons/license.png b/purchase_product_history/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/purchase_product_history/static/description/assets/icons/license.png differ diff --git a/purchase_product_history/static/description/assets/icons/lifebuoy.png b/purchase_product_history/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/purchase_product_history/static/description/assets/icons/lifebuoy.png differ diff --git a/purchase_product_history/static/description/assets/icons/manufacturing-black.png b/purchase_product_history/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/purchase_product_history/static/description/assets/icons/manufacturing-black.png differ diff --git a/purchase_product_history/static/description/assets/icons/pos-black.png b/purchase_product_history/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/purchase_product_history/static/description/assets/icons/pos-black.png differ diff --git a/purchase_product_history/static/description/assets/icons/puzzle.png b/purchase_product_history/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/purchase_product_history/static/description/assets/icons/puzzle.png differ diff --git a/purchase_product_history/static/description/assets/icons/restaurant-black.png b/purchase_product_history/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/purchase_product_history/static/description/assets/icons/restaurant-black.png differ diff --git a/purchase_product_history/static/description/assets/icons/service-black.png b/purchase_product_history/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/purchase_product_history/static/description/assets/icons/service-black.png differ diff --git a/purchase_product_history/static/description/assets/icons/trading-black.png b/purchase_product_history/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/purchase_product_history/static/description/assets/icons/trading-black.png differ diff --git a/purchase_product_history/static/description/assets/icons/training.png b/purchase_product_history/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/purchase_product_history/static/description/assets/icons/training.png differ diff --git a/purchase_product_history/static/description/assets/icons/update.png b/purchase_product_history/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/purchase_product_history/static/description/assets/icons/update.png differ diff --git a/purchase_product_history/static/description/assets/icons/user.png b/purchase_product_history/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/purchase_product_history/static/description/assets/icons/user.png differ diff --git a/purchase_product_history/static/description/assets/icons/wrench.png b/purchase_product_history/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/purchase_product_history/static/description/assets/icons/wrench.png differ diff --git a/purchase_product_history/static/description/assets/misc/Cybrosys R.png b/purchase_product_history/static/description/assets/misc/Cybrosys R.png new file mode 100644 index 000000000..da4058087 Binary files /dev/null and b/purchase_product_history/static/description/assets/misc/Cybrosys R.png differ diff --git a/purchase_product_history/static/description/assets/misc/categories.png b/purchase_product_history/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/purchase_product_history/static/description/assets/misc/categories.png differ diff --git a/purchase_product_history/static/description/assets/misc/check-box.png b/purchase_product_history/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/purchase_product_history/static/description/assets/misc/check-box.png differ diff --git a/purchase_product_history/static/description/assets/misc/compass.png b/purchase_product_history/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/purchase_product_history/static/description/assets/misc/compass.png differ diff --git a/purchase_product_history/static/description/assets/misc/corporate.png b/purchase_product_history/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/purchase_product_history/static/description/assets/misc/corporate.png differ diff --git a/purchase_product_history/static/description/assets/misc/customer-support.png b/purchase_product_history/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/purchase_product_history/static/description/assets/misc/customer-support.png differ diff --git a/purchase_product_history/static/description/assets/misc/cybrosys-logo.png b/purchase_product_history/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/purchase_product_history/static/description/assets/misc/cybrosys-logo.png differ diff --git a/purchase_product_history/static/description/assets/misc/email.svg b/purchase_product_history/static/description/assets/misc/email.svg new file mode 100644 index 000000000..15291cdc3 --- /dev/null +++ b/purchase_product_history/static/description/assets/misc/email.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/purchase_product_history/static/description/assets/misc/features.png b/purchase_product_history/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/purchase_product_history/static/description/assets/misc/features.png differ diff --git a/purchase_product_history/static/description/assets/misc/logo.png b/purchase_product_history/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/purchase_product_history/static/description/assets/misc/logo.png differ diff --git a/purchase_product_history/static/description/assets/misc/phone.svg b/purchase_product_history/static/description/assets/misc/phone.svg new file mode 100644 index 000000000..b7bd7f251 --- /dev/null +++ b/purchase_product_history/static/description/assets/misc/phone.svg @@ -0,0 +1,3 @@ + + + diff --git a/purchase_product_history/static/description/assets/misc/pictures.png b/purchase_product_history/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/purchase_product_history/static/description/assets/misc/pictures.png differ diff --git a/purchase_product_history/static/description/assets/misc/pie-chart.png b/purchase_product_history/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/purchase_product_history/static/description/assets/misc/pie-chart.png differ diff --git a/purchase_product_history/static/description/assets/misc/right-arrow.png b/purchase_product_history/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/purchase_product_history/static/description/assets/misc/right-arrow.png differ diff --git a/purchase_product_history/static/description/assets/misc/star (1) 2.svg b/purchase_product_history/static/description/assets/misc/star (1) 2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/purchase_product_history/static/description/assets/misc/star (1) 2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/purchase_product_history/static/description/assets/misc/star.png b/purchase_product_history/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/purchase_product_history/static/description/assets/misc/star.png differ diff --git a/purchase_product_history/static/description/assets/misc/support (1) 1.svg b/purchase_product_history/static/description/assets/misc/support (1) 1.svg new file mode 100644 index 000000000..7d37a8f30 --- /dev/null +++ b/purchase_product_history/static/description/assets/misc/support (1) 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/purchase_product_history/static/description/assets/misc/support-email.svg b/purchase_product_history/static/description/assets/misc/support-email.svg new file mode 100644 index 000000000..eb70370d6 --- /dev/null +++ b/purchase_product_history/static/description/assets/misc/support-email.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/purchase_product_history/static/description/assets/misc/support.png b/purchase_product_history/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/purchase_product_history/static/description/assets/misc/support.png differ diff --git a/purchase_product_history/static/description/assets/misc/tick-mark.svg b/purchase_product_history/static/description/assets/misc/tick-mark.svg new file mode 100644 index 000000000..2dbb40187 --- /dev/null +++ b/purchase_product_history/static/description/assets/misc/tick-mark.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/purchase_product_history/static/description/assets/misc/whatsapp 1.svg b/purchase_product_history/static/description/assets/misc/whatsapp 1.svg new file mode 100644 index 000000000..0bfaf8fc6 --- /dev/null +++ b/purchase_product_history/static/description/assets/misc/whatsapp 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/purchase_product_history/static/description/assets/misc/whatsapp.png b/purchase_product_history/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/purchase_product_history/static/description/assets/misc/whatsapp.png differ diff --git a/purchase_product_history/static/description/assets/misc/whatsapp.svg b/purchase_product_history/static/description/assets/misc/whatsapp.svg new file mode 100644 index 000000000..b618aea1d --- /dev/null +++ b/purchase_product_history/static/description/assets/misc/whatsapp.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/purchase_product_history/static/description/assets/modules/1.png b/purchase_product_history/static/description/assets/modules/1.png new file mode 100644 index 000000000..ba1058c42 Binary files /dev/null and b/purchase_product_history/static/description/assets/modules/1.png differ diff --git a/purchase_product_history/static/description/assets/modules/2.png b/purchase_product_history/static/description/assets/modules/2.png new file mode 100644 index 000000000..6949185dd Binary files /dev/null and b/purchase_product_history/static/description/assets/modules/2.png differ diff --git a/purchase_product_history/static/description/assets/modules/3.png b/purchase_product_history/static/description/assets/modules/3.png new file mode 100644 index 000000000..4e506f79b Binary files /dev/null and b/purchase_product_history/static/description/assets/modules/3.png differ diff --git a/purchase_product_history/static/description/assets/modules/4.png b/purchase_product_history/static/description/assets/modules/4.png new file mode 100644 index 000000000..e78427938 Binary files /dev/null and b/purchase_product_history/static/description/assets/modules/4.png differ diff --git a/purchase_product_history/static/description/assets/modules/5.gif b/purchase_product_history/static/description/assets/modules/5.gif new file mode 100644 index 000000000..2a5f8e659 Binary files /dev/null and b/purchase_product_history/static/description/assets/modules/5.gif differ diff --git a/purchase_product_history/static/description/assets/modules/5.png b/purchase_product_history/static/description/assets/modules/5.png new file mode 100755 index 000000000..272ec20f9 Binary files /dev/null and b/purchase_product_history/static/description/assets/modules/5.png differ diff --git a/purchase_product_history/static/description/assets/modules/6.png b/purchase_product_history/static/description/assets/modules/6.png new file mode 100644 index 000000000..7d5c3154f Binary files /dev/null and b/purchase_product_history/static/description/assets/modules/6.png differ diff --git a/purchase_product_history/static/description/assets/modules/l2.png b/purchase_product_history/static/description/assets/modules/l2.png new file mode 100644 index 000000000..f40a0756d Binary files /dev/null and b/purchase_product_history/static/description/assets/modules/l2.png differ diff --git a/purchase_product_history/static/description/assets/modules/l3.png b/purchase_product_history/static/description/assets/modules/l3.png new file mode 100644 index 000000000..5738a486e Binary files /dev/null and b/purchase_product_history/static/description/assets/modules/l3.png differ diff --git a/purchase_product_history/static/description/assets/modules/l4.png b/purchase_product_history/static/description/assets/modules/l4.png new file mode 100644 index 000000000..8d99e8c68 Binary files /dev/null and b/purchase_product_history/static/description/assets/modules/l4.png differ diff --git a/purchase_product_history/static/description/assets/modules/l5.png b/purchase_product_history/static/description/assets/modules/l5.png new file mode 100644 index 000000000..3415917c2 Binary files /dev/null and b/purchase_product_history/static/description/assets/modules/l5.png differ diff --git a/purchase_product_history/static/description/assets/modules/l6.png b/purchase_product_history/static/description/assets/modules/l6.png new file mode 100644 index 000000000..c7ea331ee Binary files /dev/null and b/purchase_product_history/static/description/assets/modules/l6.png differ diff --git a/purchase_product_history/static/description/assets/screenshots/hero.gif b/purchase_product_history/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..fee95ea49 Binary files /dev/null and b/purchase_product_history/static/description/assets/screenshots/hero.gif differ diff --git a/purchase_product_history/static/description/assets/screenshots/screenshot1.png b/purchase_product_history/static/description/assets/screenshots/screenshot1.png new file mode 100644 index 000000000..77fda67df Binary files /dev/null and b/purchase_product_history/static/description/assets/screenshots/screenshot1.png differ diff --git a/purchase_product_history/static/description/assets/screenshots/screenshot10.png b/purchase_product_history/static/description/assets/screenshots/screenshot10.png new file mode 100644 index 000000000..35e50b6e9 Binary files /dev/null and b/purchase_product_history/static/description/assets/screenshots/screenshot10.png differ diff --git a/purchase_product_history/static/description/assets/screenshots/screenshot11.png b/purchase_product_history/static/description/assets/screenshots/screenshot11.png new file mode 100644 index 000000000..71f5b966b Binary files /dev/null and b/purchase_product_history/static/description/assets/screenshots/screenshot11.png differ diff --git a/purchase_product_history/static/description/assets/screenshots/screenshot2.png b/purchase_product_history/static/description/assets/screenshots/screenshot2.png new file mode 100644 index 000000000..ed32930a7 Binary files /dev/null and b/purchase_product_history/static/description/assets/screenshots/screenshot2.png differ diff --git a/purchase_product_history/static/description/assets/screenshots/screenshot3.png b/purchase_product_history/static/description/assets/screenshots/screenshot3.png new file mode 100644 index 000000000..ddefe584c Binary files /dev/null and b/purchase_product_history/static/description/assets/screenshots/screenshot3.png differ diff --git a/purchase_product_history/static/description/assets/screenshots/screenshot4.png b/purchase_product_history/static/description/assets/screenshots/screenshot4.png new file mode 100644 index 000000000..849a8eccd Binary files /dev/null and b/purchase_product_history/static/description/assets/screenshots/screenshot4.png differ diff --git a/purchase_product_history/static/description/assets/screenshots/screenshot5.png b/purchase_product_history/static/description/assets/screenshots/screenshot5.png new file mode 100644 index 000000000..9564e01ec Binary files /dev/null and b/purchase_product_history/static/description/assets/screenshots/screenshot5.png differ diff --git a/purchase_product_history/static/description/assets/screenshots/screenshot6.png b/purchase_product_history/static/description/assets/screenshots/screenshot6.png new file mode 100644 index 000000000..4e095dcca Binary files /dev/null and b/purchase_product_history/static/description/assets/screenshots/screenshot6.png differ diff --git a/purchase_product_history/static/description/assets/screenshots/screenshot7.png b/purchase_product_history/static/description/assets/screenshots/screenshot7.png new file mode 100644 index 000000000..d656052ba Binary files /dev/null and b/purchase_product_history/static/description/assets/screenshots/screenshot7.png differ diff --git a/purchase_product_history/static/description/assets/screenshots/screenshot8.png b/purchase_product_history/static/description/assets/screenshots/screenshot8.png new file mode 100644 index 000000000..a72267cd5 Binary files /dev/null and b/purchase_product_history/static/description/assets/screenshots/screenshot8.png differ diff --git a/purchase_product_history/static/description/assets/screenshots/screenshot9.png b/purchase_product_history/static/description/assets/screenshots/screenshot9.png new file mode 100644 index 000000000..a3ae84a72 Binary files /dev/null and b/purchase_product_history/static/description/assets/screenshots/screenshot9.png differ diff --git a/purchase_product_history/static/description/banner.jpg b/purchase_product_history/static/description/banner.jpg new file mode 100644 index 000000000..fd64cf8ca Binary files /dev/null and b/purchase_product_history/static/description/banner.jpg differ diff --git a/purchase_product_history/static/description/icon.png b/purchase_product_history/static/description/icon.png new file mode 100644 index 000000000..4c9663270 Binary files /dev/null and b/purchase_product_history/static/description/icon.png differ diff --git a/purchase_product_history/static/description/index.html b/purchase_product_history/static/description/index.html new file mode 100644 index 000000000..0ba6f7eff --- /dev/null +++ b/purchase_product_history/static/description/index.html @@ -0,0 +1,792 @@ + + + + + + Odoo App 3 Index + + + + + + + + +
+
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+
+
+
+

+ Purchase History Of Products

+

+ This module is helps to show purchase history of + products.

+ +
+ +
+
+
+
+
+

+ Key Highlights +

+
+
+
+
+
+ +
+
+

+ Easy view of Product Purchase History in any purchase state

+

This module helps to show the purchase history of products based on its + status. +

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

+ Go to Settings => Product Purchase History, To set the limit and select the status

+
+
+
+
+
+
+ + +
+
+

+ Set Limit and Status[All, RFQ, and Purchase Order] for purchase + history

+
+
+
+
+
+
+ + +
+
+

+ Go to Products => Open any of the purchased product.

+
+
+
+
+
+
+ + +
+
+

+ From the setting set limit = 0 and select status as 'ALL'

+
+
+
+
+
+
+ + +
+
+

+ The purchase history of the product in all status can be viewed

+
+
+
+
+
+
+ + +
+
+

+ Setting limit as 3 for status 'All'

+
+
+
+
+
+
+ + +
+
+

+ You will be able to see only 3 records of all state

+
+
+
+
+
+
+ + +
+
+

+ Setting Limit as 0 and Status as 'RFQ'

+
+
+
+
+
+
+ + +
+
+

+ You will be able to see purchase history of the product of status 'RFQ'

+
+
+
+
+
+
+ + +
+
+

+ Setting Limit as 0 and Status as 'Purchase Order'

+
+
+
+
+
+
+ + +
+
+

+ You will be able to see purchase history of the product of status 'Purchase Order'

+
+
+
+ +
+ +
+
+
    +
  • + Sets discount limit for each employee.k +
  • +
  • + PShow the purchase history based on limit and status. +
  • +
+
+
+
+
+
+
Version + 17.0.1.0.0|Released on: 7st December 2023 +
+

+ + Initial Commit for Purchase History Of Products.

+
+
+
+
+
+
+
+

+ Related Products

+
+
+ +
+
+

+ Our Services

+ +
+
+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Customization

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Implementation

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Support

+
+
+
+
+
+
+ service-icon +
+
+

Hire + Odoo Developer

+
+
+
+
+ +
+
+ service-icon +
+
+

Odoo + Integration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Migration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Consultancy

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Implementation

+
+
+
+
+
+
+ service-icon +
+
+

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 + 99456767686 +
+
+
+
+
+
+
+
+
+ + + + + + diff --git a/purchase_product_history/views/product_product_views.xml b/purchase_product_history/views/product_product_views.xml new file mode 100755 index 000000000..c7d8c3b23 --- /dev/null +++ b/purchase_product_history/views/product_product_views.xml @@ -0,0 +1,25 @@ + + + + + product.product.view.form.inherit.purchase.product.history + product.product + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/purchase_product_history/views/product_template_views.xml b/purchase_product_history/views/product_template_views.xml new file mode 100755 index 000000000..47355156e --- /dev/null +++ b/purchase_product_history/views/product_template_views.xml @@ -0,0 +1,27 @@ + + + + + + product.template.view.form.inherit.purchase.product.history + + product.template + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/purchase_product_history/views/res_config_settings_views.xml b/purchase_product_history/views/res_config_settings_views.xml new file mode 100755 index 000000000..8ad65e868 --- /dev/null +++ b/purchase_product_history/views/res_config_settings_views.xml @@ -0,0 +1,41 @@ + + + + + + res.config.settings.view.form.inherit.purchase.product.history + + res.config.settings + + + + +

Product Purchase History

+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file