[open-ils-commits] r12950 - trunk/Open-ILS/examples (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Apr 21 16:22:33 EDT 2009
Author: erickson
Date: 2009-04-21 16:22:28 -0400 (Tue, 21 Apr 2009)
New Revision: 12950
Modified:
trunk/Open-ILS/examples/fm_IDL.xml
Log:
permacrud entries for purchase order
Modified: trunk/Open-ILS/examples/fm_IDL.xml
===================================================================
--- trunk/Open-ILS/examples/fm_IDL.xml 2009-04-21 19:37:53 UTC (rev 12949)
+++ trunk/Open-ILS/examples/fm_IDL.xml 2009-04-21 20:22:28 UTC (rev 12950)
@@ -4670,7 +4670,7 @@
</links>
</class>
- <class id="acqpo" controller="open-ils.cstore open-ils.reporter-store" oils_obj:fieldmapper="acq::purchase_order" oils_persist:tablename="acq.purchase_order">
+ <class id="acqpo" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::purchase_order" oils_persist:tablename="acq.purchase_order">
<fields oils_persist:primary="id" oils_persist:sequence="acq.purchase_order_id_seq">
<field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
<field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
@@ -4698,6 +4698,14 @@
<link field="lineitems" reltype="has_many" key="purchase_order" map="" class="jub"/>
<link field="ordering_agency" reltype="has_a" key="id" map="" class="aou"/>
</links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_PURCHASE_ORDER" context_field="ordering_agency"/>
+ <retrieve permission="CREATE_PURCHASE_ORDER VIEW_PURCHASE_ORDER" context_field="ordering_agency"/>
+ <update permission="CREATE_PURCHASE_ORDER" context_field="ordering_agency"/>
+ <delete permission="CREATE_PURCHASE_ORDER" context_field="ordering_agency"/>
+ </actions>
+ </permacrud>
</class>
<class id="acqpon" controller="open-ils.cstore open-ils.reporter-store" oils_obj:fieldmapper="acq::po_note" oils_persist:tablename="acq.po_note">
More information about the open-ils-commits
mailing list