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
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
Registrarse
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.