diff --git a/user_creation_from_employee/__init__.py b/user_creation_from_employee/__init__.py new file mode 100644 index 000000000..da432520e --- /dev/null +++ b/user_creation_from_employee/__init__.py @@ -0,0 +1,2 @@ +# -*- coding: utf-8 -*- +from . import user_creation_from_employee diff --git a/user_creation_from_employee/__manifest__.py b/user_creation_from_employee/__manifest__.py new file mode 100644 index 000000000..cb6a0ce78 --- /dev/null +++ b/user_creation_from_employee/__manifest__.py @@ -0,0 +1,39 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Nilmar Shereef() +# 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': 'User From Employee', + 'version': '11.0.1.0.0', + 'summary': 'This module automatically creates User while creating Employee', + 'description': 'This module helps you to create user automatically from employees', + 'category': 'Human Resources', + 'author': 'Cybrosys Techno Solutions', + 'website': 'http://www.cybrosys.com', + 'company': 'Cybrosys Techno Solutions', + 'depends': ['base', 'hr'], + 'data': ['views/user_creation_from_employee_view.xml'], + 'images': ['static/description/banner.jpg'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/user_creation_from_employee/static/description/banner.jpg b/user_creation_from_employee/static/description/banner.jpg new file mode 100644 index 000000000..1c4ec9bd0 Binary files /dev/null and b/user_creation_from_employee/static/description/banner.jpg differ diff --git a/user_creation_from_employee/static/description/cybro_logo.png b/user_creation_from_employee/static/description/cybro_logo.png new file mode 100644 index 000000000..bb309114c Binary files /dev/null and b/user_creation_from_employee/static/description/cybro_logo.png differ diff --git a/user_creation_from_employee/static/description/employee.png b/user_creation_from_employee/static/description/employee.png new file mode 100644 index 000000000..7cee8dce2 Binary files /dev/null and b/user_creation_from_employee/static/description/employee.png differ diff --git a/user_creation_from_employee/static/description/icon.png b/user_creation_from_employee/static/description/icon.png new file mode 100644 index 000000000..d42e71f6e Binary files /dev/null and b/user_creation_from_employee/static/description/icon.png differ diff --git a/user_creation_from_employee/static/description/index.html b/user_creation_from_employee/static/description/index.html new file mode 100644 index 000000000..0eb9fab1b --- /dev/null +++ b/user_creation_from_employee/static/description/index.html @@ -0,0 +1,348 @@ + +
+
+

+ User From Employee +

+

+ User Creation From Employee Form +

+
+ Cybrosys Technologies +
+ +
+ cybrosys technologies +
+
+
+
+ +
+
+

+ Overview +

+

+ This module helps in the user creation from employee form. +

+

+ Configuration +

+

+ No additional configuration required +

+
+
+ +
+
+

+ Features +

+

+ + User creation from employee. +

+

+ + Set home action for employee. +

+
+
+ +
+
+

+ Screenshots +

+

+ + You can create user for any employee through "Create User" button. +

+
+ +
+

+ + Set home action for employee +

+
+ +
+

+ + This is the user created from employee. +

+
+ +
+ +
+
+ +
+
+ cybrosys technologies +
+
+
+
+

+ Our Services +

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

+ + Odoo Support +

+ +
+ +
+
+
+
+
+

+ 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. +

