[IMP] point_of_sale: improve the view and set the indent
[odoo/odoo.git] / addons / point_of_sale / wizard / pos_details.py
index 8316d3a..d51b30b 100644 (file)
@@ -33,7 +33,10 @@ class pos_details(osv.osv_memory):
         'date_start': fields.date('Date Start',required=True),
         'date_end': fields.date('Date End',required=True)
     }
-    
+    _defaults = {
+                 'date_start': lambda *a: time.strftime('%Y-%m-%d'),
+                'date_end': lambda *a: time.strftime('%Y-%m-%d'),
+                }
     def print_report(self, cr, uid, ids, context={}):
         """ 
          To get the date and print the report