[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:
@@ -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">&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>
|
||||
|
||||
Reference in New Issue
Block a user