+
+
+
+
+
+
+ +
diff --git a/user_creation_from_employee/static/description/user-creation-cybrosys-1.png b/user_creation_from_employee/static/description/user-creation-cybrosys-1.png new file mode 100644 index 000000000..b7f7aa2c7 Binary files /dev/null and b/user_creation_from_employee/static/description/user-creation-cybrosys-1.png differ diff --git a/user_creation_from_employee/static/description/user-creation-cybrosys-2.png b/user_creation_from_employee/static/description/user-creation-cybrosys-2.png new file mode 100644 index 000000000..776e0d7ce Binary files /dev/null and b/user_creation_from_employee/static/description/user-creation-cybrosys-2.png differ diff --git a/user_creation_from_employee/static/description/user-creation-cybrosys-3.png b/user_creation_from_employee/static/description/user-creation-cybrosys-3.png new file mode 100644 index 000000000..9cfdd627b Binary files /dev/null and b/user_creation_from_employee/static/description/user-creation-cybrosys-3.png differ diff --git a/user_creation_from_employee/static/description/user.png b/user_creation_from_employee/static/description/user.png new file mode 100644 index 000000000..01fa2e203 Binary files /dev/null and b/user_creation_from_employee/static/description/user.png differ diff --git a/user_creation_from_employee/static/description/user1.png b/user_creation_from_employee/static/description/user1.png new file mode 100644 index 000000000..96e35221a Binary files /dev/null and b/user_creation_from_employee/static/description/user1.png differ diff --git a/user_creation_from_employee/user_creation_from_employee.py b/user_creation_from_employee/user_creation_from_employee.py new file mode 100644 index 000000000..396936435 --- /dev/null +++ b/user_creation_from_employee/user_creation_from_employee.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Nilmar Shereef() +# 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, api, _ + + +class ResUsersInherit(models.Model): + _inherit = 'hr.employee' + + user_check_tick = fields.Boolean(default=False) + + @api.multi + def create_user(self): + user_id = self.env['res.users'].create({'name': self.name,'login': self.work_email}) + self.address_home_id = user_id.partner_id.id + self.user_check_tick = True + + @api.onchange('address_home_id') + def user_checking(self): + if self.address_home_id: + self.user_check_tick = True + else: + self.user_check_tick = False + diff --git a/user_creation_from_employee/views/user_creation_from_employee_view.xml b/user_creation_from_employee/views/user_creation_from_employee_view.xml new file mode 100644 index 000000000..7c896f192 --- /dev/null +++ b/user_creation_from_employee/views/user_creation_from_employee_view.xml @@ -0,0 +1,24 @@ + + + + + hr.employee.form + hr.employee + + + + + + +
+
+
+ + 1 + +
+
+
+
diff --git a/website_sale_product_quick_view/__init__.py b/website_sale_product_quick_view/__init__.py new file mode 100644 index 000000000..153a9e31e --- /dev/null +++ b/website_sale_product_quick_view/__init__.py @@ -0,0 +1,2 @@ +# -*- coding: utf-8 -*- +from . import controllers diff --git a/website_sale_product_quick_view/__manifest__.py b/website_sale_product_quick_view/__manifest__.py new file mode 100644 index 000000000..f935d310f --- /dev/null +++ b/website_sale_product_quick_view/__manifest__.py @@ -0,0 +1,48 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Hilar AK() +# 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': "E-commerce Product Quick View", + 'version': '11.0.1.0.0', + 'summary': """E-commerce Product Quick View.""", + 'description': """E-commerce Product Quick View.""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'website': "https://cybrosys.com", + 'category': 'eCommerce', + 'depends': ['base', + 'website_sale', + 'website_mail', + 'rating', + ], + 'data': [ + # 'security/ir.model.access.csv', + 'views/assets.xml', + 'views/template.xml', + ], + 'demo': [], + 'images': ['static/description/banner.jpg'], + 'license': 'LGPL-3', + 'installable': True, + 'application': True +} diff --git a/website_sale_product_quick_view/controllers/__init__.py b/website_sale_product_quick_view/controllers/__init__.py new file mode 100644 index 000000000..757b12a1f --- /dev/null +++ b/website_sale_product_quick_view/controllers/__init__.py @@ -0,0 +1,2 @@ +# -*- coding: utf-8 -*- +from . import main diff --git a/website_sale_product_quick_view/controllers/main.py b/website_sale_product_quick_view/controllers/main.py new file mode 100644 index 000000000..89003f2e4 --- /dev/null +++ b/website_sale_product_quick_view/controllers/main.py @@ -0,0 +1,29 @@ +# -*- coding: utf-8 -*- + +from odoo import http +from odoo.addons.website_sale.controllers import main + + +class WebsiteSaleExtend(main.WebsiteSale): + @http.route([ + '/shop', + '/shop/page/', + '/shop/category/', + '/shop/category//page/' + ], type='http', auth="public", website=True) + def shop(self, page=0, category=None, search='', ppg=False, **post): + """ + Overrided function to update the response with products objects.Here we are updating qcontext. + :param page: + :param category: + :param search: + :param ppg: + :param post: + :return: + """ + response = super(WebsiteSaleExtend, self).shop(page=page, category=category, search=search, ppg=ppg, **post) + response.qcontext.update({ + 'get_attribute_value_ids': self.get_attribute_value_ids, + 'rating_status': response.qcontext.get('rating_product'), + }) + return response diff --git a/website_sale_product_quick_view/readme.md b/website_sale_product_quick_view/readme.md new file mode 100644 index 000000000..280169549 --- /dev/null +++ b/website_sale_product_quick_view/readme.md @@ -0,0 +1,32 @@ +# Ecommerce Product Quick View + +Ecommerce Product Quick View is an odoo e-commerse based addon, which Extends the products view by +including the wizard which shows the quick informations about the products. + + - E-commerce Product Quick View. + - Button to open the quick view. + - Click the quick view button on product form to open wizard. + - product rating on quick view. + - Alternative Products on Quick View page. + +### Depends +Ecommerce Product Quick View addon depends on Odoo website_sale, rating +### Tech + +* [Python] - Models, Controllers +* [XML] - Odoo website templates + +### Installation +- www.odoo.com/documentation/11.0/setup/install.html +- Install our custom addon, which also installs its depends [rating, website_sale] + +### Usage +> Goto Shop page -> click on quick view button + +License +---- +GNU LESSER GENERAL PUBLIC LICENSE, Version 3 (LGPLv3) +(http://www.gnu.org/licenses/agpl.html) + + + diff --git a/website_sale_product_quick_view/static/description/banner.jpg b/website_sale_product_quick_view/static/description/banner.jpg new file mode 100644 index 000000000..6fa520659 Binary files /dev/null and b/website_sale_product_quick_view/static/description/banner.jpg differ diff --git a/website_sale_product_quick_view/static/description/cybro_logo.png b/website_sale_product_quick_view/static/description/cybro_logo.png new file mode 100644 index 000000000..bb309114c Binary files /dev/null and b/website_sale_product_quick_view/static/description/cybro_logo.png differ diff --git a/website_sale_product_quick_view/static/description/ecommerce-product-cybrosys-1.png b/website_sale_product_quick_view/static/description/ecommerce-product-cybrosys-1.png new file mode 100644 index 000000000..3a67b567d Binary files /dev/null and b/website_sale_product_quick_view/static/description/ecommerce-product-cybrosys-1.png differ diff --git a/website_sale_product_quick_view/static/description/ecommerce-product-cybrosys-2.png b/website_sale_product_quick_view/static/description/ecommerce-product-cybrosys-2.png new file mode 100644 index 000000000..a1fed9201 Binary files /dev/null and b/website_sale_product_quick_view/static/description/ecommerce-product-cybrosys-2.png differ diff --git a/website_sale_product_quick_view/static/description/icon.png b/website_sale_product_quick_view/static/description/icon.png new file mode 100644 index 000000000..64a4ce0ca Binary files /dev/null and b/website_sale_product_quick_view/static/description/icon.png differ diff --git a/website_sale_product_quick_view/static/description/index.html b/website_sale_product_quick_view/static/description/index.html new file mode 100644 index 000000000..999250ce3 --- /dev/null +++ b/website_sale_product_quick_view/static/description/index.html @@ -0,0 +1,335 @@ +
+
+

