LinkedRecords: bidi Verhalten den docs angepasst und direction Parameter optional...
[kivitendo-erp.git] / SL / DB / OrderItem.pm
index 67bffd8..e75c78f 100644 (file)
@@ -10,15 +10,10 @@ use SL::DB::Helper::CustomVariables (
   sub_module  => 'orderitems',
   cvars_alias => 1,
   overloads   => {
-    parts_id => 'SL::DB::Part',
-  },
-);
-
-__PACKAGE__->meta->add_relationship(
-  unit_obj       => {
-    type         => 'many to one',
-    class        => 'SL::DB::Unit',
-    column_map   => { unit => 'name' },
+    parts_id => {
+      class => 'SL::DB::Part',
+      module => 'IC',
+    }
   },
 );