Hi everybody!!
Please i have a field which is a result of a function (fields.function). But my function contains an SQL request and i didnt understand how to create it.
Here is what i have tried:
def _total_get(self, cr, uid, context=None):
cr.execute('select total from hr_payslip_line where code = "22001"')
return cr.fetchall()
Please help