[POS-commit] r7088 - stoqlib/trunk/data/sql

george at async.com.br george at async.com.br
Fri Aug 3 17:50:12 BRT 2007


Author: george
Date: Fri Aug  3 17:50:11 2007
New Revision: 7088

Added:
   stoqlib/trunk/data/sql/patch-25.py

Log:
#2300: Implementar esqueleto inicial da aplicação de inventário.
       r=jdahlin


Added: stoqlib/trunk/data/sql/patch-25.py
==============================================================================
--- (empty file)
+++ stoqlib/trunk/data/sql/patch-25.py	Fri Aug  3 17:50:11 2007
@@ -0,0 +1,12 @@
+#2300: Implementar esqueleto inicial da aplicação de inventário.
+# copy warehouse's profile to the inventory app
+from stoqlib.domain.profile import ProfileSettings
+
+def apply_patch(trans):
+    profiles = ProfileSettings.selectBy(app_dir_name='warehouse',
+                                        connection=trans)
+    for profile in profiles:
+        ProfileSettings(app_dir_name='inventory',
+                       has_permission=profile.has_permission,
+                       user_profile=profile.user_profile,
+                       connection=trans)


More information about the POS-commit mailing list