diff --git a/customer_sequence/README.rst b/customer_sequence/README.rst new file mode 100644 index 000000000..537fc09a1 --- /dev/null +++ b/customer_sequence/README.rst @@ -0,0 +1,40 @@ +Customer Sequence +================= + +This module will give a unique code to each customer and supplier. + +Configuration +============= +* You should configure the company form for the proper working of this module. +* The customer and supplier code start from the number you give in the company form + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +* Developers: Vinaya @ Cybrosys, odoo@cybrosys.com + Mohammed Shahil M P @cybrosys, 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/customer_sequence/__init__.py b/customer_sequence/__init__.py new file mode 100644 index 000000000..7199aa346 --- /dev/null +++ b/customer_sequence/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Vinaya @ Cybrosys, (odoo@cybrosys.com) +# Mohammed Shahil M P @ Cybrosys, (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/customer_sequence/__manifest__.py b/customer_sequence/__manifest__.py new file mode 100644 index 000000000..8a186903d --- /dev/null +++ b/customer_sequence/__manifest__.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Vinaya @ Cybrosys, (odoo@cybrosys.com) +# Mohammed Shahil M P @ Cybrosys, (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': "Customer Sequence", + 'version': '13.0.1.0.0', + 'summary': """Unique Customer Code""", + 'description': """ + Each customer have unique number code, Odoo 13, Odoo + """, + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'website': "https://cybrosys.com/", + 'category': 'Sales', + 'depends': ['sale'], + 'data': [ + 'views/res_partner_fom.xml', + 'views/res_company.xml', + 'security/ir.model.access.csv', + ], + 'demo': [], + 'images': ['static/description/banner.jpg'], + 'license': 'AGPL-3', + 'installable': True, + 'application': False +} diff --git a/customer_sequence/doc/RELEASE_NOTES.md b/customer_sequence/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..faa446b23 --- /dev/null +++ b/customer_sequence/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 16.11.2019 +#### Version 13.0.1.0.0 +#### ADD +Initial Commit diff --git a/customer_sequence/models/__init__.py b/customer_sequence/models/__init__.py new file mode 100644 index 000000000..15fce675b --- /dev/null +++ b/customer_sequence/models/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Vinaya @ Cybrosys, (odoo@cybrosys.com) +# Mohammed Shahil M P @ Cybrosys, (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 res_company +from . import res_partner diff --git a/customer_sequence/models/res_company.py b/customer_sequence/models/res_company.py new file mode 100644 index 000000000..131ba9312 --- /dev/null +++ b/customer_sequence/models/res_company.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Vinaya @ Cybrosys, (odoo@cybrosys.com) +# Mohammed Shahil M P @ Cybrosys, (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 models, fields + + +class CompanySequence(models.Model): + _inherit = 'res.company' + + customer_code = fields.Integer(string='Customer code', required=True) + next_code = fields.Integer(string='Next code') diff --git a/customer_sequence/models/res_partner.py b/customer_sequence/models/res_partner.py new file mode 100644 index 000000000..69b24f338 --- /dev/null +++ b/customer_sequence/models/res_partner.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Vinaya @ Cybrosys, (odoo@cybrosys.com) +# Mohammed Shahil M P @ Cybrosys, (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 models, fields, api + + +class ResPartner(models.Model): + _inherit = 'res.partner' + + unique_id = fields.Char(string='Unique Id', help="The Unique Sequence no", readonly=True, default='/') + + @api.model + def create(self, values): + res = super(ResPartner, self).create(values) + company_seq = self.env.company + if res.customer_rank > 0 and res.unique_id == '/': + if company_seq.next_code: + res.unique_id = company_seq.next_code + res.name = '[' + str(company_seq.next_code) + ']' + str(res.name) + company_seq.write({'next_code': company_seq.next_code + 1}) + else: + res.unique_id = company_seq.customer_code + res.name = '[' + str(company_seq.customer_code) + ']' + str(res.name) + company_seq.write({'next_code': company_seq.customer_code + 1}) + return res diff --git a/customer_sequence/security/ir.model.access.csv b/customer_sequence/security/ir.model.access.csv new file mode 100644 index 000000000..259c9de31 --- /dev/null +++ b/customer_sequence/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_res_company,access_res_company,model_res_company,base.group_user,1,1,1,0 diff --git a/customer_sequence/static/description/banner.jpg b/customer_sequence/static/description/banner.jpg new file mode 100644 index 000000000..7451342d6 Binary files /dev/null and b/customer_sequence/static/description/banner.jpg differ diff --git a/customer_sequence/static/description/company_form.png b/customer_sequence/static/description/company_form.png new file mode 100644 index 000000000..0fed569a8 Binary files /dev/null and b/customer_sequence/static/description/company_form.png differ diff --git a/customer_sequence/static/description/customer-sequence-cybrosys-1.png b/customer_sequence/static/description/customer-sequence-cybrosys-1.png new file mode 100644 index 000000000..c980215f1 Binary files /dev/null and b/customer_sequence/static/description/customer-sequence-cybrosys-1.png differ diff --git a/customer_sequence/static/description/customer-sequence-cybrosys-2.png b/customer_sequence/static/description/customer-sequence-cybrosys-2.png new file mode 100644 index 000000000..4f0c441d8 Binary files /dev/null and b/customer_sequence/static/description/customer-sequence-cybrosys-2.png differ diff --git a/customer_sequence/static/description/customer_form.png b/customer_sequence/static/description/customer_form.png new file mode 100644 index 000000000..e156e03b4 Binary files /dev/null and b/customer_sequence/static/description/customer_form.png differ diff --git a/customer_sequence/static/description/cybro_logo.png b/customer_sequence/static/description/cybro_logo.png new file mode 100644 index 000000000..bb309114c Binary files /dev/null and b/customer_sequence/static/description/cybro_logo.png differ diff --git a/customer_sequence/static/description/icon.png b/customer_sequence/static/description/icon.png new file mode 100644 index 000000000..71a3a3528 Binary files /dev/null and b/customer_sequence/static/description/icon.png differ diff --git a/customer_sequence/static/description/index.html b/customer_sequence/static/description/index.html new file mode 100644 index 000000000..22d796666 --- /dev/null +++ b/customer_sequence/static/description/index.html @@ -0,0 +1,334 @@ + +
+
+

