[FIX] Project_scrum/Purchase_requisition : Corrected _defaults for date/datetime values
bzr revid: jvo@tinyerp.com-20110601211919-v23j6jazo09q5mxk
This commit is contained in:
@@ -290,7 +290,7 @@ class project_scrum_meeting(osv.osv):
|
||||
# TODO: Find the right sprint thanks to users and date
|
||||
#
|
||||
_defaults = {
|
||||
'date' : time.strftime('%Y-%m-%d'),
|
||||
'date' : lambda *a: time.strftime('%Y-%m-%d'),
|
||||
}
|
||||
|
||||
def button_send_to_master(self, cr, uid, ids, context=None):
|
||||
|
||||
@@ -44,7 +44,7 @@ class purchase_requisition(osv.osv):
|
||||
'state': fields.selection([('draft','Draft'),('in_progress','In Progress'),('cancel','Cancelled'),('done','Done')], 'State', required=True)
|
||||
}
|
||||
_defaults = {
|
||||
'date_start': time.strftime('%Y-%m-%d %H:%M:%S'),
|
||||
'date_start': lambda *a: time.strftime('%Y-%m-%d %H:%M:%S'),
|
||||
'state': 'draft',
|
||||
'exclusive': 'multiple',
|
||||
'company_id': lambda self, cr, uid, c: self.pool.get('res.company')._company_default_get(cr, uid, 'purchase.requisition', context=c),
|
||||
|
||||
Reference in New Issue
Block a user