[FIX] mrp: fix partner ref and so number in mrp report

These fields are no longer in the model `._columns`
since their migration to the new API.

Courtesy of Daniel Dico
https://github.com/ddico

opw-688768
This commit is contained in:
Denis Ledoux
2016-09-21 13:23:49 +02:00
parent 5c5d0865b9
commit 5b4c1d405d
+4 -4
View File
@@ -35,13 +35,13 @@
<strong>Printing date:</strong><br/>
<span t-esc="time.strftime('%Y-%m-%d')"/>
</div>
<div class="col-xs-3" t-if="'sale_ref' in o._columns.keys()">
<div class="col-xs-3" t-if="'sale_ref' in o._fields.keys()">
<strong>Partner Ref:</strong><br/>
<span t-esc="'sale_ref' in o._columns.keys() and o.sale_ref"/>
<span t-esc="'sale_ref' in o._fields.keys() and o.sale_ref"/>
</div>
<div class="col-xs-3" t-if="'sale_name' in o._columns.keys()">
<div class="col-xs-3" t-if="'sale_name' in o._fields.keys()">
<strong>SO Number:</strong><br/>
<span t-esc="'sale_name' in o._columns.keys() and o.sale_name"/>
<span t-esc="'sale_name' in o._fields.keys() and o.sale_name"/>
</div>
</div>