Web Past Date Widget
Web Past Date Widget
Geminate comes with a nice features to create widget for date / datetime fields to disable selection of past dates (from yesterday onwards). You can easily disable selection of past dates by applying this widget in all the date / datetime fields regardless of particular database object. It is very quick to show the effect without any long loading time.
Exciting Features
Note: Extensively Tested on Odoo Vanilla with Ubuntu OS
Screenshots
1.Disable selection in date fields.Go to Sales -> Orders -> Quotations.
Syntax:
-----------------------
<field name="validity_date" widget="disable_past_date" attrs="{'invisible': [('state', 'in', ['sale', 'done'])]}" >
Screenshot:
-----------------------
Go to Purchase -> Orders -> RFQ.
Syntax:
-----------------------
<field name="date_order" widget="disable_past_datetime" attrs="{'invisible': [('state', '=', 'purchase')]}" >
Screenshot:
-----------------------