summaryrefslogtreecommitdiff
path: root/addons/purchase_requisition/report
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
commit3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch)
treea44932296ef4a9b71d5f010906253d8c53727726 /addons/purchase_requisition/report
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/purchase_requisition/report')
-rw-r--r--addons/purchase_requisition/report/purchase_requisition_report.xml13
-rw-r--r--addons/purchase_requisition/report/report_purchaserequisition.xml100
2 files changed, 113 insertions, 0 deletions
diff --git a/addons/purchase_requisition/report/purchase_requisition_report.xml b/addons/purchase_requisition/report/purchase_requisition_report.xml
new file mode 100644
index 00000000..732d9714
--- /dev/null
+++ b/addons/purchase_requisition/report/purchase_requisition_report.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+ <record id="action_report_purchase_requisitions" model="ir.actions.report">
+ <field name="name">Call for Tenders</field>
+ <field name="model">purchase.requisition</field>
+ <field name="report_type">qweb-pdf</field>
+ <field name="report_name">purchase_requisition.report_purchaserequisitions</field>
+ <field name="report_file">purchase_requisition.report.report_purchaserequisitions</field>
+ <field name="print_report_name">'Tender - %s' % (object.name)</field>
+ <field name="binding_model_id" ref="model_purchase_requisition"/>
+ <field name="binding_type">report</field>
+ </record>
+</odoo>
diff --git a/addons/purchase_requisition/report/report_purchaserequisition.xml b/addons/purchase_requisition/report/report_purchaserequisition.xml
new file mode 100644
index 00000000..8c9da378
--- /dev/null
+++ b/addons/purchase_requisition/report/report_purchaserequisition.xml
@@ -0,0 +1,100 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+<data>
+<template id="report_purchaserequisitions">
+ <t t-call="web.html_container">
+ <t t-foreach="docs" t-as="o">
+ <t t-call="web.external_layout">
+ <div class="page">
+ <div class="oe_structure"/>
+
+ <h2>Call for Tenders <span t-field="o.name"/></h2>
+
+ <div class="row mt32 mb32">
+ <div class="col-3">
+ <strong>Call for Tender Reference:</strong><br/>
+ <span t-field="o.name"/>
+ </div>
+ <div class="col-3">
+ <strong>Scheduled Ordering Date:</strong><br/>
+ <span t-field="o.ordering_date"/>
+ </div>
+ <div class="col-3">
+ <strong>Selection Type:</strong><br/>
+ <span t-esc="o.type_id.name">Multiple Requisitions</span>
+ </div>
+ <div class="col-3">
+ <strong>Source:</strong><br/>
+ <span t-field="o.origin"/>
+ </div>
+ </div>
+
+ <t t-if="o.line_ids">
+ <h3>Products</h3>
+ <table class="table table-sm">
+ <thead>
+ <tr>
+ <th><strong>Description</strong></th>
+ <th class="text-right"><strong>Qty</strong></th>
+ <th class="text-center" groups="uom.group_uom">
+ <strong>Product UoM</strong>
+ </th>
+ <th class="text-right"><strong>Scheduled Date</strong></th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr t-foreach="o.line_ids" t-as="line_ids">
+ <td>
+ [ <span t-field="line_ids.product_id.code"/> ]
+ <span t-field="line_ids.product_id.name"/>
+ </td>
+ <td class="text-right">
+ <span t-field="line_ids.product_qty"/>
+ </td>
+ <t>
+ <td class="text-center" groups="uom.group_uom">
+ <span t-field="line_ids.product_uom_id.category_id.name"/>
+ </td>
+ </t>
+ <td class="text-right">
+ <span t-field="line_ids.schedule_date"/>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </t>
+
+ <t t-if="o.purchase_ids">
+ <h3>Requests for Quotation Details</h3>
+ <table class="table table-sm">
+ <thead>
+ <tr>
+ <th><strong>Vendor </strong></th>
+ <th><strong>Date</strong></th>
+ <th class="text-right"><strong>Reference </strong></th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr t-foreach="o.purchase_ids" t-as="purchase_ids">
+ <td>
+ <span t-field="purchase_ids.partner_id.name"/>
+ </td>
+ <td class="text-center">
+ <span t-field="purchase_ids.date_order"/>
+ </td>
+ <td class="text-right">
+ <span t-field="purchase_ids.name"/>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </t>
+
+ <div class="oe_structure"/>
+ </div>
+ </t>
+ </t>
+ </t>
+</template>
+</data>
+</odoo>