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
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
Daftar
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.