[FIX] purchase_requisition: broken procurement wkf
authorDenis Ledoux <dle@odoo.com>
Tue, 24 Jun 2014 10:12:27 +0000 (12:12 +0200)
committerDenis Ledoux <dle@odoo.com>
Tue, 24 Jun 2014 10:12:27 +0000 (12:12 +0200)
commit7d3453d119a80f484918842682ac5f4299d91e7b
treee4f1a59be8ecaf41e1d0d9d0ccc8948778f70794
parent05a87c9f8d2689a0b367db9d19ed954a7d8bb1e7
[FIX] purchase_requisition: broken procurement wkf

If a purchase requisition is created instead of a purchase order for a procurement order, the method make_po should not return the id of this requisition, as methods calling the make_po method expects ids of purchase orders, not purchase requisition ids.

Besides, on purchase requisition done or cancel, we set the procurement order accordingly, without the use of the workflow. We consider this as crappy, the proper fix should be the use of a dedicated workflow for purchase requisition, but I cannot be done in stable branches. This aims trunk/master.
addons/purchase_requisition/purchase_requisition.py