[FIX] sale: missing field in quotation report

Before this commit, the field validity_date was missing from the
default quotation report. Historically this field was added in
module website_quote but it was then moved to sale in
77bd5181f7

The modification on the quotation report related to validity_date
were missed at that time.

This commit adds validity_date to the default quotation report.
This commit is contained in:
Rémi Rahir
2018-04-12 15:04:47 +02:00
parent 7242544506
commit fe7b9ab709
2 changed files with 4 additions and 6 deletions
@@ -60,6 +60,10 @@
<strong>Payment Terms:</strong>
<p t-field="doc.payment_term_id"/>
</div>
<div t-if="doc.validity_date and doc.state in ['draft', 'sent']" class="col-xs-3">
<strong>Expiration Date:</strong>
<p t-field="doc.validity_date"/>
</div>
</div>
<!-- Is there a discount on at least one line? -->
@@ -1,12 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="report_saleorder_validity_date" inherit_id="sale.report_saleorder_document">
<xpath expr="//div[hasclass('page')]/div[@id='informations']" position="inside">
<div t-if="doc.validity_date and doc.state in ['draft', 'sent']" class="col-xs-3">
<strong>Expiration Date:</strong>
<p t-field="doc.validity_date"/>
</div>
</xpath>
<xpath expr="//div[hasclass('page')]/p[@id='fiscal_position_remark']" position="after">
<div t-if="doc.options and doc.state in ['draft', 'sent']" style="page-break-before:always;">
<h2>