[FIX] purchase_requistion: adapt report to agreement

In case of purchase agreement, call for tender still appears everywhere
and it's confusing for the user in case of purchase agreement. It would
be better to create another action to have a correct pdf name and report
name but it will be modify in master and we could keep a minimal diff
here.

Also the conditions where not present, so the report could be hard to
communicate to a supplier. Same for the agreement deadline

closes odoo/odoo#88164

X-original-commit: c3b9de36e40c24d0bb521ec0f161d4415b1d86ff
Signed-off-by: Steve Van Essche <svs@odoo.com>
Signed-off-by: Arnold Moyaux <arm@odoo.com>
This commit is contained in:
Arnold Moyaux
2022-04-07 13:24:07 +02:00
parent ac3c857a57
commit 658391f8c9
@@ -8,11 +8,11 @@
<div class="page">
<div class="oe_structure"/>
<h2>Call for Tenders <span t-field="o.name"/></h2>
<h2><span t-out="o.type_id.name"/> <span t-field="o.name"/></h2>
<div class="row mt32 mb32">
<div class="col-3">
<strong>Call for Tender Reference:</strong><br/>
<strong><span t-out="o.type_id.name"/> Reference:</strong><br/>
<span t-field="o.name"/>
</div>
<div class="col-3">
@@ -20,8 +20,8 @@
<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>
<strong>Agreement Deadline:</strong><br/>
<span t-field="o.date_end"/>
</div>
<div class="col-3">
<strong>Source:</strong><br/>
@@ -39,6 +39,7 @@
<th class="text-center" groups="uom.group_uom">
<strong>Product UoM</strong>
</th>
<th t-if="o.type_id == env.ref('purchase_requisition.type_single')">Price Unit</th>
<th class="text-right"><strong>Scheduled Date</strong></th>
</tr>
</thead>
@@ -53,9 +54,12 @@
</td>
<t>
<td class="text-center" groups="uom.group_uom">
<span t-field="line_ids.product_uom_id.category_id.name"/>
<span t-field="line_ids.product_uom_id.name"/>
</td>
</t>
<td t-if="o.type_id == env.ref('purchase_requisition.type_single')">
<span t-field="line_ids.price_unit" t-options='{"widget": "monetary", "display_currency": o.company_id.currency_id}'/>
</td>
<td class="text-right">
<span t-field="line_ids.schedule_date"/>
</td>
@@ -90,6 +94,8 @@
</table>
</t>
<div t-if="o.description" t-out="o.description"/>
<div class="oe_structure"/>
</div>
</t>