mirror of
https://gitlab.com/sonalarora/tra_backend.git
synced 2025-12-17 18:29:08 +02:00
work on sales report
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -8,11 +8,17 @@
|
|||||||
<t t-if="not o or not 'company_id' in o">
|
<t t-if="not o or not 'company_id' in o">
|
||||||
<t t-set="company" t-value="res_company"></t>
|
<t t-set="company" t-value="res_company"></t>
|
||||||
</t>
|
</t>
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<div class="row mt32 mb32">
|
<div class="row mt32 mb32">
|
||||||
<div class="col-6">
|
<div class="col-12">
|
||||||
|
<font color="#fff"><img t-att-src="'data:image/png;base64,%s' % to_text(company.logo)" style="max-height: 250px;"/></font>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!--<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;" />
|
<img t-if="company.logo" t-att-src="'data:image/png;base64,%s' % to_text(company.logo)" style="max-height: 50px;" />
|
||||||
</div>
|
</div>
|
||||||
<div class="col-6 text-right" style="font:12px lucida-console,sans-serif !important;">
|
<div class="col-6 text-right" style="font:12px lucida-console,sans-serif !important;">
|
||||||
<span t-field="company.partner_id" />
|
<span t-field="company.partner_id" />
|
||||||
<br/>
|
<br/>
|
||||||
@@ -27,8 +33,8 @@
|
|||||||
<span t-field="company.partner_id.vat" />
|
<span t-field="company.partner_id.vat" />
|
||||||
<br/>
|
<br/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>-->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<t t-call="web.external_layout">
|
<t t-call="web.external_layout">
|
||||||
<t t-set="o" t-value="doc.with_context({'lang':doc.partner_id.lang})" />
|
<t t-set="o" t-value="doc.with_context({'lang':doc.partner_id.lang})" />
|
||||||
@@ -36,15 +42,16 @@
|
|||||||
<div class="oe_structure" />
|
<div class="oe_structure" />
|
||||||
<div >
|
<div >
|
||||||
<div style=" background-color: #3498DB;">
|
<div style=" background-color: #3498DB;">
|
||||||
<h2>
|
<h2>
|
||||||
<span ><font color="#fff">Order# </font></span>
|
<span t-if="doc.state not in ['draft','sent']"><font color="#fff">Order #</font></span>
|
||||||
<font color="#fff"><span t-field="o.name"/></font>
|
<span t-if="doc.state in ['draft','sent']"><font color="#fff">Quotation # </font></span>
|
||||||
|
<font color="#fff"><span t-field="o.name"/></font>
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<div class="row mt32 mb32">
|
<div class="row mt32 mb32">
|
||||||
<div class="col-3">
|
<div class="col-3">
|
||||||
<font color="#fff">
|
<font color="#fff">
|
||||||
<strong>Your Reference</strong>
|
<strong>Your References</strong>
|
||||||
<p t-field="o.client_order_ref"/></font>
|
<p t-field="o.client_order_ref"/></font>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -64,10 +71,9 @@
|
|||||||
<font color="#fff">
|
<font color="#fff">
|
||||||
<strong>Sales Person</strong>
|
<strong>Sales Person</strong>
|
||||||
<p t-field="o.user_id"/></font>
|
<p t-field="o.user_id"/></font>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="row mt32 mb32">
|
||||||
<div class="row mt32 mb32">
|
|
||||||
<div class="col-3">
|
<div class="col-3">
|
||||||
<font color="#fff">
|
<font color="#fff">
|
||||||
<strong>Validity</strong>
|
<strong>Validity</strong>
|
||||||
@@ -77,15 +83,16 @@
|
|||||||
<div class="col-3" t-if="o.date_order">
|
<div class="col-3" t-if="o.date_order">
|
||||||
<font color="#fff">
|
<font color="#fff">
|
||||||
<strong>Sales Code</strong>
|
<strong>Sales Code</strong>
|
||||||
<p t-field="o.date_order"/></font>
|
</font>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-3" t-if="o.payment_term_id">
|
<div class="col-3">
|
||||||
<font color="#fff">
|
<font color="#fff">
|
||||||
<strong>RFQ</strong>
|
<strong>RFQ</strong>
|
||||||
<p t-field="o.payment_term_id"/></font>
|
<p/></font>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="row mt32 mb32">
|
<div class="row mt32 mb32">
|
||||||
<div class="col-6 ">
|
<div class="col-6 ">
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
'maintainer': '',
|
'maintainer': '',
|
||||||
'website': "",
|
'website': "",
|
||||||
'depends': [
|
'depends': [
|
||||||
'base','report', 'account', 'bi_professional_reports_templates'
|
'base','account', 'bi_professional_reports_templates'
|
||||||
],
|
],
|
||||||
'data': [
|
'data': [
|
||||||
'views/invoice_report.xml',
|
'views/invoice_report.xml',
|
||||||
|
|||||||
BIN
reports/views/.sale_report.xml.swp
Normal file
BIN
reports/views/.sale_report.xml.swp
Normal file
Binary file not shown.
@@ -1,30 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<odoo>
|
<odoo>
|
||||||
<template id="custom_sale_report" inherit_id="bi_professional_reports_templates.fency_report_saleorder_document">
|
<template id="custom_sale_report" inherit_id="bi_professional_reports_templates.fency_report_saleorder_document">
|
||||||
<xpath expr="//t[@t-call='web.external_layout']/div/div[2]/div[1]" position="after">
|
|
||||||
<div class="row mt32 mb32">
|
|
||||||
<div class="col-3">
|
|
||||||
<font color="#fff">
|
|
||||||
<strong>Validity</strong>
|
|
||||||
<p t-field="o.client_order_ref"/></font>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-3" t-if="o.date_order">
|
|
||||||
<font color="#fff">
|
|
||||||
<strong>Sales Code</strong>
|
|
||||||
<p t-field="o.date_order"/></font>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-3" t-if="o.payment_term_id">
|
|
||||||
<font color="#fff">
|
|
||||||
<strong>RFQ</strong>
|
|
||||||
<p t-field="o.payment_term_id"/></font>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- <strong>Validity</strong><br/>
|
|
||||||
<strong></strong><br/>
|
|
||||||
<strong>RFQ</strong><br/> -->
|
|
||||||
</xpath>
|
|
||||||
<xpath expr="//t[@t-call='web.external_layout']/div/div[2]" position="after">
|
<xpath expr="//t[@t-call='web.external_layout']/div/div[2]" position="after">
|
||||||
<span style="color:blue;">NOTE:</span><br/>
|
<span style="color:blue;">NOTE:</span><br/>
|
||||||
<span style="color:blue;">All prices quoted are new materials.</span>
|
<span style="color:blue;">All prices quoted are new materials.</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user