diff --git a/buy_now_button/README.rst b/buy_now_button/README.rst new file mode 100644 index 000000000..922086fd1 --- /dev/null +++ b/buy_now_button/README.rst @@ -0,0 +1,57 @@ +Buy Now Button in Website v12 +============================= + +The module add a button to shope page that helps to purchase single product directly.it cannot redirect to cart. Select a procuct and click on the button it can redirect to confirmation page of the Ecommerce website. + + +Features +======== + +* Available in Odoo 12.0 community edition . +* The module help quick checkout for buyers looking to buy a single product at a time. +* When 'Buy Now' button clicked a new cart will create and add the entire product and directly moved to confirmation page of the website +* Keeps existing cart product. + + + +Depends +======= +[Website] addon Odoo + + +Tech +==== +* [XML] - Odoo views +* [JS] - Odoo views +* [Python] - Controllers + + + +Installation +============ +- www.odoo.com/documentation/12.0/setup/install.html +- Install our custom addon + + +License +======= +GNU LGPL, Version 3 (LGPLv3) +(http://www.gnu.org/licenses/agpl.html) + + +Bug Tracker +=========== + +Contact odoo@cybrosys.com + + +Authors +------- +* MuhammedMukthar.N, 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/buy_now_button/__init__.py b/buy_now_button/__init__.py new file mode 100644 index 000000000..b0f26a9a6 --- /dev/null +++ b/buy_now_button/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +from . import controllers diff --git a/buy_now_button/__manifest__.py b/buy_now_button/__manifest__.py new file mode 100644 index 000000000..926c3c86c --- /dev/null +++ b/buy_now_button/__manifest__.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# you can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################## +{ + 'name': 'Buy Now Button in Website', + 'version': '12.0.1.0.0', + 'summary': """ Buy now button on Website""", + 'description': 'Buy now is added in the E-commerce for the purpose of quick checkout', + 'category': 'Website', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'depends': ['base', 'website_sale'], + 'data': ['views/buy_now.xml', + 'views/update_qty.xml'], + 'demo': [], + 'images': ['static/description/banner.png'], + 'license': 'LGPL-3', + 'installable': True, + 'auto_install': False, +} diff --git a/buy_now_button/controllers/__init__.py b/buy_now_button/controllers/__init__.py new file mode 100644 index 000000000..bc401715a --- /dev/null +++ b/buy_now_button/controllers/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +from . import buy_now diff --git a/buy_now_button/controllers/buy_now.py b/buy_now_button/controllers/buy_now.py new file mode 100644 index 000000000..449d54f36 --- /dev/null +++ b/buy_now_button/controllers/buy_now.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- + +import logging +from odoo import fields, http, tools, _ +from odoo.http import request +from odoo.addons.website_sale.controllers.main import WebsiteSale + + +class websale(WebsiteSale): + + @http.route(['/shop/buy_now'], type='http', auth="public", methods=['POST'], website=True) + def pay(self, product_id_buy, add_qty=1): + product_custom_attribute_values = None + no_variant_attribute_values = None + partner = request.website.env.user.partner_id + pricelist_id = request.session.get('website_sale_current_pl') or request.website.get_current_pricelist().id + pricelist = request.website.env['product.pricelist'].browse(pricelist_id).sudo() + so_data = request.website._prepare_sale_order_values(partner, pricelist) + sale_order = request.website.env['sale.order'].with_context( + force_company=request.website.company_id.id).sudo().create( + so_data) + # set fiscal position + if request.website.partner_id.id != partner.id: + sale_order.onchange_partner_shipping_id() + else: # For public user, fiscal position based on geolocation + country_code = request.session['geoip'].get('country_code') + if country_code: + country_id = request.env['res.country'].search([('code', '=', country_code)], limit=1).id + fp_id = request.env['account.fiscal.position'].sudo().with_context(force_company=request.website.company_id.id)._get_fpos_by_region(country_id) + sale_order.fiscal_position_id = fp_id + else: + # if no geolocation, use the public user fp + sale_order.onchange_partner_shipping_id() + + request.session['sale_order_id'] = sale_order.id + sale_order.sudo()._cart_update( + product_id=int(product_id_buy), + add_qty=add_qty, + set_qty=0, + product_custom_attribute_values=product_custom_attribute_values, + no_variant_attribute_values=no_variant_attribute_values + ) + # Take sale order id for payment confirmation page + request.session['sale_last_order_id'] = sale_order.id + return request.redirect("/shop/payment") diff --git a/buy_now_button/doc/RELEASE_NOTES.md b/buy_now_button/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..45b9947f9 --- /dev/null +++ b/buy_now_button/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 29.07.2019 +#### Version 12.0.1.0.0 +##### ADD +Initial Commit for 'buy_now_button' diff --git a/buy_now_button/static/description/banner.png b/buy_now_button/static/description/banner.png new file mode 100644 index 000000000..645173ad8 Binary files /dev/null and b/buy_now_button/static/description/banner.png differ diff --git a/buy_now_button/static/description/buy_now_website_1.png b/buy_now_button/static/description/buy_now_website_1.png new file mode 100644 index 000000000..672e6bcac Binary files /dev/null and b/buy_now_button/static/description/buy_now_website_1.png differ diff --git a/buy_now_button/static/description/buy_now_website_2.png b/buy_now_button/static/description/buy_now_website_2.png new file mode 100644 index 000000000..ad41343a5 Binary files /dev/null and b/buy_now_button/static/description/buy_now_website_2.png differ diff --git a/buy_now_button/static/description/buy_now_website_3.png b/buy_now_button/static/description/buy_now_website_3.png new file mode 100644 index 000000000..ae4945179 Binary files /dev/null and b/buy_now_button/static/description/buy_now_website_3.png differ diff --git a/buy_now_button/static/description/buy_now_website_odoo_e_commerce.png b/buy_now_button/static/description/buy_now_website_odoo_e_commerce.png new file mode 100644 index 000000000..11d8c39fa Binary files /dev/null and b/buy_now_button/static/description/buy_now_website_odoo_e_commerce.png differ diff --git a/buy_now_button/static/description/checked.png b/buy_now_button/static/description/checked.png new file mode 100644 index 000000000..578cedb80 Binary files /dev/null and b/buy_now_button/static/description/checked.png differ diff --git a/buy_now_button/static/description/cybro_logo.png b/buy_now_button/static/description/cybro_logo.png new file mode 100644 index 000000000..bb309114c Binary files /dev/null and b/buy_now_button/static/description/cybro_logo.png differ diff --git a/buy_now_button/static/description/event_attach.jpeg b/buy_now_button/static/description/event_attach.jpeg new file mode 100644 index 000000000..ace1c9646 Binary files /dev/null and b/buy_now_button/static/description/event_attach.jpeg differ diff --git a/buy_now_button/static/description/hotjar_web.jpeg b/buy_now_button/static/description/hotjar_web.jpeg new file mode 100644 index 000000000..4fa34749a Binary files /dev/null and b/buy_now_button/static/description/hotjar_web.jpeg differ diff --git a/buy_now_button/static/description/icon.png b/buy_now_button/static/description/icon.png new file mode 100644 index 000000000..5f08d7ec6 Binary files /dev/null and b/buy_now_button/static/description/icon.png differ diff --git a/buy_now_button/static/description/index.html b/buy_now_button/static/description/index.html new file mode 100644 index 000000000..a33d9792f --- /dev/null +++ b/buy_now_button/static/description/index.html @@ -0,0 +1,359 @@ + + +
cybrosys-logo
+ +
+
+
+

Buy Now Website

+

Quick Check Out On a Button Click

+
+

Key Highlights

+
    +
  • checkThe module adds a button 'Buy Now' to the product in Shop page.
  • +
  • check Buyers can click on the button "Buy Now" which takes the product directly to the shopping page for checkout and confirmation.
  • +
  • check Keeps existing cart product.
  • +
+ +
+
+
+
+ + + + + + +
+
+
+ + + +
+
+ +

Overview

+
+

+ Directing your customers straight to checkout after they found a product of their choice, and this is exactly what Buy Now Website does. The module adds a button to shop page that helps to purchase a single product by skipping the cart page. Select a product, click on the button, you are straightly directed to the confirmation page of the website. +
+

+ +
+ +

Buy Now Website

+
+
    + +
  • Available in Odoo 12.0 community edition .
  • + +
  • The module help quick checkout for buyers looking to buy a single product at a time.
  • + +
  • When 'Buy Now' button is clicked, a new cart will create and add the entire product and directly moves to confirmation page of the website.
  • + +
  • The purchase through the 'Buy Now' button cannot effect existing cart.
  • + +
+
+ + + +
+ +
+

Screenshots

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

Video

+
+

Buy Now Website Demo

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

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 +
+
+ +
+
+ + +
+
+
+ + + + +
+
+ +
+ + + + + + + + + +
+
+
+ + + diff --git a/buy_now_button/static/description/map_box.jpeg b/buy_now_button/static/description/map_box.jpeg new file mode 100644 index 000000000..57b65cd6c Binary files /dev/null and b/buy_now_button/static/description/map_box.jpeg differ diff --git a/buy_now_button/static/description/prd_attach.jpeg b/buy_now_button/static/description/prd_attach.jpeg new file mode 100644 index 000000000..9a15692d6 Binary files /dev/null and b/buy_now_button/static/description/prd_attach.jpeg differ diff --git a/buy_now_button/static/description/web_bg_video.jpeg b/buy_now_button/static/description/web_bg_video.jpeg new file mode 100644 index 000000000..cd7a1fa74 Binary files /dev/null and b/buy_now_button/static/description/web_bg_video.jpeg differ diff --git a/buy_now_button/static/description/website_coupn.jpeg b/buy_now_button/static/description/website_coupn.jpeg new file mode 100644 index 000000000..32924c0a7 Binary files /dev/null and b/buy_now_button/static/description/website_coupn.jpeg differ diff --git a/buy_now_button/static/src/js/add_qty.js b/buy_now_button/static/src/js/add_qty.js new file mode 100644 index 000000000..a72c37d73 --- /dev/null +++ b/buy_now_button/static/src/js/add_qty.js @@ -0,0 +1,10 @@ +odoo.define('buy_now_button.add_qty', function (require) { +"use strict"; + + $(function(){ + $('input[name=add_qty]').change(function(){ + var quantity = $('input[name=add_qty]').val(); + var news = $('#update_qty').val(quantity) + }); + }); +}); diff --git a/buy_now_button/views/buy_now.xml b/buy_now_button/views/buy_now.xml new file mode 100644 index 000000000..92000d142 --- /dev/null +++ b/buy_now_button/views/buy_now.xml @@ -0,0 +1,28 @@ + + + + + + + diff --git a/buy_now_button/views/update_qty.xml b/buy_now_button/views/update_qty.xml new file mode 100644 index 000000000..14c1b0e25 --- /dev/null +++ b/buy_now_button/views/update_qty.xml @@ -0,0 +1,7 @@ + + + + + diff --git a/project_report_pdf/README.rst b/project_report_pdf/README.rst new file mode 100644 index 000000000..21e11da94 --- /dev/null +++ b/project_report_pdf/README.rst @@ -0,0 +1,26 @@ +Project Report v12 +================== +PDF and XLS Reports for Project Module. + + +Features +======== +* Project Task Report XLS [With advanced Filtration] +* Project Task Report PDF [With advanced Filtration] + +Installation +============ +To install this module, you need also the **report_xlsx** + + +Credits +======= +Cybrosys Techno Solutions + +Author +------ +* Developer v9: Avinash Nk @ cybrosys +* Developer v10: Treesa @ cybrosys +* Developer V11: Akshay @ cybrosys +* Developer V12: Akshay @ cybrosys + diff --git a/project_report_pdf/__init__.py b/project_report_pdf/__init__.py new file mode 100644 index 000000000..d768f66c3 --- /dev/null +++ b/project_report_pdf/__init__.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Akshay Babu() +# +# 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 . +# +################################################################################### +from . import wizard +from . import report + diff --git a/project_report_pdf/__manifest__.py b/project_report_pdf/__manifest__.py new file mode 100644 index 000000000..dfcc206e2 --- /dev/null +++ b/project_report_pdf/__manifest__.py @@ -0,0 +1,42 @@ +# -*- coding: utf-8 -*- +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Akshay Babu() +# +# 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': 'Project Report XLS & PDF', + 'version': '12.0.2.0.0', + "category": "Project", + 'author': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'maintainer': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'summary': """Advanced PDF & XLS Reports for Project With Filtrations""", + 'depends': ['base', 'project', 'report_xlsx'], + 'license': 'AGPL-3', + 'data': [ + 'wizard/project_report_wizard_view.xml', + 'report/project_report_pdf_view.xml', + 'views/project_report_button.xml', + 'views/project_report.xml' + ], + 'images': ['static/description/banner.png'], + 'installable': True, + 'auto_install': False, +} diff --git a/project_report_pdf/doc/RELEASE_NOTES.md b/project_report_pdf/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..6a9c8ecca --- /dev/null +++ b/project_report_pdf/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 24.07.2019 +#### Version 12.0.1.0.0 +##### ADD +- Initial commit for project_report_pdf diff --git a/project_report_pdf/report/__init__.py b/project_report_pdf/report/__init__.py new file mode 100644 index 000000000..bb158a57c --- /dev/null +++ b/project_report_pdf/report/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Akshay Babu() +# +# 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 . +# +################################################################################### +from . import project_report_pdf +from . import project_report_xls diff --git a/project_report_pdf/report/project_report_pdf.py b/project_report_pdf/report/project_report_pdf.py new file mode 100644 index 000000000..c458dec16 --- /dev/null +++ b/project_report_pdf/report/project_report_pdf.py @@ -0,0 +1,73 @@ +# -*- coding: utf-8 -*- +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Akshay Babu() +# +# 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 . +# +################################################################################### + +from odoo.http import request +from odoo import models, api + + +class ProjectReportParser(models.AbstractModel): + _name = 'report.project_report_pdf.project_report_template' + + def _get_report_values(self, docids, data=None): + name = data['record'] + wizard_record = request.env['wizard.project.report'].search([])[-1] + task_obj = request.env['project.task'] + users_selected = [] + stages_selected = [] + for elements in wizard_record.partner_select: + users_selected.append(elements.id) + for elements in wizard_record.stage_select: + stages_selected.append(elements.id) + if wizard_record.partner_select: + if wizard_record.stage_select: + current_task = task_obj.search([('project_id', '=', name), + ('user_id', 'in', users_selected), + ('stage_id', 'in', stages_selected)]) + + else: + current_task = task_obj.search([('project_id', '=', name), + ('user_id', 'in', users_selected)]) + + else: + if wizard_record.stage_select: + current_task = task_obj.search([('project_id', '=', name), + ('stage_id', 'in', stages_selected)]) + else: + current_task = task_obj.search([('project_id', '=', name)]) + vals = [] + for i in current_task: + vals.append({ + 'name': i.name, + 'user_id': i.user_id.name, + 'stage_id': i.stage_id.name, + }) + return { + 'vals': vals, + 'name': current_task[0].project_id.name, + 'manager': current_task[0].project_id.user_id.name, + 'date_start': current_task[0].project_id.date_start, + 'date_end': current_task[0].project_id.date, + } + + + + diff --git a/project_report_pdf/report/project_report_pdf_view.xml b/project_report_pdf/report/project_report_pdf_view.xml new file mode 100644 index 000000000..90fedb33a --- /dev/null +++ b/project_report_pdf/report/project_report_pdf_view.xml @@ -0,0 +1,44 @@ + + + + \ No newline at end of file diff --git a/project_report_pdf/report/project_report_xls.py b/project_report_pdf/report/project_report_xls.py new file mode 100644 index 000000000..94d8e9f1b --- /dev/null +++ b/project_report_pdf/report/project_report_xls.py @@ -0,0 +1,125 @@ + # -*- coding: utf-8 -*- +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Akshay Babu() +# +# 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 . +# +################################################################################### +from odoo.http import request +from odoo import models, api + + +class ProjectReportXls(models.AbstractModel): + _name = 'report.project_report_pdf.project_xlsx' + _inherit = 'report.report_xlsx.abstract' + + def generate_xlsx_report(self, workbook, data, lines): + print('kskskjajaajaj') + name = data['record'] + print(lines) + print(data['context']['uid']) + user_obj = self.env['res.users'].search([('id', '=', data['context']['uid'])]) + print(user_obj.company_id) + wizard_record = request.env['wizard.project.report'].search([])[-1] + task_obj = request.env['project.task'] + users_selected = [] + stages_selected = [] + for elements in wizard_record.partner_select: + users_selected.append(elements.id) + for elements in wizard_record.stage_select: + stages_selected.append(elements.id) + if wizard_record.partner_select: + if wizard_record.stage_select: + current_task = task_obj.search([('project_id', '=', name), + ('user_id', 'in', users_selected), + ('stage_id', 'in', stages_selected)]) + + else: + current_task = task_obj.search([('project_id', '=', name), + ('user_id', 'in', users_selected)]) + + else: + if wizard_record.stage_select: + current_task = task_obj.search([('project_id', '=', name), + ('stage_id', 'in', stages_selected)]) + else: + current_task = task_obj.search([('project_id', '=', name)]) + vals = [] + for i in current_task: + vals.append({ + 'name': i.name, + 'user_id': i.user_id.name if i.user_id.name else '', + 'stage_id': i.stage_id.name, + }) + print(vals, 'vals') + + sheet = workbook.add_worksheet("Project Report") + format1 = workbook.add_format({'font_size': 22, 'bg_color': '#D3D3D3'}) + format4 = workbook.add_format({'font_size': 22}) + format2 = workbook.add_format({'font_size': 12, 'bold': True, 'bg_color': '#D3D3D3'}) + format3 = workbook.add_format({'font_size': 10}) + format5 = workbook.add_format({'font_size': 10, 'bg_color': '#FFFFFF'}) + format7 = workbook.add_format({'font_size': 10, 'bg_color': '#FFFFFF'}) + format6 = workbook.add_format({'font_size': 22, 'bg_color': '#FFFFFF'}) + format7.set_align('center') + sheet.merge_range('A1:B1', user_obj.company_id.name, format5) + sheet.merge_range('A2:B2', user_obj.company_id.street, format5) + sheet.write('A3', user_obj.company_id.city, format5) + sheet.write('B3', user_obj.company_id.zip, format5) + sheet.merge_range('A4:B4', user_obj.company_id.state_id.name, format5) + sheet.merge_range('A5:B5', user_obj.company_id.country_id.name, format5) + sheet.merge_range('C1:H5', "", format5) + sheet.merge_range(5, 0, 6, 1, "Project :", format1) + sheet.merge_range(5, 2, 6, 7, current_task[0].project_id.name, format1) + sheet.merge_range('A8:B8', "Project Manager :", format5) + sheet.merge_range('C8:D8', current_task[0].project_id.user_id.name, format5) + date_start = '' + date_end = '' + if current_task[0].project_id.date_start: + date_start = str(current_task[0].project_id.date_start) + if current_task[0].project_id.date: + date_end = str(current_task[0].project_id.date) + sheet.merge_range('A9:B9', "Start Date :", format5) + sheet.merge_range('C9:D9', date_start, format5) + sheet.merge_range('A10:B10', "End Date :", format5) + sheet.merge_range('C10:D10', date_end, format5) + sheet.merge_range(0, 2, 4, 5, "", format5) + sheet.merge_range(1, 6, 4, 7, "", format5) + sheet.merge_range(7, 4, 9, 7, "", format5) + + sheet.merge_range(10, 4, 11, 7, "", format5) + sheet.merge_range('A11:H12', 'Open Tasks', format4) + + sheet.merge_range('A13:D13', "Tasks", format2) + sheet.merge_range('E13:F13', "Assigned", format2) + sheet.merge_range('G13:H13', "Stage", format2) + row_number = 13 + column_number = 0 + for val in vals: + sheet.merge_range(row_number, column_number, row_number, column_number+3, val['name'], format3) + sheet.merge_range(row_number, column_number+4, row_number, column_number+5, val['user_id'], format3) + sheet.merge_range(row_number, column_number+6, row_number, column_number+7, val['stage_id'], format3) + row_number += 1 + + row_number += 1 + sheet.merge_range(row_number, 0, row_number, 1, user_obj.company_id.phone, format7) + sheet.merge_range(row_number, 2, row_number, 4, user_obj.company_id.email, format7) + sheet.merge_range(row_number, 5, row_number, 7, user_obj.company_id.website, format7) + + + + diff --git a/project_report_pdf/static/description/banner.png b/project_report_pdf/static/description/banner.png new file mode 100644 index 000000000..3c430a7eb Binary files /dev/null and b/project_report_pdf/static/description/banner.png differ diff --git a/project_report_pdf/static/description/cybro_logo.png b/project_report_pdf/static/description/cybro_logo.png new file mode 100644 index 000000000..bb309114c Binary files /dev/null and b/project_report_pdf/static/description/cybro_logo.png differ diff --git a/project_report_pdf/static/description/icon.png b/project_report_pdf/static/description/icon.png new file mode 100644 index 000000000..954404fbd Binary files /dev/null and b/project_report_pdf/static/description/icon.png differ diff --git a/project_report_pdf/static/description/index.html b/project_report_pdf/static/description/index.html new file mode 100644 index 000000000..c31ed3856 --- /dev/null +++ b/project_report_pdf/static/description/index.html @@ -0,0 +1,355 @@ +
+
+

+ Project Report PDF & XLS +

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

+ Overview +

+

+ This module enhances the project management with intuitive reports. + Reports consist of task details with respect to the selected project. + The user can use the filter facilities from report wizard to get the optimized reports. +

+
+
+ +
+
+

+ Features +

+

+ + PDF Reports in Project. +

+

+ + XLS Reports in Project. +

+

+ + Detailed Report on Tasks. +

+

+ + Advanced Filters for Report. +

+
+
+ +
+
+

+ Screenshots +

+

+ + Go to Project -> Project +

+
+ +
+

+ + You can filter the project report via selecting the appropriate options from the wizard. +

+
+ +
+

+ + PDF Report Of Data Import/Export Plugin Project. +

+
+ +
+

+ + Excel Report Of Data Import/Export Plugin Project. +

+
+ +
+
+
+ +
+
+ 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/project_report_pdf/static/description/project-report-cybrosys-1.png b/project_report_pdf/static/description/project-report-cybrosys-1.png new file mode 100644 index 000000000..fe25a4dce Binary files /dev/null and b/project_report_pdf/static/description/project-report-cybrosys-1.png differ diff --git a/project_report_pdf/static/description/project-report-cybrosys-2.png b/project_report_pdf/static/description/project-report-cybrosys-2.png new file mode 100644 index 000000000..da15045bf Binary files /dev/null and b/project_report_pdf/static/description/project-report-cybrosys-2.png differ diff --git a/project_report_pdf/static/description/project-report-cybrosys-3.png b/project_report_pdf/static/description/project-report-cybrosys-3.png new file mode 100644 index 000000000..1e6e4699f Binary files /dev/null and b/project_report_pdf/static/description/project-report-cybrosys-3.png differ diff --git a/project_report_pdf/static/description/project-report-cybrosys-4.png b/project_report_pdf/static/description/project-report-cybrosys-4.png new file mode 100644 index 000000000..ac86d2f41 Binary files /dev/null and b/project_report_pdf/static/description/project-report-cybrosys-4.png differ diff --git a/project_report_pdf/views/project_report.xml b/project_report_pdf/views/project_report.xml new file mode 100644 index 000000000..6ca78b423 --- /dev/null +++ b/project_report_pdf/views/project_report.xml @@ -0,0 +1,25 @@ + + + + + + + diff --git a/project_report_pdf/views/project_report_button.xml b/project_report_pdf/views/project_report_button.xml new file mode 100644 index 000000000..fb5651ddc --- /dev/null +++ b/project_report_pdf/views/project_report_button.xml @@ -0,0 +1,15 @@ + + + + + project_report_pdf_inherited.form + project.project + + + +