[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#126561 X-original-commit: 926c6b4aa34c7df46de3121c97742caccbc39be2 Signed-off-by: Arnold Moyaux (arm) <arm@odoo.com> Signed-off-by: Quentin Wolfs (quwo) <quwo@odoo.com>
This commit is contained in:
@@ -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>"
|
||||
|
||||
@@ -4,12 +4,17 @@
|
||||
<template id="report_purchaserequisition_document">
|
||||
<t t-set="o" t-value="o.with_context(lang=o.vendor_id.lang)"/>
|
||||
<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"/>
|
||||
@@ -33,6 +38,7 @@
|
||||
<table class="table table-sm">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><strong>Product</strong></th>
|
||||
<th><strong>Description</strong></th>
|
||||
<th class="text-end"><strong>Qty</strong></th>
|
||||
<th class="text-center" groups="uom.group_uom">
|
||||
@@ -50,6 +56,9 @@
|
||||
</t>
|
||||
<span t-field="line_ids.product_id.name"/>
|
||||
</td>
|
||||
<td>
|
||||
<span t-field="line_ids.product_description_variants"/>
|
||||
</td>
|
||||
<td class="text-end">
|
||||
<span t-field="line_ids.product_qty"/>
|
||||
</td>
|
||||
@@ -75,7 +84,7 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th><strong>Vendor </strong></th>
|
||||
<th><strong>Date</strong></th>
|
||||
<th class="text-end"><strong>Date</strong></th>
|
||||
<th class="text-end"><strong>Reference </strong></th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -84,7 +93,7 @@
|
||||
<td>
|
||||
<span t-field="purchase_ids.partner_id.name"/>
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<td class="text-end">
|
||||
<span t-field="purchase_ids.date_order"/>
|
||||
</td>
|
||||
<td class="text-end">
|
||||
|
||||
Reference in New Issue
Block a user