Skip to content

Commit

Permalink
Category history
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-moxter committed Jul 12, 2024
1 parent 83af94a commit 0da264f
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/main/efaps/DataModels/POS_Category.xml
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,13 @@
<trigger program="org.efaps.esjp.common.trigger.PreDeleteTrigger"
method="deleteConnections"
name="POS_Category.DELETE_PRE" event="DELETE_PRE">


<property name="Type">370448f7-6936-452f-85cb-3651ef5445e8</property>
<property name="LinkFrom">FromLink</property>
</trigger>
<trigger program="org.efaps.esjp.common.history.UpdateHistoryTrigger"
name="POS_Category.UPDATE_POST"
event="UPDATE_POST">
</trigger>
<store name="ERP_DocumentVFSStore"/>
</definition>
</datamodel-type>
14 changes: 14 additions & 0 deletions src/main/efaps/DataModels/POS_Category2Product.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,19 @@
<sqltable>POS_Object2ObjectSQLTable</sqltable>
<sqlcolumn>INT1</sqlcolumn>
</attribute>
<trigger program="org.efaps.esjp.common.history.ConnectHistoryTrigger"
name="POS_Category2Product.INSERT_POST"
event="INSERT_POST">
<property name="Select4HistoryInstance">linkto[FromLink].instance</property>
<property name="Select4ConnectInstance">linkto[ToLink].instance</property>
<property name="Select4ConnectAttribute">linkto[ToLink].attribute[Name]</property>
</trigger>
<trigger program="org.efaps.esjp.common.history.DisconnectHistoryTrigger"
name="POS_Category2Product.DELETE_PRE"
event="DELETE_PRE">
<property name="Select4HistoryInstance">linkto[FromLink].instance</property>
<property name="Select4ConnectInstance">linkto[ToLink].instance</property>
<property name="Select4ConnectAttribute">linkto[ToLink].attribute[Name]</property>
</trigger>
</definition>
</datamodel-type>
3 changes: 1 addition & 2 deletions src/main/efaps/UserInterface/Category/POS_CategoryForm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
<property name="Label">POS_CategoryForm.image.Label</property>
<property name="ModeEdit">NONE</property>
<property name="UIType">SNIPPLET</property>
<property name="ValueType">IMAGE</property>
<trigger event="UI_FIELD_VALUE" method="getViewFieldValueUI"
name="POS_CategoryForm.image.UI_FIELD_VALUE"
program="org.efaps.esjp.common.file.ImageField">
Expand All @@ -58,8 +59,6 @@
</trigger>
<trigger program="org.efaps.esjp.admin.access.AccessCheck4UI" method="configCheck"
name="POS_CategoryForm.image.UI_ACCESSCHECK" event="UI_ACCESSCHECK">


<property name="SystemConfig">b038bf69-b588-431d-8c02-f53d4aac46c9</property>
<property name="Attribute">org.efaps.pos.Category.ActivateImage</property>
</trigger>
Expand Down
2 changes: 2 additions & 0 deletions src/main/efaps/UserInterface/Category/POS_CategoryTree.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
<childs>
<child>POS_CategoryTree_Product</child>
<child>POS_CategoryTree_Category</child>
<child>Common_History_ObjectTree_StatusLog</child>
<child>Common_History_ObjectTree_HistoryLog</child>
</childs>
<property name="Target">content</property>
<property name="TargetMode">view</property>
Expand Down

0 comments on commit 0da264f

Please sign in to comment.