Skip to Content
Menu
This question has been flagged
2538 Views

Hello, I was wondering how can i declare a variable outside the def function?

var_2 = "Hello"
def learning_day_change(self, cr, uid, ids, var_2, context=None):
   result = {}
   result['value']['result'] =  var_1 + var_2
   return result
Avatar
Discard