Index: /main/waeup.ikoba/trunk/src/waeup/ikoba/payments/container.py
===================================================================
--- /main/waeup.ikoba/trunk/src/waeup/ikoba/payments/container.py	(revision 12779)
+++ /main/waeup.ikoba/trunk/src/waeup/ikoba/payments/container.py	(revision 12780)
@@ -20,6 +20,7 @@
 """
 import grok
+from zope.schema import getFields
 from waeup.ikoba.interfaces import IIkobaPluggable
-from waeup.ikoba.payments.interfaces import IPaymentsContainer
+from waeup.ikoba.payments.interfaces import IPaymentsContainer, IPayment
 from waeup.ikoba.utils.helpers import attrs_to_fields
 from waeup.ikoba.utils.logger import Logger
@@ -50,5 +51,6 @@
 
 class PaymentsPlugin(grok.GlobalUtility):
-    """A plugin that creates container for payments inside a company.
+    """A plugin that creates container for payments inside a company
+    and updates payment objects.
     """
     grok.implements(IIkobaPluggable)
@@ -66,2 +68,10 @@
         if not 'payments' in site.keys():
             self.setup(site, name, logger)
+        for payment in site['payments'].values():
+            # Add payment_items
+            if not hasattr(payment,'payment_items'):
+              payment.payment_items = ()
+              logger.info(
+                  'PaymentsPlugin: %s attribute %s added.' % (
+                  payment.payment_id,'payment_items'))
+        return
