for example this :
def attachment_tree_view(self, cr, uid, ids, context):
For what is the self, cr, uid ,ids, context
I don't understand for what those arguments are?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
for example this :
def attachment_tree_view(self, cr, uid, ids, context):
For what is the self, cr, uid ,ids, context
I don't understand for what those arguments are?
Hi,
Where self is reffered as this operator.
cr: is the database cursor using that you can access the database operation like (commit, rollback, etc...)
uid: current user id to check the access right
ids: it the collection of list of current object ids
context : It contains the info related to timezone, lang
cr – database cursor uid – current user id ids – list of ids fields_to_export – list of fields context – context arguments, like lang, time zone
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
|
0
Des 16
|
3048 | ||
|
1
Apr 24
|
1638 | ||
write and create function
Diselesaikan
|
|
2
Jun 25
|
89495 | |
Correct way to get database name in Python?
Diselesaikan
|
|
1
Feb 19
|
21183 | |
|
0
Agu 16
|
4123 |