← Back to team overview

c2c-oerpscenario team mailing list archive

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

 

Hello Alberto,

I have checked this with the latest trunk code and did not face any error in PO Requisition.
Would you please check again with the latest trunk code.
You can reopen this with proper steps if you will face similar problem again.

Thanks.

** 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