Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
35254 Lượt xem
Câu trả lời hay nhất

Hello Chirag A Dodiya (cod)

self._context and self.env.context is same.

self._context is the shortcut of self.env.context

self._context and self.env.context gives the context of the current class.

You can refer this slide : http://www.slideshare.net/openobject/odoo-from-v7-to-v8-the-new-api

Slide number 16 

Thank You.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Both are same, both will give same result

Ảnh đại diện
Huỷ bỏ