← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 677064] Re: [6.0RC1][purchase_requisition] Error requesting a quotation

 

Hi vra, maybe I did some mistake in previous update, but I generated another PO from a PR with another fresh suppliers and I didn't get this error no more (¿?). So, I close this bug (again).
Thanks a lot for your effort.
Regards,

** Changed in: openobject-addons
       Status: New => Invalid

-- 
[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: Invalid

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