[FIX] Case sections were not able to take parent sections
authorJay (Open ERP) <jvo@tinyerp.com>
Wed, 11 Feb 2009 09:35:48 +0000 (15:05 +0530)
committerJay (Open ERP) <jvo@tinyerp.com>
Wed, 11 Feb 2009 09:35:48 +0000 (15:05 +0530)
bzr revid: jvo@tinyerp.com-20090211093548-499hgwso566xtuo3

addons/crm/crm.py
addons/crm/crm_view.xml

index 4364965..f634475 100644 (file)
@@ -80,7 +80,7 @@ class crm_case_section(osv.osv):
             level -= 1
         return True
     _constraints = [
-        (_check_recursion, 'Error ! You can not create recursive sections.', ['parent_id'])
+        (_check_recursion, 'Error ! You cannot create recursive sections.', ['parent_id'])
     ]
 
     # Mainly used by the wizard
index feb9fd7..1036826 100644 (file)
@@ -34,7 +34,7 @@
                             <field name="sequence"/>
                             <field name="active" select="2"/>
                             <field name="user_id" select="2"/>
-                            <field name="parent_id" select="2" domain="[('id', '!=', active_id)]"/>
+                            <field name="parent_id" select="2"/>
                             <field name="reply_to" select="2"/>
                             <label colspan="2" string="Complete this if you use the mail gateway."/>
                         </page>