c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #04800
[Bug 677064] [NEW] [6.0RC1][purchase_requisition] Error requesting a quotation
Public bug reported:
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,
** Affects: openobject-addons
Importance: Undecided
Status: New
--
[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: New
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,
Follow ups
References