Mayur Maheshwari(OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-bug-902439-mma into
lp:openobject-addons.
Requested reviews:
Rucha (Open ERP) (rpa-openerp)
Related bugs:
Bug #902439 in OpenERP Addons: "wrong date format, wrong time"
https://bugs.launchpad.net/openobject-addons/+bug/902439
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-902439-mma/+merge/85460
Hello,
purchase,sale: I Have set a date time on date_order field
Thanks.
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-902439-mma/+merge/85460
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-902439-mma.
=== modified file 'purchase/purchase.py'
--- purchase/purchase.py 2011-12-01 21:32:12 +0000
+++ purchase/purchase.py 2011-12-13 10:52:27 +0000
@@ -216,7 +216,7 @@
'company_id': fields.many2one('res.company','Company',required=True,select=1),
}
_defaults = {
- 'date_order': lambda *a: time.strftime('%Y-%m-%d'),
+ 'date_order': lambda *a: time.strftime('%Y-%m-%d %H:%M:%S'),
'state': 'draft',
'name': lambda obj, cr, uid, context: obj.pool.get('ir.sequence').get(cr, uid, 'purchase.order'),
'shipped': 0,
=== modified file 'sale/sale.py'
--- sale/sale.py 2011-12-11 11:09:56 +0000
+++ sale/sale.py 2011-12-13 10:52:27 +0000
@@ -269,7 +269,7 @@
}
_defaults = {
'picking_policy': 'direct',
- 'date_order': lambda *a: time.strftime(DEFAULT_SERVER_DATE_FORMAT),
+ 'date_order': lambda *a: time.strftime('%Y-%m-%d %H:%M:%S'),
'order_policy': 'manual',
'state': 'draft',
'user_id': lambda obj, cr, uid, context: uid,
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp