[FIX] website_quote: accept button wasn't shown if no expiration date was set on the sale order
This commit is contained in:
parent
88260a3f2c
commit
0d591ca6df
|
@ -54,7 +54,7 @@ class sale_quote(http.Controller):
|
|||
'message': message and int(message) or False,
|
||||
'option': bool(filter(lambda x: not x.line_id, order.options)),
|
||||
'order_valid': (not order.validity_date) or (now <= order.validity_date),
|
||||
'days_valid': max(days, 0)
|
||||
'days_valid': days,
|
||||
}
|
||||
return request.website.render('website_quote.so_quotation', values)
|
||||
|
||||
|
|
|
@ -156,9 +156,9 @@
|
|||
|
||||
<template id="quotation_toolbar">
|
||||
<div class="text-center hidden-print" t-if="quotation.state in ('draft', 'sent', 'waiting_date')">
|
||||
<a class="btn btn-success fa fa-check" data-toggle="modal" data-target="#modelaccept"
|
||||
t-if="days_valid">
|
||||
Accept
|
||||
<a class="btn btn-success" data-toggle="modal" data-target="#modalaccept"
|
||||
t-if="days_valid >= 0">
|
||||
<i class="fa fa-check"></i> Accept
|
||||
</a>
|
||||
<a class="btn btn-info fa fa-comment" type="submit" href="#discussion">
|
||||
Feedback
|
||||
|
|
Loading…
Reference in New Issue