Skip to Content
मेन्यू
This question has been flagged
1 Reply
3825 Views

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?

Avatar
Discard
Best Answer

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

Avatar
Discard
Related Posts Replies Views Activity
0
दिस॰ 16
3171
1
अप्रैल 24
1817
2
जून 25
89868
1
फ़र॰ 19
21353
0
अग॰ 16
4249