while making new reservation in hotel reservation module in odoo v8
ValueError: "global name 'cr' is not defined" while evaluatingu'set_to_draft_reservation()'
while assignin value to cr it produces multi-value error
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
while making new reservation in hotel reservation module in odoo v8
ValueError: "global name 'cr' is not defined" while evaluatingu'set_to_draft_reservation()'
while assignin value to cr it produces multi-value error
Check the Coding style, if it is written in traditional coding style, then you would be able to access those variable,
If not, then it could be written in API coding style, where-in 'self' is binded by all those environmental variables, in order to avail it, use syntax as follows
self._cr (database cursor)
self._uid (uid/user)
self._context (frozen dict of context)
self._ids (ids)
i have got another error after using
self._cr
the error says ValueError: "delete_workflow() takes at most 5 arguments (8 given)" while evaluating
u'set_to_draft_reservation()'
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ýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
0
thg 3 25
|
1419 | ||
|
0
thg 1 25
|
3495 | ||
|
1
thg 8 23
|
14863 | ||
change password
Đã xử lý
|
|
1
thg 8 23
|
13511 | |
|
1
thg 7 23
|
10488 |