It is currently Wed May 23, 2012 2:58 pm

All times are UTC + 2 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Functional field, working as intended?
PostPosted: Wed Aug 10, 2011 9:24 am 
Offline

Joined: Thu Mar 31, 2011 8:45 am
Posts: 242
Location: Málaga, Spain
Hi, i i'am using a trace inside a functional field, but for some reason i see this trace 3 times each time change from one record to other and every time i load a record from tree_view

Here is the code is causing it.
Code:
   def _test_fnct(self, cr, uid, ids, field_name, arg, context):
      res = {}
      print "Function trace"
      return res

Code:
   _columns = {   
      'fnct_field':fields.function(_test_fnct,type = 'binary',method = True,string='This is a test field'),


So I see
Quote:
Function trace
Function trace
Function trace

in the server terminal

_________________
Desarrollo Compuservice
Parque Tecnológico de Andalucía


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 2 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:

Protected by Anti-Spam ACP