[FIX] purchase: RFQ vs PO

Set the appropriate label in the portal depending on the PO state.

opw-1915230

closes odoo/odoo#29477
This commit is contained in:
Nicolas Martinelli
2018-12-13 08:38:36 +00:00
parent 15bcae2dc0
commit fe2dd27dea
2 changed files with 7 additions and 1 deletions
+1
View File
@@ -1485,6 +1485,7 @@ msgstr ""
#. module: purchase
#: code:addons/purchase/models/purchase.py:276
#: model:ir.actions.report,name:purchase.report_purchase_quotation
#: model_terms:ir.ui.view,arch_db:purchase.portal_my_purchase_order
#: model_terms:ir.ui.view,arch_db:purchase.report_purchasequotation_document
#, python-format
msgid "Request for Quotation"
+6 -1
View File
@@ -68,7 +68,12 @@
<div class="row">
<div class="col-lg-12">
<h4>
Purchase Order
<t t-if="order.state in ['draft', 'sent']">
Request for Quotation
</t>
<t t-else="1">
Purchase Order
</t>
<span t-esc="order.name"/>
</h4>
</div>