diff --git a/product_brand_analysis/__init__.py b/product_brand_analysis/__init__.py new file mode 100644 index 000000000..03c4cacbe --- /dev/null +++ b/product_brand_analysis/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2017-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. +# +# It is forbidden to publish, distribute, sublicense, or sell copies +# of the Software or modified copies of the Software. +# +# 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 +# GENERAL PUBLIC LICENSE (LGPL v3) along with this program. +# If not, see . +# +############################################################################## +import models diff --git a/product_brand_analysis/__manifest__.py b/product_brand_analysis/__manifest__.py new file mode 100644 index 000000000..a26bf4b29 --- /dev/null +++ b/product_brand_analysis/__manifest__.py @@ -0,0 +1,39 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2017-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. +# +# It is forbidden to publish, distribute, sublicense, or sell copies +# of the Software or modified copies of the Software. +# +# 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 +# GENERAL PUBLIC LICENSE (LGPL v3) along with this program. +# If not, see . +# +############################################################################## +{ + 'name': "Sale Analysis on Product Brand", + 'summary': """Manage Your Sales Analysis Based on Product Brand""", + 'version': '10.0.1.0.0', + 'description': """ + Manage your Sales Analysis based on product brand + """, + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'website': "http://www.cybrosys.com", + 'category': 'Sales', + 'depends': ['base', 'sale'], + 'data': ['views/product_brand.xml'], + 'images': ['static/description/banner.jpg'], + 'installable': True, + 'auto_install': False, +} diff --git a/product_brand_analysis/models/__init__.py b/product_brand_analysis/models/__init__.py new file mode 100644 index 000000000..c7babb901 --- /dev/null +++ b/product_brand_analysis/models/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2017-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. +# +# It is forbidden to publish, distribute, sublicense, or sell copies +# of the Software or modified copies of the Software. +# +# 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 +# GENERAL PUBLIC LICENSE (LGPL v3) along with this program. +# If not, see . +# +############################################################################## +import product_brand diff --git a/product_brand_analysis/models/product_brand.py b/product_brand_analysis/models/product_brand.py new file mode 100644 index 000000000..acc68e05b --- /dev/null +++ b/product_brand_analysis/models/product_brand.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2017-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. +# +# It is forbidden to publish, distribute, sublicense, or sell copies +# of the Software or modified copies of the Software. +# +# 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 +# GENERAL PUBLIC LICENSE (LGPL v3) along with this program. +# If not, see . +# +############################################################################## + +from odoo import models, fields + + +class ProductBrand(models.Model): + _name = "product.brand" + _rec_name = 'brand_name' + + brand_name = fields.Char('Brand Name', required=True) + product_templates = fields.One2many('product.template', 'brand_details', string='Products') + + +class ProductTemplate(models.Model): + _inherit = "product.template" + + brand_details = fields.Many2one('product.brand', string='Brand') + + +class SaleReport(models.Model): + _inherit = "sale.report" + + brand_details = fields.Many2one('product.brand', string="Brand", readonly=True) + + def _select(self): + return super(SaleReport, self)._select() + ", t.brand_details as brand_details" + + def _group_by(self): + return super(SaleReport, self)._group_by() + ", t.brand_details" + + diff --git a/product_brand_analysis/static/description/banner.jpg b/product_brand_analysis/static/description/banner.jpg new file mode 100644 index 000000000..bed4ed1d9 Binary files /dev/null and b/product_brand_analysis/static/description/banner.jpg differ diff --git a/product_brand_analysis/static/description/cybro_logo.png b/product_brand_analysis/static/description/cybro_logo.png new file mode 100644 index 000000000..bb309114c Binary files /dev/null and b/product_brand_analysis/static/description/cybro_logo.png differ diff --git a/product_brand_analysis/static/description/icon.png b/product_brand_analysis/static/description/icon.png new file mode 100644 index 000000000..a76a26dfd Binary files /dev/null and b/product_brand_analysis/static/description/icon.png differ diff --git a/product_brand_analysis/static/description/index.html b/product_brand_analysis/static/description/index.html new file mode 100644 index 000000000..b659d1956 --- /dev/null +++ b/product_brand_analysis/static/description/index.html @@ -0,0 +1,96 @@ +
+
+

Sale Analysis on Product Brand

+

Analyse and print report of your sales based on Product Brand

+

Author : Cybrosys Techno Solutions , www.cybrosys.com

+
+

Features:

+
    +
  •    Assign brand to products.
  • +
  •    View sale analysis based on product's brand.
  • +
+
+
+
+ +
+
+

Add Brand in Product

+
+
+
+ +
+
+
+

+ ☛ A field is added to select or create a brand +

+
+ +
+
+
+ +
+
+

Product brand form view

+
+
+
+ +
+
+
+

+ ☛ View details of the products in product brand form view +

+
+
+
+
+ +
+
+

Sale Analysis

+
+
+
+ +
+
+
+

+ ☛ Sale Analysis can be classified according to the product brand +

+
+ +
+
+
+ +
+

Need Any Help?

+ +
diff --git a/product_brand_analysis/static/description/product_brand.png b/product_brand_analysis/static/description/product_brand.png new file mode 100644 index 000000000..3451c83c6 Binary files /dev/null and b/product_brand_analysis/static/description/product_brand.png differ diff --git a/product_brand_analysis/static/description/product_brand_2.png b/product_brand_analysis/static/description/product_brand_2.png new file mode 100644 index 000000000..f8a9e2268 Binary files /dev/null and b/product_brand_analysis/static/description/product_brand_2.png differ diff --git a/product_brand_analysis/static/description/product_brand_3.png b/product_brand_analysis/static/description/product_brand_3.png new file mode 100644 index 000000000..ab01b8d4c Binary files /dev/null and b/product_brand_analysis/static/description/product_brand_3.png differ diff --git a/product_brand_analysis/views/product_brand.xml b/product_brand_analysis/views/product_brand.xml new file mode 100644 index 000000000..95ddab2fa --- /dev/null +++ b/product_brand_analysis/views/product_brand.xml @@ -0,0 +1,47 @@ + + + + + product.brand.form + product.brand + +
+ +
+

+ +

+
+ + + +
+
+
+
+ + + product.template.add.brand + product.template + + + + by + + + + + + + sale.report.brand.details + sale.report + + + + + + + + +
+
\ No newline at end of file