[FIX] website_quote: message if SO not confirmed

Commit 486cd3309 was not correctly forward ported. We also add a
specific message if the quotation is in state 'draft'.

Fixes #9226
This commit is contained in:
Nicolas Martinelli
2015-12-09 11:35:14 +01:00
parent ad14862907
commit afa28f075a
2 changed files with 6 additions and 4 deletions
@@ -102,8 +102,9 @@ if(!$('.o_website_quote').length) {
'signer': signer_name,
'sign': signature?JSON.stringify(signature[1]):false,
}).then(function (data) {
var message_id = (data) ? 3 : 4;
self.$el.modal('hide');
window.location.href = '/quote/'+order_id.toString()+'/'+token+'?message=3';
window.location.href = '/quote/'+order_id.toString()+'/'+token+'?message='+message_id;
});
return false;
}
@@ -227,9 +227,10 @@
</div>
<div class="alert alert-warning alert-dismissable" t-if="message==4 and quotation.state != 'sent'">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&amp;times;</button>
This order has already been
<t t-if="quotation.state=='cancel'">cancelled</t>
<t t-if="quotation.state not in ('cancel','draft')">validated</t>
This order
<t t-if="quotation.state=='draft'">has not yet been sent</t>
<t t-if="quotation.state=='cancel'">has already been cancelled</t>
<t t-if="quotation.state not in ('cancel','draft')">has already been validated</t>
! You can <a href="#discussion">contact us</a> for
any question.
</div>