hi

i am having the same problem when i try to enter website of a partner 
so i am trying to search the code responsible of this error, is it in the 
client side or in the server side
i think its when trying to send the information to the server
so i found in my "tinyerp-client/modules/gui/window/view_tree/view_tree.py"

def _read(self, ids, fields):
      c = {}
      c.update(rpc.session.context)
      c.update(self.context)
      try:
         res_ids = 
rpc.session.rpc_exec_auth_try('/object', 'execute',
              
 self.view['model'], 'read', ids, fields, c)
      except:
         res_ids = []
         for id in ids:
            val = {'id': 
id}
            for f in fields:
               if 
self.fields_type[f]['type'] in 
('one2many','many2many'):
                 
 val[f] = []
               else:
                 
 val[f] = ''
            res_ids.append(val)
      for field in self.fields:
         if 
self.fields_type[field]['type'] in ('date',):
            display_format = 
locale.nl_langinfo(locale.D_FMT).replace('%y',
                 
 '%Y')
            for x in res_ids:
               if 
x[field]:
                 
 date = time.strptime(x[field], DT_FORMAT)
                 
 x[field] = time.strftime(display_format, date)
         if 
self.fields_type[field]['type'] in ('datetime',):
            display_format = 
locale.nl_langinfo(locale.D_FMT).replace('%y',
                 
 '%Y') + ' %H:%M:%S'
            for x in res_ids:
               if 
x[field]:
                 
 date = time.strptime(x[field], DHM_FORMAT)
                 
 if 'tz' in rpc.session.context:
                 
    try:
                 
       import pytz
                 
       lzone = 
pytz.timezone(rpc.session.context['tz'])
                 
       szone = 
pytz.timezone(rpc.session.timezone)
                 
       dt = DT.datetime(date[0], 
date[1], date[2],
                 
             date[3], 
date[4], date[5], date[6])
                 
       sdt = szone.localize(dt, is_dst=True)
                 
       ldt = sdt.astimezone(lzone)
                 
       date = ldt.timetuple()
                 
    except:
                 
       pass
                 
 x[field] = time.strftime(display_format, date)
         if 
self.fields_type[field]['type'] in 
('one2one','many2one'):
            for x in res_ids:
               if 
x[field]:
                 
 x[field] = x[field][1]
         if 
self.fields_type[field]['type'] in ('selection'):
            for x in res_ids:
               if 
x[field]:
                 
 x[field] = 
dict(self.fields_type[field]['selection']
                 
       ).get(x[field],'')
         if 
self.fields_type[field]['type'] in ('float',):
            interger, digit = 
self.fields_type[field].get('digits', (16,2))
            for x in res_ids:
              
 x[field] = locale.format('%.' + str(digit) + 'f',
                 
    x[field] or 0.0)
         if 
self.fields_type[field]['type'] in ('float_time',):
            for x in res_ids:
               val = 
'%02d:%02d' % (math.floor(abs(x[field])),
                 
    round(abs(x[field]) % 1 + 0.01, 2) * 
60)
               if 
x&#91;field&#93; < 0&#58;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; 
&nbsp;val = '-' + val
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; 
&nbsp;x&#91;field&#93; = val
&nbsp; &nbsp;&nbsp; &nbsp;return res_ids


is the problem here?

to wich group does my website field belong so that it told me "no such group"?




-------------------- m2f --------------------

--
http://www.openerp.com/forum/viewtopic.php?p=27775#27775

-------------------- m2f --------------------


_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman/listinfo/tinyerp-users

Reply via email to