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
Create an account today to enjoy exclusive features and engage with our awesome community!
Tilmeld dig
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.