diff --git a/sale_customer_product_history/README.rst b/sale_customer_product_history/README.rst new file mode 100755 index 000000000..02c266831 --- /dev/null +++ b/sale_customer_product_history/README.rst @@ -0,0 +1,53 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--1-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +Sales History Of Products +========================= + +This module developed to record product sale history . + +Installation +============ + +Just select it from available modules to install it, there is no need to extra installations. + +Configuration +============= + +Nothing to configure. + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +* Developer: + Meera K @ cybrosys + V14 Minhaj T @ cybrosys + +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/sale_customer_product_history/__init__.py b/sale_customer_product_history/__init__.py new file mode 100644 index 000000000..dd9135e0d --- /dev/null +++ b/sale_customer_product_history/__init__.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Cybrosys Techno Solutions (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 +from . import wizard + diff --git a/sale_customer_product_history/__manifest__.py b/sale_customer_product_history/__manifest__.py new file mode 100644 index 000000000..6dc272bad --- /dev/null +++ b/sale_customer_product_history/__manifest__.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Cybrosys Techno Solutions (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': "Sales History Of Products", + 'version': '14.0.1.0.0', + 'summary': """Sales history of products from Sales Order Line""", + 'description': """Sales history of products from Sales Order Line""", + 'author': "Cybrosys Techno Solutions", + 'company': "Cybrosys Techno Solutions", + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'category': 'Sales/Sales', + 'depends': ['base', 'sale_management'], + 'license': 'AGPL-3', + 'data': [ + 'security/ir.model.access.csv', + 'wizard/sales_order_history_wizard_view.xml', + 'views/view.xml', + ], + 'images': ['static/description/banner.png'], + 'installable': True, + 'auto_install': False, +} diff --git a/sale_customer_product_history/doc/RELEASE_NOTES.md b/sale_customer_product_history/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..5db179de4 --- /dev/null +++ b/sale_customer_product_history/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 13.10.2020 +#### Version 14.0.1.0.0 +#### ADD +- Initial Commit for sale_customer_product_history diff --git a/sale_customer_product_history/models/__init__.py b/sale_customer_product_history/models/__init__.py new file mode 100644 index 000000000..0e8cca7b5 --- /dev/null +++ b/sale_customer_product_history/models/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Cybrosys Techno Solutions (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 model diff --git a/sale_customer_product_history/models/model.py b/sale_customer_product_history/models/model.py new file mode 100644 index 000000000..6e37d527b --- /dev/null +++ b/sale_customer_product_history/models/model.py @@ -0,0 +1,56 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Cybrosys Techno Solutions (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# + +from odoo import api, models, fields + + +class SaleOrderLine(models.Model): + _inherit = 'sale.order.line' + + def get_product_history_data(self): + values = [] + customer_id = self.order_id.partner_id + customer_order = self.env['sale.order'].search( + [('partner_id', '=', customer_id.id), ('state', 'in', ('sale', 'done'))]) + for order in customer_order: + for line in order.order_line: + if line.product_id == self.product_id: + values.append((0, 0, {'sale_order_id': order.id, + 'history_price': line.price_unit, + 'history_qty': line.product_uom_qty, + 'history_total': order.amount_total + })) + history_id = self.env['product.sale.order.history'].create({ + 'product_id': self.product_id.id, + 'product_sale_history': values + }) + + return { + 'name': 'Customer Product Sales History', + 'view_mode': 'form', + 'res_model': 'product.sale.order.history', + 'type': 'ir.actions.act_window', + 'target': 'new', + 'res_id': history_id.id + } + + diff --git a/sale_customer_product_history/security/ir.model.access.csv b/sale_customer_product_history/security/ir.model.access.csv new file mode 100644 index 000000000..10f7e340c --- /dev/null +++ b/sale_customer_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 +product_sale_history_line_id,product_sale_history_line_name,model_product_sale_history_line,,1,1,1,1 +product_sale_order_history_id,product_sale_order_history_name,model_product_sale_order_history,,1,1,1,1 diff --git a/sale_customer_product_history/static/description/banner.png b/sale_customer_product_history/static/description/banner.png new file mode 100644 index 000000000..3c64ac98a Binary files /dev/null and b/sale_customer_product_history/static/description/banner.png differ diff --git a/sale_customer_product_history/static/description/icon.png b/sale_customer_product_history/static/description/icon.png new file mode 100644 index 000000000..fe53906ac Binary files /dev/null and b/sale_customer_product_history/static/description/icon.png differ diff --git a/sale_customer_product_history/static/description/images/banner.png b/sale_customer_product_history/static/description/images/banner.png new file mode 100644 index 000000000..61d6a81a2 Binary files /dev/null and b/sale_customer_product_history/static/description/images/banner.png differ diff --git a/sale_customer_product_history/static/description/images/barcode.jpeg b/sale_customer_product_history/static/description/images/barcode.jpeg new file mode 100644 index 000000000..529143e4e Binary files /dev/null and b/sale_customer_product_history/static/description/images/barcode.jpeg differ diff --git a/sale_customer_product_history/static/description/images/checked.png b/sale_customer_product_history/static/description/images/checked.png new file mode 100644 index 000000000..578cedb80 Binary files /dev/null and b/sale_customer_product_history/static/description/images/checked.png differ diff --git a/sale_customer_product_history/static/description/images/credit_exceed.png b/sale_customer_product_history/static/description/images/credit_exceed.png new file mode 100644 index 000000000..e35c8df65 Binary files /dev/null and b/sale_customer_product_history/static/description/images/credit_exceed.png differ diff --git a/sale_customer_product_history/static/description/images/customer_credit.png b/sale_customer_product_history/static/description/images/customer_credit.png new file mode 100644 index 000000000..036c91d9a Binary files /dev/null and b/sale_customer_product_history/static/description/images/customer_credit.png differ diff --git a/sale_customer_product_history/static/description/images/cybrosys.png b/sale_customer_product_history/static/description/images/cybrosys.png new file mode 100644 index 000000000..d76b5bafb Binary files /dev/null and b/sale_customer_product_history/static/description/images/cybrosys.png differ diff --git a/sale_customer_product_history/static/description/images/multiple_products.png b/sale_customer_product_history/static/description/images/multiple_products.png new file mode 100644 index 000000000..3a2051a87 Binary files /dev/null and b/sale_customer_product_history/static/description/images/multiple_products.png differ diff --git a/sale_customer_product_history/static/description/images/product_recom.png b/sale_customer_product_history/static/description/images/product_recom.png new file mode 100644 index 000000000..6b124fb63 Binary files /dev/null and b/sale_customer_product_history/static/description/images/product_recom.png differ diff --git a/sale_customer_product_history/static/description/images/product_to_quota.png b/sale_customer_product_history/static/description/images/product_to_quota.png new file mode 100644 index 000000000..322f18f64 Binary files /dev/null and b/sale_customer_product_history/static/description/images/product_to_quota.png differ diff --git a/sale_customer_product_history/static/description/images/sale-history.png b/sale_customer_product_history/static/description/images/sale-history.png new file mode 100644 index 000000000..0dc119dd2 Binary files /dev/null and b/sale_customer_product_history/static/description/images/sale-history.png differ diff --git a/sale_customer_product_history/static/description/images/screenshot-01.png b/sale_customer_product_history/static/description/images/screenshot-01.png new file mode 100644 index 000000000..789f0b81c Binary files /dev/null and b/sale_customer_product_history/static/description/images/screenshot-01.png differ diff --git a/sale_customer_product_history/static/description/images/screenshot-02.png b/sale_customer_product_history/static/description/images/screenshot-02.png new file mode 100644 index 000000000..4ebc21801 Binary files /dev/null and b/sale_customer_product_history/static/description/images/screenshot-02.png differ diff --git a/sale_customer_product_history/static/description/index.html b/sale_customer_product_history/static/description/index.html new file mode 100644 index 000000000..d841d66c2 --- /dev/null +++ b/sale_customer_product_history/static/description/index.html @@ -0,0 +1,554 @@ +
+ cybrosys-logo
+
+
+
+

Sales History Of Products

+

Product sale history + button in sale order line

+
+

Key Highlights

+
    +
  • checkProduct + sale history button in sale order line, which allow users to view the sale order + history of the specific product for the customer +
  • +
+
+
+
+
+
+
+
+ +
+
+ +

Overview

+
+

+ With the help of this App you can easily view the sale order history of + the product for the particular customer +

+
+
+ +

Product sale + history button in sale order line

+
+
    +
  • + checkUsers can + view the sale order history of the product for the particular + customer +
  • +
+
+ +
+
+

+ Screenshots

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

Suggested + Products

+
+ +
+
+

Our + Service

+
+ +
+
+
+

Our + Industries

+
+ +
+
+
+
+ Odoo Industry
+
+
+

+ + Trading

+

+ Easily procure and sell your products.

+
+
+
+
+
+ Odoo Industry
+
+
+

+ + Manufacturing

+

+ Plan, track and schedule your operations.

+
+
+
+
+
+ Odoo Industry
+
+
+

+ + Restaurant

+

+ Run your bar or restaurant methodical.

+
+
+
+
+
+ + Odoo Industry
+
+
+

+ + POS

+

+ Easy configuring and convivial selling.

+
+
+
+
+
+ Odoo Industry
+
+
+

+ + E-commerce & Website

+

+ Mobile friendly, awe-inspiring product pages.

+
+
+
+
+
+ Odoo Industry
+
+
+

+ + Hotel Management

+

+ An all-inclusive hotel management application.

+
+
+
+
+
+ Odoo Industry
+
+
+

+ + Education

+

+ A Collaborative platform for educational management.

+
+
+
+
+
+ Odoo Industry
+
+
+

+ + Service Management

+

+ Keep track of services and invoice accordingly.

+
+
+
+
+
+ +
+
+
+

Need Any Help?

+
+

If you have anything to share with us based on your use of + this module, please let us know. We are ready to offer our support.

+
+

Email us

+

odoo@cybrosys.com / info@cybrosys.com

+
+
+

Contact Us

+ www.cybrosys.com +
+
+
+
+
+
+
+
+
+ +
+ + + + + + + +
+
+
+ \ No newline at end of file diff --git a/sale_customer_product_history/views/view.xml b/sale_customer_product_history/views/view.xml new file mode 100644 index 000000000..a985b7289 --- /dev/null +++ b/sale_customer_product_history/views/view.xml @@ -0,0 +1,16 @@ + + + + + sale.order.line.history.button.view + sale.order + + + +