+ Customer Sequence +

+

+ Give unique code to each customer +

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

+ Overview +

+

+ Now it is very easy to identify your customers with unique code. This module gives coding to the customers as well as to the supplier. +

+
+
+ +
+
+

+ Features +

+

+ + Unique code for customers +

+
+
+ +
+
+

+ Screenshots +

+

+ +
    +
  • Give the starting number of code.
  • +
  • You can give separate starting for each company if it is a multi company.
  • +
+

+
+ +
+

+ + Create a customer and the code will generate automatically as defined in the company form.. +

+
+ +
+ +
+
+ +
+
+ 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/customer_sequence/views/res_company.xml b/customer_sequence/views/res_company.xml new file mode 100644 index 000000000..72724c4a8 --- /dev/null +++ b/customer_sequence/views/res_company.xml @@ -0,0 +1,16 @@ + + + + + Company Sequence + res.company + + + + + + + + + + diff --git a/customer_sequence/views/res_partner_fom.xml b/customer_sequence/views/res_partner_fom.xml new file mode 100644 index 000000000..220fdd009 --- /dev/null +++ b/customer_sequence/views/res_partner_fom.xml @@ -0,0 +1,26 @@ + + + + + res.partner.form.inherit + res.partner + + + + + + + + + + res.partner.form.inherit + res.partner + + + + + + + + + diff --git a/mrp_work_order_print/README.rst b/mrp_work_order_print/README.rst new file mode 100644 index 000000000..449053c65 --- /dev/null +++ b/mrp_work_order_print/README.rst @@ -0,0 +1,32 @@ +Print Work Order Details +======================== +Generate PDF Report of Work Order + +Depends +======= +[mrp] addon Odoo + +Installation +============ +- www.odoo.com/documentation/12.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. + +Authors +------- +* Faslu + +Maintainer +---------- + +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit https://www.cybrosys.com. diff --git a/mrp_work_order_print/__init__.py b/mrp_work_order_print/__init__.py new file mode 100644 index 000000000..633f86615 --- /dev/null +++ b/mrp_work_order_print/__init__.py @@ -0,0 +1,2 @@ +# -*- coding: utf-8 -*- + diff --git a/mrp_work_order_print/__manifest__.py b/mrp_work_order_print/__manifest__.py new file mode 100644 index 000000000..97dd95331 --- /dev/null +++ b/mrp_work_order_print/__manifest__.py @@ -0,0 +1,42 @@ +# -*- coding: utf-8 -*- +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: faslu() +# +# 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': 'Print Work Order Details', + 'summary': """Generate PDF Report of Work Order""", + 'summary': """Generate PDF Report of Work Order, Odoo 13, Odoo""", + 'version': '13.0.1.0.0', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://cybrosys.com/", + 'category': 'Manufacturing', + 'depends': ['mrp'], + 'license': 'AGPL-3', + 'data': [ + 'views/report_work_order.xml', + ], + 'demo': [], + 'images': ['static/description/banner.jpg'], + 'installable': True, + 'auto_install': False, +} diff --git a/mrp_work_order_print/doc/RELEASE_NOTES.md b/mrp_work_order_print/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..bd7d48d91 --- /dev/null +++ b/mrp_work_order_print/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 10.03.2019 +#### Version 13.0.1.0.0 +#### ADD +- Initial Commit for mrp_work_order_print diff --git a/mrp_work_order_print/static/description/banner.jpg b/mrp_work_order_print/static/description/banner.jpg new file mode 100644 index 000000000..012febffb Binary files /dev/null and b/mrp_work_order_print/static/description/banner.jpg differ diff --git a/mrp_work_order_print/static/description/cybro_logo.png b/mrp_work_order_print/static/description/cybro_logo.png new file mode 100644 index 000000000..bb309114c Binary files /dev/null and b/mrp_work_order_print/static/description/cybro_logo.png differ diff --git a/mrp_work_order_print/static/description/icon.png b/mrp_work_order_print/static/description/icon.png new file mode 100644 index 000000000..d9905bbcb Binary files /dev/null and b/mrp_work_order_print/static/description/icon.png differ diff --git a/mrp_work_order_print/static/description/index.html b/mrp_work_order_print/static/description/index.html new file mode 100644 index 000000000..6f928af3c --- /dev/null +++ b/mrp_work_order_print/static/description/index.html @@ -0,0 +1,62 @@ +
+
+

