Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
3661 Vizualizări

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?

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
dec. 16
3038
1
apr. 24
1636
2
iun. 25
89489
1
feb. 19
21176
0
aug. 16
4119