← Back to team overview

c2c-oerpscenario team mailing list archive

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

 

** Patch added: "Proposed patch for getting the correct date"
   https://bugs.launchpad.net/openobject-addons/+bug/677064/+attachment/1737299/+files/purchase_requisition.patch

-- 
[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,





References