コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
3694 ビュー

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

アバター
破棄
関連投稿 返信 ビュー 活動
0
12月 16
3090
1
4月 24
1676
2
6月 25
89536
1
2月 19
21200
0
8月 16
4155