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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
Aanmelden
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.