Print Work Order Details

+

Cybrosys Technologies

+
+
+ +
+
+

+ Generate PDF Report of Work Order +

+
+
+ +
+
+
+

Overview

+

+ Generate a PDF report with all necessary details of a Work Order. It can be used for the internal purposes of the plant/work center +

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

Need Any Help?

+ +
+ diff --git a/mrp_work_order_print/static/description/wo_pdf.png b/mrp_work_order_print/static/description/wo_pdf.png new file mode 100644 index 000000000..0fd244064 Binary files /dev/null and b/mrp_work_order_print/static/description/wo_pdf.png differ diff --git a/mrp_work_order_print/views/report_work_order.xml b/mrp_work_order_print/views/report_work_order.xml new file mode 100644 index 000000000..62161f8fd --- /dev/null +++ b/mrp_work_order_print/views/report_work_order.xml @@ -0,0 +1,100 @@ + + + + + + + + diff --git a/pos_magnify_image/README.rst b/pos_magnify_image/README.rst new file mode 100755 index 000000000..f8164bb0c --- /dev/null +++ b/pos_magnify_image/README.rst @@ -0,0 +1,27 @@ +========================= +Pos Product Magnify Image +========================= + +This module allow to magnify product image in pos. + +Installation +============ + +Just select it from available modules to install it, there is no need to extra installations. + +Configuration +============= + +Nothing to configure. + +Usage +===== + +* + icon on pos product image. +* On clicking on + icon, display pop up with magnified product image. + + +Credits +======= +Developer: Aswani pc @ cybrosys + diff --git a/pos_magnify_image/__init__.py b/pos_magnify_image/__init__.py new file mode 100755 index 000000000..45363201a --- /dev/null +++ b/pos_magnify_image/__init__.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2018-TODAY Cybrosys Technologies (). +# Author: Aswani PC (aswani@cybrosys.in) +# +# 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 . +# +################################################################################### diff --git a/pos_magnify_image/__manifest__.py b/pos_magnify_image/__manifest__.py new file mode 100755 index 000000000..bf7147d5e --- /dev/null +++ b/pos_magnify_image/__manifest__.py @@ -0,0 +1,39 @@ +# -*- coding: utf-8 -*- +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2018-TODAY Cybrosys Technologies (). +# Author: Aswani PC (aswani@cybrosys.in) +# +# 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': "Pos Product Magnify Image", + 'version': '13.0.1.0.0', + 'summary': """Magnify product image in pos.""", + 'description': """Magnify Product Image In POS, Odoo 13, Odoo""", + 'author': "Cybrosys Techno Solutions", + 'company': "Cybrosys Techno Solutions", + 'website': "http://www.cybrosys.com", + 'category': 'Point of Sale', + 'depends': ['point_of_sale'], + 'data': ['views/pos_product_magnify_image.xml'], + 'qweb': ['static/src/xml/pos_product_image.xml'], + 'images': ['static/description/banner.jpg'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, +} diff --git a/pos_magnify_image/__manifest__.py~ b/pos_magnify_image/__manifest__.py~ new file mode 100755 index 000000000..db1a7a433 --- /dev/null +++ b/pos_magnify_image/__manifest__.py~ @@ -0,0 +1,39 @@ +# -*- coding: utf-8 -*- +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2018-TODAY Cybrosys Technologies (). +# Author: Aswani PC (aswani@cybrosys.in) +# +# 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': "Pos Product Magnify Image", + 'version': '11.0.1.0.0', + 'summary': """Magnify product image in pos.""", + 'description': """Magnify Product Image In POS.""", + 'author': "Cybrosys Techno Solutions", + 'company': "Cybrosys Techno Solutions", + 'website': "http://www.cybrosys.com", + 'category': 'Point of Sale', + 'depends': ['point_of_sale'], + 'data': ['views/pos_product_magnify_image.xml'], + 'qweb': ['static/src/xml/pos_product_image.xml'], + 'images': ['static/description/banner.jpg'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, +} diff --git a/pos_magnify_image/__openerp__.py~ b/pos_magnify_image/__openerp__.py~ new file mode 100755 index 000000000..75a5c40d3 --- /dev/null +++ b/pos_magnify_image/__openerp__.py~ @@ -0,0 +1,17 @@ +# -*- coding: utf-8 -*- +{ + 'name': "Pos Product Zoom Image", + 'version': '9.0.1.0.0', + 'summary': """ + Short (1 phrase/line) summary of the module's purpose, used as + subtitle on modules listing or apps.openerp.com""", + 'description': """ + Long description of module's purpose + """, + 'author': "My Company", + 'website': "http://www.yourcompany.com", + 'category': 'Point of Sale', + 'depends': ['base', 'point_of_sale'], + 'data': ['views/pos_product_zoom_image.xml'], + 'qweb': ['static/src/xml/pos_product_image.xml'], +} diff --git a/pos_magnify_image/doc/RELEASE_NOTES.md b/pos_magnify_image/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..a3dbcf1be --- /dev/null +++ b/pos_magnify_image/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 16.11.2019 +#### Version 13.0.1.0.0 +#### ADD +Initial Commit diff --git a/pos_magnify_image/static/description/banner.jpg b/pos_magnify_image/static/description/banner.jpg new file mode 100755 index 000000000..9469b6f21 Binary files /dev/null and b/pos_magnify_image/static/description/banner.jpg differ diff --git a/pos_magnify_image/static/description/cybro_logo.png b/pos_magnify_image/static/description/cybro_logo.png new file mode 100755 index 000000000..bb309114c Binary files /dev/null and b/pos_magnify_image/static/description/cybro_logo.png differ diff --git a/pos_magnify_image/static/description/icon.png b/pos_magnify_image/static/description/icon.png new file mode 100755 index 000000000..4c518c439 Binary files /dev/null and b/pos_magnify_image/static/description/icon.png differ diff --git a/pos_magnify_image/static/description/index.html b/pos_magnify_image/static/description/index.html new file mode 100755 index 000000000..8fa259763 --- /dev/null +++ b/pos_magnify_image/static/description/index.html @@ -0,0 +1,325 @@ + +
+
+

