c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #24560
[Bug 784009] Re: wrong field 'date_planned' in stock.move.action_done()
Hello,
I have checked your issue in latest stable and trunk both but I don't
see the date_planned in write method.
In trunk and stable I have seen that self.write(cr, uid, move_ids,
{'state': 'done', 'date': time.strftime('%Y-%m-%d %H:%M:%S')},
context=context) So I think it already has been fixed in past revision.
Trunk addons- rev no: 4701
Stable addons -rev no-4589
So would you please update your code.
Thanks.
** Changed in: openobject-addons
Status: New => Fix Released
--
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):
Fix Released
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)
References