diff --git a/product_brand_purchase/README.md b/product_brand_purchase/README.md new file mode 100644 index 000000000..a1ea91855 --- /dev/null +++ b/product_brand_purchase/README.md @@ -0,0 +1,31 @@ +Product Brand in Purchase +===================== + +Installation +============ +- www.odoo.com/documentation/13.0/setup/install.html +- Install our custom addon + +License +======= +GNU AFFERO GENERAL PUBLIC LICENSE, Version 3 (AGPLv3) +(http://www.gnu.org/licenses/agpl.html) + +Bug Tracker +=========== +Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. + +Credits +======= +* Cybrosys Techno Solutions + + +Developer: Afras Habis - odoo@cybrosys.com + +Maintainer +---------- + +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit https://www.cybrosys.com. + diff --git a/product_brand_purchase/__init__.py b/product_brand_purchase/__init__.py new file mode 100644 index 000000000..0650744f6 --- /dev/null +++ b/product_brand_purchase/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/product_brand_purchase/__manifest__.py b/product_brand_purchase/__manifest__.py new file mode 100644 index 000000000..0f146072e --- /dev/null +++ b/product_brand_purchase/__manifest__.py @@ -0,0 +1,41 @@ +# -*- coding: utf-8 -*- +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################### +{ + 'name': 'Product Brand in Purchase', + 'version': '13.0.1.0.0', + 'category': 'Purchases', + 'summary': 'Product Brand in Purchase', + 'description': 'Product Brand in Purchase, purchase, brand, odoo13', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'images': ['static/description/banner.png'], + 'website': 'https://www.cybrosys.com', + 'depends': ['purchase'], + 'data': [ + 'views/brand_views.xml', + 'security/ir.model.access.csv', + ], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, + +} diff --git a/product_brand_purchase/doc/RELEASE_NOTES.md b/product_brand_purchase/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..e3bb865e6 --- /dev/null +++ b/product_brand_purchase/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 29.11.2019 +#### Version 13.0.1.0.0 +#### ADD +Initial Commit diff --git a/product_brand_purchase/models/__init__.py b/product_brand_purchase/models/__init__.py new file mode 100644 index 000000000..79145f8f0 --- /dev/null +++ b/product_brand_purchase/models/__init__.py @@ -0,0 +1 @@ +from . import brand \ No newline at end of file diff --git a/product_brand_purchase/models/brand.py b/product_brand_purchase/models/brand.py new file mode 100644 index 000000000..395d26829 --- /dev/null +++ b/product_brand_purchase/models/brand.py @@ -0,0 +1,40 @@ +from odoo import models,fields,api,tools + + +class ProductBrand(models.Model): + _inherit = 'product.template' + + brand_id = fields.Many2one('product.brand',string='Brand') + +class BrandProduct(models.Model): + _name = 'product.brand' + + name= fields.Char(String="Name") + brand_image = fields.Binary() + member_ids = fields.One2many('product.template','brand_id') + product_count = fields.Char(String='Product Count',compute='get_count_products',store=True) + + @api.depends('member_ids') + def get_count_products(self): + self.product_count = len(self.member_ids) + +class PurchaseBrandPivot(models.Model): + _inherit = 'purchase.report' + + brand_id = fields.Many2one('product.brand',string='Brand') + + + def _select(self): + res = super(PurchaseBrandPivot,self)._select() + query = res.split('t.categ_id as category_id,',1) + rese = query[0] + 't.categ_id as category_id,t.brand_id as brand_id,' + query[1] + return rese + + + + def _group_by(self): + res=super (PurchaseBrandPivot ,self)._group_by () + query = res.split('t.categ_id,',1) + res = query[0] + 't.categ_id,t.brand_id,' + query[1] + print(res) + return res diff --git a/product_brand_purchase/security/ir.model.access.csv b/product_brand_purchase/security/ir.model.access.csv new file mode 100644 index 000000000..6c654dda8 --- /dev/null +++ b/product_brand_purchase/security/ir.model.access.csv @@ -0,0 +1,2 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_product_brand,access_product_brand,model_product_brand,,1,1,1,1 \ No newline at end of file diff --git a/product_brand_purchase/static/description/banner.png b/product_brand_purchase/static/description/banner.png new file mode 100644 index 000000000..409cb8199 Binary files /dev/null and b/product_brand_purchase/static/description/banner.png differ diff --git a/product_brand_purchase/static/description/icon.png b/product_brand_purchase/static/description/icon.png new file mode 100644 index 000000000..58aad19af Binary files /dev/null and b/product_brand_purchase/static/description/icon.png differ diff --git a/product_brand_purchase/static/description/images/1.jpeg b/product_brand_purchase/static/description/images/1.jpeg new file mode 100644 index 000000000..ccb8e1556 Binary files /dev/null and b/product_brand_purchase/static/description/images/1.jpeg differ diff --git a/product_brand_purchase/static/description/images/2.jpeg b/product_brand_purchase/static/description/images/2.jpeg new file mode 100644 index 000000000..2625f7727 Binary files /dev/null and b/product_brand_purchase/static/description/images/2.jpeg differ diff --git a/product_brand_purchase/static/description/images/3.jpeg b/product_brand_purchase/static/description/images/3.jpeg new file mode 100644 index 000000000..5dfdf2c2b Binary files /dev/null and b/product_brand_purchase/static/description/images/3.jpeg differ diff --git a/product_brand_purchase/static/description/images/4.jpeg b/product_brand_purchase/static/description/images/4.jpeg new file mode 100644 index 000000000..ec8264c0b Binary files /dev/null and b/product_brand_purchase/static/description/images/4.jpeg differ diff --git a/product_brand_purchase/static/description/images/5.jpeg b/product_brand_purchase/static/description/images/5.jpeg new file mode 100644 index 000000000..e10c28799 Binary files /dev/null and b/product_brand_purchase/static/description/images/5.jpeg differ diff --git a/product_brand_purchase/static/description/images/6.jpeg b/product_brand_purchase/static/description/images/6.jpeg new file mode 100644 index 000000000..529143e4e Binary files /dev/null and b/product_brand_purchase/static/description/images/6.jpeg differ diff --git a/product_brand_purchase/static/description/images/brandpurchase1.png b/product_brand_purchase/static/description/images/brandpurchase1.png new file mode 100644 index 000000000..73ee75562 Binary files /dev/null and b/product_brand_purchase/static/description/images/brandpurchase1.png differ diff --git a/product_brand_purchase/static/description/images/brandpurchase2.png b/product_brand_purchase/static/description/images/brandpurchase2.png new file mode 100644 index 000000000..e54e6be8b Binary files /dev/null and b/product_brand_purchase/static/description/images/brandpurchase2.png differ diff --git a/product_brand_purchase/static/description/images/brandpurchase3.png b/product_brand_purchase/static/description/images/brandpurchase3.png new file mode 100644 index 000000000..8131fa4cf Binary files /dev/null and b/product_brand_purchase/static/description/images/brandpurchase3.png differ diff --git a/product_brand_purchase/static/description/images/brandpurchase4.png b/product_brand_purchase/static/description/images/brandpurchase4.png new file mode 100644 index 000000000..f8636b7c3 Binary files /dev/null and b/product_brand_purchase/static/description/images/brandpurchase4.png differ diff --git a/product_brand_purchase/static/description/images/brandpurchase5.png b/product_brand_purchase/static/description/images/brandpurchase5.png new file mode 100644 index 000000000..c16c29671 Binary files /dev/null and b/product_brand_purchase/static/description/images/brandpurchase5.png differ diff --git a/product_brand_purchase/static/description/images/brandpurchase6.png b/product_brand_purchase/static/description/images/brandpurchase6.png new file mode 100644 index 000000000..9d624157d Binary files /dev/null and b/product_brand_purchase/static/description/images/brandpurchase6.png differ diff --git a/product_brand_purchase/static/description/images/checked.png b/product_brand_purchase/static/description/images/checked.png new file mode 100644 index 000000000..578cedb80 Binary files /dev/null and b/product_brand_purchase/static/description/images/checked.png differ diff --git a/product_brand_purchase/static/description/images/cybrosys.png b/product_brand_purchase/static/description/images/cybrosys.png new file mode 100644 index 000000000..d76b5bafb Binary files /dev/null and b/product_brand_purchase/static/description/images/cybrosys.png differ diff --git a/product_brand_purchase/static/description/index.html b/product_brand_purchase/static/description/index.html new file mode 100644 index 000000000..baa770aa3 --- /dev/null +++ b/product_brand_purchase/static/description/index.html @@ -0,0 +1,334 @@ +
cybrosys-logo
+
+
+
+

Product Brand in Purchase

+
+

Key Highlights

+
    +
  • checkManage the Product Brands Easily
  • +
+
+
+
+
+
+
+
+ +
+
+ +

Overview

+
+

+ This module allows the odoo users to manage their product brands easily . +

+
+
+ +

Product Brand

+
+
    +
  • + checkEasy adding of products to Product Brand. +
  • +
+
    +
  • + checkProduct Brand inside Products. +
  • +
+
    +
  • + checkGroup By Product Brand. +
  • +
+
    +
  • + checkProduct Brand in Pivot view. +
  • +
+
+ +
+
+

Screenshots

+
+
+
+ +
+
+
+
+
+ +

Video

+
+
+

Product Brand Manager

+ +
+ Cybrosys Cover Video +
+
+
+ +
+
    +
+
+
+
+
+
+
+

Suggested Products

+
+ +
+
+

Our Service

+
+ +
+
+
+

Our Industries

+
+ +
+
+
+ +
+
+

Trading

+

Easily procure and sell your products.

+
+
+
+
+ +
+
+

Manufacturing

+

Plan, track and schedule your operations.

+
+
+
+
+ +
+
+

Restaurant

+

Run your bar or restaurant methodical.

+
+
+
+
+ +
+
+

POS

+

Easy configuring and convivial selling.

+
+
+
+
+ +
+
+

E-commerce & Website

+

Mobile friendly, awe-inspiring product pages.

+
+
+
+
+ +
+
+

Hotel Management

+

An all-inclusive hotel management application.

+
+
+
+
+ +
+
+

Education

+

A Collaborative platform for educational management.

+
+
+
+
+ +
+
+

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/product_brand_purchase/views/brand_views.xml b/product_brand_purchase/views/brand_views.xml new file mode 100644 index 000000000..86039f8a2 --- /dev/null +++ b/product_brand_purchase/views/brand_views.xml @@ -0,0 +1,83 @@ + + + + Brand Name + product.template + + + + + + + + + + + Product Brand + product.brand + tree,form + + + Product Brand + product.brand + +
+ + +
+
\ No newline at end of file diff --git a/product_brand_sale/views/brand_views.xml b/product_brand_sale/views/brand_views.xml new file mode 100644 index 000000000..4c02d5855 --- /dev/null +++ b/product_brand_sale/views/brand_views.xml @@ -0,0 +1,83 @@ + + + + Brand Name + product.template + + + + + + + + + + + Product Brand + product.brand + tree,form + + + Product Brand + product.brand + +
+ + +
+