+ E-commerce Product Quick View +

+

+ Product Quick View in Websites +

+
+ Cybrosys Technologies +
+ +
+ cybrosys technologies +
+
+
+
+
+
+

+ Overview +

+

+ Module which contains product quick view in website,and a button that provides in the product page. +

+
+
+
+
+

+ Features +

+

+ + Quick product View in Websites +

+
+
+
+
+

+ Screenshots +

+

+
+ + Quick View Button on product page. +
+

+
+ +
+

+
+ + Quick View Wizard with product information, Including Alternative Products. +
+

+
+ +
+
+
+
+
+ cybrosys technologies +
+
+
+
+

+ Our Services +

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

+ + Odoo Support +

+ +
+ +
+
+
+
+
+

+ 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. +

+
+
+
+
+
+
+ +
+ + + + + + diff --git a/website_sale_product_quick_view/static/description/product view.png b/website_sale_product_quick_view/static/description/product view.png new file mode 100644 index 000000000..7f4748a6a Binary files /dev/null and b/website_sale_product_quick_view/static/description/product view.png differ diff --git a/website_sale_product_quick_view/static/description/quick view.png b/website_sale_product_quick_view/static/description/quick view.png new file mode 100644 index 000000000..04718a44e Binary files /dev/null and b/website_sale_product_quick_view/static/description/quick view.png differ diff --git a/website_sale_product_quick_view/static/src/css/style.css b/website_sale_product_quick_view/static/src/css/style.css new file mode 100644 index 000000000..1e900febd --- /dev/null +++ b/website_sale_product_quick_view/static/src/css/style.css @@ -0,0 +1,9 @@ +.product_view .modal-dialog{max-width: 800px; width: 100%;} +.pre-cost{text-decoration: line-through; color: #a5a5a5;} +.space-ten{padding: 10px 0;} +.rating.hidden-sm.rating_ext > .price-text-color.fa-star { + color: #fcc500; +} +.rating.hidden-sm.rating_ext > .fa-star{ + color: #dddddb; +} \ No newline at end of file diff --git a/website_sale_product_quick_view/views/assets.xml b/website_sale_product_quick_view/views/assets.xml new file mode 100644 index 000000000..640485663 --- /dev/null +++ b/website_sale_product_quick_view/views/assets.xml @@ -0,0 +1,7 @@ + + + diff --git a/website_sale_product_quick_view/views/template.xml b/website_sale_product_quick_view/views/template.xml new file mode 100644 index 000000000..02a7a359a --- /dev/null +++ b/website_sale_product_quick_view/views/template.xml @@ -0,0 +1,109 @@ + + + + \ No newline at end of file