← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 784009] [NEW] wrong field 'date_planned' in stock.move.action_done()

 

Public bug reported:

the method stock.move.action_done() is called when we validate a movement.
In this method, there is a line (file addons/stock/stock.py 2141, version 6.0.2) :
self.write(cr, uid, move_ids, {'state':'done', 'date_planned':time.strftime('%Y-%m-%d %H:%M:%S')}, context=context)
but stock.move has no field 'date_planned' !
So it should be :
self.write(cr, uid, move_ids, {'state':'done', 'date':time.strftime('%Y-%m-%d %H:%M:%S')}, context=context)

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/784009

Title:
  wrong field 'date_planned' in stock.move.action_done()

Status in OpenERP Modules (addons):
  New

Bug description:
  the method stock.move.action_done() is called when we validate a movement.
  In this method, there is a line (file addons/stock/stock.py 2141, version 6.0.2) :
  self.write(cr, uid, move_ids, {'state':'done', 'date_planned':time.strftime('%Y-%m-%d %H:%M:%S')}, context=context)
  but stock.move has no field 'date_planned' !
  So it should be :
  self.write(cr, uid, move_ids, {'state':'done', 'date':time.strftime('%Y-%m-%d %H:%M:%S')}, context=context)


Follow ups

References