[open-ils-commits] r9689 -
branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/controllers/acq
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu May 22 23:55:22 EDT 2008
Author: erickson
Date: 2008-05-22 23:55:20 -0400 (Thu, 22 May 2008)
New Revision: 9689
Modified:
branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/controllers/acq/po.py
Log:
on order record import, put po and lineitems into in-process state
Modified: branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/controllers/acq/po.py
===================================================================
--- branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/controllers/acq/po.py 2008-05-23 03:54:50 UTC (rev 9688)
+++ branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/controllers/acq/po.py 2008-05-23 03:55:20 UTC (rev 9689)
@@ -142,6 +142,7 @@
# first, create the PO
po = osrf.net_obj.NetworkObject.acqpo()
po.provider(provider_id)
+ po.state('in-process')
po_id = ClientSession.atomic_request(
'open-ils.acq',
'open-ils.acq.purchase_order.create', authtoken, po)
@@ -161,6 +162,7 @@
lineitem.provider(provider_id)
lineitem.purchase_order(po_id)
lineitem.source_label(provider.code()) # XXX where should this really come from?
+ lineitem.state('in-process')
stat = ClientSession.atomic_request(
'open-ils.acq',
More information about the open-ils-commits
mailing list