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?
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
Opret en konto i dag for at få glæde af eksklusive funktioner, og bliv en del af vores skønne fællesskab!
Tilmeld dig| Relaterede indlæg | Besvarelser | Visninger | Aktivitet | |
|---|---|---|---|---|
|
0
dec. 16
|
4469 | |||
|
1
apr. 24
|
3311 | |||
|
2
jun. 25
|
93630 | |||
|
1
feb. 19
|
23462 | |||
|
0
aug. 16
|
5826 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.