[IMP] account: warn when invoice date is future

Before this task,
There was no warning message when invoice date is set in
future.

task-2053068

closes odoo/odoo#35796

Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
This commit is contained in:
Sapan Zaveri
2019-08-19 06:57:29 +00:00
parent 51354fadb0
commit fe59754c52
+1 -1
View File
@@ -599,7 +599,7 @@
<label for="invoice_date" string="Bill Date" style="font-weight:bold;"
attrs="{'invisible': [('type', 'not in', ('in_invoice', 'in_refund', 'in_receipt'))]}"/>
</div>
<field name="invoice_date" nolabel="1"
<field name="invoice_date" nolabel="1" options="{'datepicker': {'warn_future': true}}"
attrs="{'invisible': [('type', 'not in', ('out_invoice', 'out_refund', 'in_invoice', 'in_refund', 'out_receipt', 'in_receipt'))]}"/>
<field name="currency_id"