[open-ils-commits] r15734 - trunk/Open-ILS/examples (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Mar 8 13:57:51 EST 2010
Author: erickson
Date: 2010-03-08 13:57:47 -0500 (Mon, 08 Mar 2010)
New Revision: 15734
Modified:
trunk/Open-ILS/examples/fm_IDL.xml
Log:
added pcrud entries for po notes
Modified: trunk/Open-ILS/examples/fm_IDL.xml
===================================================================
--- trunk/Open-ILS/examples/fm_IDL.xml 2010-03-08 15:53:07 UTC (rev 15733)
+++ trunk/Open-ILS/examples/fm_IDL.xml 2010-03-08 18:57:47 UTC (rev 15734)
@@ -5180,7 +5180,7 @@
</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" reporter:label="PO Note">
+ <class id="acqpon" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::po_note" oils_persist:tablename="acq.po_note" reporter:label="PO Note">
<fields oils_persist:primary="id" oils_persist:sequence="acq.po_note_id_seq">
<field reporter:label="PO Note ID" name="id" reporter:datatype="id" />
<field reporter:label="Purchase Order" name="purchase_order" reporter:datatype="link" />
@@ -5195,6 +5195,20 @@
<link field="editor" reltype="has_a" key="id" map="" class="au"/>
<link field="purchase_order" reltype="has_a" key="id" map="" class="acqpo"/>
</links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <retrieve permission="CREATE_PURCHASE_ORDER VIEW_PURCHASE_ORDER">
+ <context link="purchase_order" field="ordering_agency"/>
+ </retrieve>
+ <create permission="CREATE_PURCHASE_ORDER">
+ <context link="purchase_order" field="ordering_agency"/>
+ </create>
+ <update permission="CREATE_PURCHASE_ORDER">
+ <context link="purchase_order" field="ordering_agency"/>
+ </update>
+ <delete permission="CREATE_PURCHASE_ORDER">
+ <context link="purchase_order" field="ordering_agency"/>
+ </delete>
+ </permacrud>
</class>
<class id="jub" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::lineitem" oils_persist:tablename="acq.lineitem" reporter:label="Line Item">
More information about the open-ils-commits
mailing list