There is no connection to a function registered with the OpenERP login.
So it’s possible that you are providing the wrong user ID or password.
The main field for using the function:
Automatically calculates field values based on other fields.
ie Total = field1 + field2 + field3
: 'total': fields.function(get_total, method = True, string = 'Total', type = 'integer'),
:
def get_total(self, cr, uid, ids, fields, arg, context):
x={}
for record in self.browse(cr, uid, ids):
x[record.id]= record.field1 + record.field2 + record.field3
return x