Vaibhav (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-process-6.1changes-vda into 
lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-process-6.1changes-vda/+merge/76334


Process view returns None resource sometimes.
trunk web-client 6.1 raise an error:
`Server <type 'exceptions.TypeError'>:cannot marshal None unless allow_none is 
enabled`
if None found in result.
also raise an error when found int key in dictionary
`Server <type 'exceptions.TypeError'>:dictionary key must be string`


-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-process-6.1changes-vda/+merge/76334
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-process-6.1changes-vda.
=== modified file 'process/process.py'
--- process/process.py	2011-01-14 00:11:01 +0000
+++ process/process.py	2011-09-21 06:13:30 +0000
@@ -84,12 +84,12 @@
         process = pool.get('process.process').browse(cr, uid, id, context=context)
 
         name = process.name
-        resource = None
+        resource = False
         state = 'N/A'
 
         expr_context = {}
         states = {}
-        perm = None
+        perm = False
 
         if res_model:
             states = dict(pool.get(res_model).fields_get(cr, uid, context=context).get('state', {}).get('selection', {}))
@@ -242,7 +242,12 @@
         for k, v in nodes.items():
             y = v['y']
             v['y'] = min(y - miny + 10, y)
-
+        for k,v in nodes.items():
+            k = str(k)
+        for t,i in transitions.items():
+            t = str(t)
+        nodes = dict([str(n_key), n_val] for n_key, n_val in nodes.iteritems())
+        transitions = dict([str(t_key), t_val] for t_key, t_val in transitions.iteritems())
         return dict(name=name, resource=resource, state=state, perm=perm, notes=notes, nodes=nodes, transitions=transitions)
 
     def copy(self, cr, uid, id, default=None, context=None):

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to