c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #04935
[Bug 677064] Re: [6.0RC1][purchase_requisition] Error requesting a quotation
*** This bug is a duplicate of bug 663662 ***
https://bugs.launchpad.net/bugs/663662
Hello Alberto,
I Have check with the latest code and i have got the following traceback
and also duplicating this to related confirmed assign bug.
Environment Information :
System : Linux-2.6.32-21-generic-i686-with-Ubuntu-10.04-lucid
OS Name : posix
Distributor ID: Ubuntu
Description: Ubuntu 10.04.1 LTS
Release: 10.04
Codename: lucid
Operating System Release : 2.6.32-21-generic
Operating System Version : #32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2010
Operating System Architecture : 32bit
Operating System Locale : en_IN.ISO8859-1
Python Version : 2.6.5
OpenERP-Client Version : 6.0.0-rc1-1
Last revision No. & ID :1693 tfr@xxxxxxxxxxx-20101117074930-7hi1np3oyksp6qel
Traceback (most recent call last):
File "/home/vra/workspace/trunk/server/bin/netsvc.py", line 489, in dispatch
result = ExportService.getService(service_name).dispatch(method, auth, params)
File "/home/vra/workspace/trunk/server/bin/service/web_services.py", line 586, in dispatch
res = fn(db, uid, *params)
File "/home/vra/workspace/trunk/addons/audittrail/audittrail.py", line 504, in execute
res = my_fct(db, uid, model, method, *args)
File "/home/vra/workspace/trunk/addons/audittrail/audittrail.py", line 488, in my_fct
return fct_src(db, uid, model, method, *args)
File "/home/vra/workspace/trunk/server/bin/osv/osv.py", line 57, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/vra/workspace/trunk/server/bin/osv/osv.py", line 140, in execute
res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/vra/workspace/trunk/server/bin/osv/osv.py", line 130, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/vra/workspace/trunk/addons/purchase_requisition/wizard/purchase_requisition_partner.py", line 102, in create_order
purchase_order_line= {
AttributeError: 'datetime.timedelta' object has no attribute 'datetime'
Thanks.
** Changed in: openobject-addons
Status: Invalid => Confirmed
** This bug has been marked a duplicate of bug 663662
[6.0rc1] bug in 'request a quotation' from PR
* You can subscribe to bug 663662 by following this link: https://bugs.launchpad.net/openobject-addons/+bug/663662/+subscribe
--
[6.0RC1][purchase_requisition] Error requesting a quotation
https://bugs.launchpad.net/bugs/677064
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
Status in OpenObject Addons Modules: Confirmed
Bug description:
Hi all,
Using 6.0RC1 when I try to request a quotation for an existing 'purchase requisition' (having installed 'purchase_requisition' module), I always got following error: "datetime.timedelta does not have attribute 'strftime' because in wizard/purchase_requisition_partner.py there was an incorrect operation with 'newdate', specifically in line 90:
newdate = newdate -(delay and relativedelta(days=delay) or datetime.strptime(tender.date_start, '%Y-%m-%d %H:%M:%S') )
This line converted newdate from 'datetime.datetime' object into a 'datetime.timedelta' one.
I attach a patch.
Regards,
References