Skip to content

Commit

Permalink
[IMP] Added paper format to remove the blank space between the Header…
Browse files Browse the repository at this point in the history
… and the Body.
  • Loading branch information
sudhir-serpentcs committed Feb 27, 2017
1 parent 0e6ed46 commit 7a895e0
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 2 deletions.
1 change: 1 addition & 0 deletions business_requirement_deliverable_report/__openerp__.py
Expand Up @@ -13,6 +13,7 @@
'business_requirement_deliverable',
],
'data': [
'data/br_report_paperformat.xml',
'views/report_business_requirement.xml',
'views/report_business_requirement_deliverable.xml',
'views/report_business_requirement_deliverable_resource.xml',
Expand Down
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<record id="br_report_paperformat_us" model="report.paperformat">
<field name="name">BR Report US Letter</field>
<field name="default" eval="True" />
<field name="format">Letter</field>
<field name="page_height">0</field>
<field name="page_width">0</field>
<field name="orientation">Portrait</field>
<field name="margin_top">15</field>
<field name="margin_bottom">20</field>
<field name="margin_left">7</field>
<field name="margin_right">7</field>
<field name="header_line" eval="False" />
<field name="header_spacing">10</field>
<field name="dpi">90</field>
</record>

</odoo>
5 changes: 4 additions & 1 deletion business_requirement_deliverable_report/report/report.xml
Expand Up @@ -8,8 +8,9 @@
report_type="qweb-pdf"
name="business_requirement_deliverable_report.br_report"
file="business_requirement_deliverable_report.br_report"
paperformat="business_requirement_deliverable_report.br_report_paperformat_us"
attachment_use="True"
attachment="((object.name+object.description)+'.pdf')"
attachment="('BR-'+(object.name+object.description)+'.pdf')"
/>

<report
Expand All @@ -19,6 +20,7 @@
report_type="qweb-pdf"
name="business_requirement_deliverable_report.br_deliverable_report"
file="business_requirement_deliverable_report.br_deliverable_report"
paperformat="business_requirement_deliverable_report.br_report_paperformat_us"
attachment_use="True"
attachment="('BRD-'+(object.name+object.description)+'.pdf')"
/>
Expand All @@ -30,6 +32,7 @@
report_type="qweb-pdf"
name="business_requirement_deliverable_report.br_deliverable_resource_report"
file="business_requirement_deliverable_report.br_deliverable_resource_report"
paperformat="business_requirement_deliverable_report.br_report_paperformat_us"
attachment_use="True"
attachment="('BRDR-'+(object.name+object.description)+'.pdf')"
/>
Expand Down
Expand Up @@ -31,7 +31,7 @@
</template>

<template id="layout_br_base">
<h3><span t-field="o.name"/>-<span t-field="o.description"/></h3>
<h3 class="text-center"><span t-field="o.name"/>-<span t-field="o.description"/></h3>
<table class="table table-bordered" style="table-collapse:collapse; table-layout:fixed">
<tbody>
<tr>
Expand Down

0 comments on commit 7a895e0

Please sign in to comment.