+ Pos Product Magnify Image +

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

+ Overview +

+

+ This module allow to magnify product image in pos. +

+
+
+ +
+
+

+ Features +

+

+ + + icon on pos product image. +

+

+ + On clicking + icon, display pop up with magnified product image. +

+
+
+ +
+
+

+ Screenshots +

+

+ + Click on + button to get magnified product image. +

+
+ +
+ +
+
+ +
+
+ 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/pos_magnify_image/static/description/magnify_image.png b/pos_magnify_image/static/description/magnify_image.png new file mode 100755 index 000000000..a73a36b58 Binary files /dev/null and b/pos_magnify_image/static/description/magnify_image.png differ diff --git a/pos_magnify_image/static/description/pos-magnify-cybrosys-1.png b/pos_magnify_image/static/description/pos-magnify-cybrosys-1.png new file mode 100755 index 000000000..5f6cbd21c Binary files /dev/null and b/pos_magnify_image/static/description/pos-magnify-cybrosys-1.png differ diff --git a/pos_magnify_image/static/src/css/product_image_magnify.css b/pos_magnify_image/static/src/css/product_image_magnify.css new file mode 100755 index 000000000..0ae160067 --- /dev/null +++ b/pos_magnify_image/static/src/css/product_image_magnify.css @@ -0,0 +1,18 @@ +.pos-product-magnify { + position: absolute; + bottom:auto; + top:0; + left: 2px; + line-height: 13px; + border-radius: 2px; + z-index:1000; +} +.product_large_image{ + margin: 0 auto; + width: 250px; + height:250px; +} +.product_large_image img{ + width: 100%; + height:100%; +} \ No newline at end of file diff --git a/pos_magnify_image/static/src/js/pos_product_image.js b/pos_magnify_image/static/src/js/pos_product_image.js new file mode 100755 index 000000000..887c1e7bd --- /dev/null +++ b/pos_magnify_image/static/src/js/pos_product_image.js @@ -0,0 +1,60 @@ +odoo.define('point_of_sale.pos_product_image_magnify', function (require) { +"use strict"; + +var screens = require('point_of_sale.screens'); +var gui = require('point_of_sale.gui'); +var core = require('web.core'); +var AbstractAction = require('web.AbstractAction') +var PopupWidget = require('point_of_sale.popups'); +var ProductListWidget = screens.ProductListWidget; +var QWeb = core.qweb; +var _t = core._t; + +ProductListWidget.include({ + renderElement: function() { + var el_str = QWeb.render(this.template, {widget: this}); + var el_node = document.createElement('div'); + el_node.innerHTML = el_str; + el_node = el_node.childNodes[1]; + + if(this.el && this.el.parentNode){ + this.el.parentNode.replaceChild(el_node,this.el); + } + this.el = el_node; + var list_container = el_node.querySelector('.product-list'); + for(var i = 0, len = this.product_list.length; i < len; i++){ + var product_node = this.render_product(this.product_list[i]); + product_node.addEventListener('click',this.click_product_handler); + product_node.querySelector('.pos-product-magnify').addEventListener('click',this.on_click_pos_product_magnify); + list_container.appendChild(product_node); + } + }, + get_product_image_large: function(product){ + return window.location.origin + "/web/image/product.product/" + product.id + "/image_128"; + }, + + on_click_pos_product_magnify: function (e) { + var self = this; + e.stopPropagation(); + var $target = $(e.currentTarget).parent(); + var product_id = $target.data('product-id'); + var product = this.pos.db.get_product_by_id(product_id); + var image_url = this.get_product_image_large(product); + console.log(image_url) + this.gui.show_popup('product_image',{image_url:image_url, 'title': product.display_name}); + }, +}); + +var ProductZoomPopupWidget = PopupWidget.extend({ + template: 'ProductZoomPopupWidget', + show: function(options){ + options = options || {}; + var self = this; + this._super(options); + this.image_url = options.image_url + this.renderElement(); + } +}); +gui.define_popup({name:'product_image', widget: ProductZoomPopupWidget}); +}); + diff --git a/pos_magnify_image/static/src/xml/pos_product_image.xml b/pos_magnify_image/static/src/xml/pos_product_image.xml new file mode 100755 index 000000000..a02c90706 --- /dev/null +++ b/pos_magnify_image/static/src/xml/pos_product_image.xml @@ -0,0 +1,35 @@ + + + + + + + diff --git a/pos_magnify_image/views/pos_product_magnify_image.xml b/pos_magnify_image/views/pos_product_magnify_image.xml new file mode 100755 index 000000000..b6ef2b2fe --- /dev/null +++ b/pos_magnify_image/views/pos_product_magnify_image.xml @@ -0,0 +1,11 @@ + + + +