Skip to content
Snippets Groups Projects
Commit ee92e8c8 authored by clesgow's avatar clesgow
Browse files

[FIX] purchase_requisition: Add missing data on report


On the Blanket Order PDF (as well as other purchase agreements), the
vendor isn't specified on the report while it is a required and
significative field on the purchase agreement.
Added it like in the purchase order PDF.

Also added in the Custom Description field into the PDF as it may
contain useful information as well.

Task-3358385

closes odoo/odoo#125014

Signed-off-by: default avatarArnold Moyaux (arm) <arm@odoo.com>
parent ab121290
No related branches found
No related tags found
No related merge requests found
......@@ -35,6 +35,11 @@ msgstr ""
msgid "<strong>Description</strong>"
msgstr ""
#. module: purchase_requisition
#: model_terms:ir.ui.view,arch_db:purchase_requisition.report_purchaserequisitions
msgid "<strong>Product</strong>"
msgstr ""
#. module: purchase_requisition
#: model_terms:ir.ui.view,arch_db:purchase_requisition.report_purchaserequisitions
msgid "<strong>Product UoM</strong>"
......
......@@ -5,12 +5,17 @@
<t t-call="web.html_container">
<t t-foreach="docs" t-as="o">
<t t-call="web.external_layout">
<t t-set="address">
<div t-field="o.vendor_id"
t-options='{"widget": "contact", "fields": ["address", "name", "phone"], "no_marker": True, "phone_icons": True}'/>
<p t-if="o.vendor_id.vat"><t t-esc="o.company_id.account_fiscal_country_id.vat_label or 'Tax ID'"/>: <span t-field="o.vendor_id.vat"/></p>
</t>
<div class="page">
<div class="oe_structure"/>
<h2><span t-out="o.type_id.name"/> <span t-field="o.name"/></h2>
<div class="row mt32 mb32">
<div class="row my-2">
<div class="col-3">
<strong><span t-out="o.type_id.name"/> Reference:</strong><br/>
<span t-field="o.name"/>
......@@ -34,6 +39,7 @@
<table class="table table-sm">
<thead>
<tr>
<th><strong>Product</strong></th>
<th><strong>Description</strong></th>
<th class="text-right"><strong>Qty</strong></th>
<th class="text-center" groups="uom.group_uom">
......@@ -51,6 +57,9 @@
</t>
<span t-field="line_ids.product_id.name"/>
</td>
<td>
<span t-field="line_ids.product_description_variants"/>
</td>
<td class="text-right">
<span t-field="line_ids.product_qty"/>
</td>
......@@ -76,7 +85,7 @@
<thead>
<tr>
<th><strong>Vendor </strong></th>
<th><strong>Date</strong></th>
<th class="text-right"><strong>Date</strong></th>
<th class="text-right"><strong>Reference </strong></th>
</tr>
</thead>
......@@ -85,7 +94,7 @@
<td>
<span t-field="purchase_ids.partner_id.name"/>
</td>
<td class="text-center">
<td class="text-right">
<span t-field="purchase_ids.date_order"/>
</td>
<td class="text-right">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment