~cag/openobject-client-web/cag-6.0-dev

« back to all changes in this revision

Viewing changes to addons/openerp/widgets/form/_form.py

  • Committer: Husen Daudi
  • Date: 2011-09-26 13:22:50 UTC
  • mfrom: (4704.1.1 Case6179)
  • Revision ID: hda@hda-laptop-20110926132250-w7jlwukd5ruu0kc2
fixed issue 6179

Show diffs side-by-side

added added

removed removed

Lines of Context:
632
632
        # remove mnemonic
633
633
        self.string = re.sub('_(?!_)', '', self.string or '')
634
634
 
 
635
        if (getattr(cherrypy.request, 'terp_params', {}) and 
 
636
            cherrypy.request.terp_params.o2m and not cherrypy.request.terp_params.o2m_id):
 
637
            self.readonly = True
635
638
        self.btype = attrs.get('special', attrs.get('type', 'workflow'))
636
639
        self.context = attrs.get("context", {})
637
640
        self.nolabel = True