summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSapan Zaveri <sza@odoo.com>2019-08-19 06:57:09 +0000
committerSapan Zaveri <sza@odoo.com>2019-08-19 06:57:29 +0000
commitfe59754c5201f9392b75d5d4cce8ca1400a7ef5d (patch)
treedc847974d62938e40a5a5a8fb4401b15082449b8
parent51354fadb0a1bf5fa797c2539e703cf97d768691 (diff)
[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>
-rw-r--r--addons/account/views/account_move_views.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/account/views/account_move_views.xml b/addons/account/views/account_move_views.xml
index 82db41f5ffd..6d6f5fe2c9a 100644
--- a/addons/account/views/account_move_views.xml
+++ b/addons/account/views/account_move_views.xml
@@ -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"