It will be good if you have try ...except block for the move_to call...i.e
- res = fnode.move_to(cr, dnode or fnode.parent, vals.get('name', fbro.name), fbro, dbro, True) + try : + res = fnode.move_to(cr, dnode or fnode.parent, vals.get('name', fbro.name), fbro, dbro, True) + except Exception, e: + raise orm.except_orm(_('Error'), str(e)) if isinstance(res, dict): vals2 = vals.copy() vals2.update(res)
Thanks,
« Back to merge proposal
It will be good if you have try ...except block for the move_to call...i.e
- res = fnode.move_to(cr, dnode or fnode.parent, vals.get('name', fbro.name), fbro, dbro, True) orm(_(' Error') , str(e))
vals2 = vals.copy()
vals2.update( res)
+ try :
+ res = fnode.move_to(cr, dnode or fnode.parent, vals.get('name', fbro.name), fbro, dbro, True)
+ except Exception, e:
+ raise orm.except_
if isinstance(res, dict):
Thanks,