Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new module bi_professional_reports_templates #429

Open
wants to merge 1 commit into
base: 15.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions bi_professional_reports_templates/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Odoo Proprietary License v1.0

This software and associated files (the "Software") may only be used (executed,
modified, executed after modifications) if you have purchased a valid license
from the authors, typically via Odoo Apps, or if you have received a written
agreement from the authors of the Software (see the COPYRIGHT file).

You may develop Odoo modules that use the Software as a library (typically
by depending on it, importing it and using its resources), but without copying
any source code or material from the Software. You may distribute those
modules under the license of your choice, provided that this license is
compatible with the terms of the Odoo Proprietary License (For example:
LGPL, MIT, or proprietary licenses similar to this one).

It is forbidden to publish, distribute, sublicense, or sell copies of the Software
or modified copies of the Software.

The above copyright notice and this permission notice must be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

Empty file.
5 changes: 5 additions & 0 deletions bi_professional_reports_templates/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# -*- coding: utf-8 -*-
# Part of BrowseInfo. See LICENSE file for full copyright and licensing details.

from . import res_company

56 changes: 56 additions & 0 deletions bi_professional_reports_templates/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# -*- coding: utf-8 -*-
# Part of BrowseInfo. See LICENSE file for full copyright and licensing details.

{
'name': 'Odoo Professional Report Templates',
'version': '15.0.0.0',
'category': 'Tools',
'license': 'OPL-1',
'summary': 'Easily Customizable Report Template for Quotation/SO/Sales, Invoice, Picking/Delivery Order,RFQ/PO/Purchases',
'description': """
Customize report, customize pdf report, customize template report, Customize Sales Order report,Customize Purchase Order report, Customize invoice report, Customize delivery Order report, Accounting Reports, Easy reports, Flexible report,Fancy Report template.

""",
'license':'OPL-1',
'author': 'BrowseInfo',
'live_test_url':'https://youtu.be/_aihFWW4a5E',
'website': 'https://www.browseinfo.in',
'depends': ['base', 'account', 'sale', 'purchase', 'stock', 'sale_stock', 'base_vat','sale_management','purchase_stock'],
'data': [

"res_company.xml",

"invoice_report/fency_report_account.xml",
"invoice_report/fency_report_invoice.xml",
"invoice_report/report_invoice_classic.xml",
"invoice_report/report_invoice_modern.xml",
"invoice_report/report_invoice_odoo_standard.xml",

"delivery_report/stock_report_classic.xml",
"delivery_report/fency_report_deliveryslip.xml",
"delivery_report/modern_report_deliveryslip.xml",
"delivery_report/odoo_standard_report_deliveryslip.xml",
"delivery_report/report_deliveryslip_classic.xml",


"purchase_report/classic_report_purchaseorder.xml",
"purchase_report/classic_report_purchasequotation.xml",
"purchase_report/fency_report_purchaseorder.xml",
"purchase_report/fency_report_purchasequotation.xml",
"purchase_report/modern_report_purchaseorder.xml",
"purchase_report/modern_report_purchasequotation.xml",
"purchase_report/odoo_standard_report_purchaseorder.xml",
"purchase_report/odoo_standard_report_purchasequotation.xml",

"sale_report/classic_report_saleorder.xml",
"sale_report/fency_report_saleorder.xml",
"sale_report/modern_report_saleorder.xml",
"sale_report/odoo_standard_report_saleorder.xml",
],
'demo': [],
'test': [],
'installable': True,
'auto_install': False,
'live_test_url':'https://youtu.be/_aihFWW4a5E',
"images":['static/description/Banner.png'],
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,232 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<template id="fency_report_deliveryslip_document">
<t t-if="o and 'company_id' in o">
<t t-set="company" t-value="o.company_id"></t>
</t>
<t t-if="not o or not 'company_id' in o">
<t t-set="company" t-value="res_company"></t>
</t>
<div class="header">
<div class="row mt32 mb32">
<div class="col-6">
<img t-if="company.logo" t-att-src="'data:image/png;base64,%s' % to_text(company.logo)"
style="max-height: 50px;"/>
</div>
<div class="col-6 text-right" style="font:12px lucida-console,sans-serif !important;">
<span t-field="company.partner_id"/>
<br/>
<span t-field="company.partner_id.street"/>
<br/>
<span t-field="company.partner_id.street2"/>
<br/>
<span t-field="company.partner_id.city"/>
<br/>
<span t-field="company.partner_id.country_id"/>
<br/>
<span t-field="company.partner_id.vat"/>
<br/>
</div>
</div>
</div>

<t t-call="web.external_layout">
<t t-set="o" t-value="o.with_context({'lang':o.partner_id.lang})"/>
<div class="page">
<div class="oe_structure"/>
<div class="row">
<div class="col-6" style="font:15px lucida-console,sans-serif !important;">
<span style="background-color:#3498DB;">Customer Address</span>
<br/>
<span t-field="o.partner_id"/>
<br/>
<span t-field="o.partner_id.street"/>
<br/>
<span t-field="o.partner_id.street2"/>
<br/>
<span t-field="o.partner_id.city"/>
<br/>
<span t-field="o.partner_id.state_id"/>
<br/>
<span t-field="o.partner_id.country_id"/>
<br/>
<span t-field="o.partner_id.vat"/>
<br/>
</div>

<div class="col-6 text-right" style="font:15px lucida-console,sans-serif !important; ">
<span style="background-color:#3498DB;">Delivery Address</span>
<div t-if="o.move_lines and o.move_lines[0].partner_id and o.move_lines[0].partner_id.id != o.partner_id.id">
<div>
<div t-field="o.move_lines[0].partner_id"
t-field-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": true}'/>
<div t-field="o.move_lines[0].partner_id.street"/>
<span t-field="o.move_lines[0].partner_id.street2"/>
<br/>
<span t-field="o.move_lines[0].partner_id.city"/>
<br/>
<span t-field="o.move_lines[0].partner_id.country_id"/>
<br/>
<span t-field="o.move_lines[0].partner_id.zip"/>
<br/>
<div t-field="o.move_lines[0].partner_id.vat"/>
</div>
</div>
<div t-if="(o.move_lines and o.move_lines[0].partner_id and o.move_lines[0].partner_id.id == o.partner_id.id) or o.move_lines and not o.move_lines[0].partner_id">
<span t-field="o.partner_id"/>
<br/>
<span t-field="o.partner_id.street"/>
<br/>
<span t-field="o.partner_id.street2"/>
<br/>
<span t-field="o.partner_id.city"/>
<br/>
<span t-field="o.partner_id.state_id"/>
<br/>
<span t-field="o.partner_id.country_id"/>
<br/>
<span t-field="o.partner_id.vat"/>
<br/>
</div>
</div>
</div>

<div class="row">
<div class="col-4"/>
<div class="col-8 text-right"
style="font:15px lucida-console,sans-serif !important; background-color: #3498DB; ">
<h2>
<span>
<font color="#fff">Delivery Note #</font>
<span style="color:#FFF !important;" t-field="o.name"/>
</span>
<br/>
</h2>
<div>
<div class="col-5">
<div>
<font color="#fff">Origin:</font>
</div>
<div style="color:#FFF !important;" t-field="o.picking_type_id"/>
</div>
<div class="col-4">
<div>
<div>
<font color="#fff">Scheduled Date:</font>
</div>
<div style="color:#FFF !important;" t-field="o.scheduled_date"/>
</div>
</div>
</div>
</div>
</div>
<br/>

<table class="table table-sm" style="padding-top=50px; padding-bottom=50px;"
t-if="not o.move_line_ids">
<thead>
<tr>
<th style="background-color:#3498DB !important;color:#FFF !important;">Product</th>
<th style="background-color:#3498DB !important;color:#FFF !important;">Ordered
Quantity
</th>
</tr>
</thead>
<tbody>
<tr t-foreach="o.move_lines" t-as="move">
<td>
<span t-field="move.product_id"/>
</td>
<td>
<span t-field="move.product_qty"/>
<span t-field="move.product_uom"/>
</td>
</tr>
</tbody>
</table>
<table class="table table-sm" style="padding-top=50px;" t-if="o.move_line_ids">
<t t-set="has_serial_number" t-value="o.move_line_ids.mapped('lot_id')"
groups="stock.group_production_lot"/>
<thead>
<tr>
<th style="background-color:#3498DB !important;color:#FFF !important;">Product</th>
<th style="background-color:#3498DB !important;color:#FFF !important;" name="lot_serial"
t-if="has_serial_number">
Lot/Serial Number
</th>
<th style="background-color:#3498DB !important;color:#FFF !important;">Ordered
Quantity
</th>
<th t-if="any([move_line.state == 'done' for move_line in o.move_line_ids])"
style="background-color:#3498DB !important;color:#FFF !important;">
Delivered Quantity
</th>
</tr>
</thead>
<tbody>
<tr t-foreach="o.move_line_ids" t-as="move_line">
<td>
<span t-field="move_line.product_id"/>
<p t-if="o.picking_type_code == 'outgoing'">
<span t-field="move_line.product_id.description_pickingout"/>
</p>
<p t-if="o.picking_type_code == 'incoming'">
<span t-field="move_line.product_id.description_pickingin"/>
</p>
<t t-if="not move_line.product_id and move_line.package_id">
<span t-field="move_line.package_id"/>
</t>
</td>
<t t-if="has_serial_number">
<td>
<table width="100%">
<tr>
<td>
<span t-field="move_line.lot_id"/>
<t t-if="not move_line.lot_id">
<span t-field="move_line.lot_name"/>
</t>
</td>
<td name="lot_qty">
<t t-if="move_line.product_qty">
<span t-field="move_line.product_qty"/>
</t>
</td>
</tr>
</table>
</td>
</t>
<td class="text-center">
<span t-field="move_line.package_id"/>
<span t-if="move_line.package_id">:</span>
<span t-field="move_line.product_qty"/>
<span t-field="move_line.product_uom_id"/>
</td>
<td class="text-right" t-if="move_line.state == 'done'">
<t t-if="move_line.product_qty != move_line.qty_done">
<t t-set="backorder" t-value="True"/>
</t>
<span t-field="move_line.qty_done"/>
<span t-field="move_line.product_uom_id"/>
</td>
</tr>
</tbody>
</table>
<p t-if="o.backorder_id">
This shipment is a backorder of<t t-esc="o.backorder_id.name"/>.
</p>
<p>
<t t-if="backorder">
All items couldn't be shipped, the remaining ones will be shipped as soon as they become
available.
</t>
</p>

</div>

</t>
</template>

</data>
</odoo>
Loading