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
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.