release 1.0

master twin_oaks
Brenden Eshbach 2023-12-09 00:30:05 -06:00
parent f43943bf9a
commit 32a8201c0d
1 changed files with 21 additions and 19 deletions

View File

@ -1,37 +1,39 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2017 Eficent Business and IT Consulting Services S.L.
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
<template id="task_report">
<t t-call="web.html_container">
<t t-call="web.external_layout">
<t t-foreach="docs" t-as="doc">
<!-- <t t-call="web.external_layout"> -->
<div class="page" style="border: 1px solid black; margin: 10px; padding: 10px;">
<h1><t t-esc="doc.partner_id.street"/></h1>
<h2><t t-esc="doc.name"/></h2>
<div class="page" style="border: 1px solid lightblue; margin: 10px; padding: 10px; border-radius: 10px; page-break-inside: avoid; ">
<h3>
<span style="float: left;"><t t-esc="doc.partner_id.street"/> <t t-esc="doc.partner_id.city"/></span>
<span style="float: right;"><t t-esc="doc.name"/></span>
<div style="clear: both;"></div>
</h3>
<div class="row">
<div class="col-6">
<p><strong>Assignee:</strong> <t t-esc="doc.user_ids.name"/></p>
<p><strong>Deadline:</strong> <t t-esc="doc.date_deadline"/></p>
<p><strong>Gallons:</strong> <t t-esc="doc.x_gallons"/></p>
<p><strong>Number of Tanks:</strong> <t t-esc="doc.x_number_tanks"/></p>
<p><strong>Price:</strong> <t t-esc="doc.x_price"/></p>
<p><strong>System Type:</strong> <t t-esc="doc.x_system_type"/></p>
<!-- Add your other custom fields here -->
<p><i class="fa fa-usd"></i> <strong>Price:</strong> <t t-esc="doc.x_price"/></p>
<p><i class="fa fa-phone"></i> <strong>Phone:</strong> <t t-esc="doc.partner_id.phone"/></p>
<p><i class="fa fa-cubes"></i> <strong>Number of Tanks:</strong> <t t-esc="doc.x_number_tanks"/></p>
<p><i class="fa fa-tint"></i> <strong>Gallons:</strong> <t t-esc="doc.x_gallons"/></p>
</div>
<div class="col-6">
<p><i class="fa fa-phone"></i> <strong>Partner Phone:</strong> <t t-esc="doc.partner_id.phone"/></p>
<p><i class="fa fa-home"></i> <strong>Partner Address:</strong> <t t-esc="doc.partner_id.contact_address"/></p>
<p><i class="fa fa-calendar"></i> <strong>Deadline:</strong> <t t-esc="doc.date_deadline"/></p>
<p><i class="fa fa-cogs"></i> <strong>System Type:</strong> <t t-esc="doc.x_system_type"/></p>
<p><i class="fa fa-user"></i> <strong>Assignee:</strong> <t t-esc="doc.user_ids.name"/></p>
<p><i class="fa fa-home"></i> <strong>Full Address:</strong> <t t-esc="doc.partner_id.contact_address"/></p>
</div>
</div>
</div>
</div>
<!-- </t> -->
<t t-if="(doc_index + 1) % 2 == 0">
<div style="clear: both;"></div>
</t>
</t>
</t>
</t>
</template>
<record id="report_project_tasks_by_assignee_action" model="ir.actions.report">
<field name="name">Test Report 1</field>
<field name="name">Task Cards</field>
<field name="model">project.task</field>
<field name="report_type">qweb-html</field>
<field name="report_name">twin_oaks_customizations.task_report</field>