Odooers论坛

欢迎!

该社区面向专业人士和我们产品和服务的爱好者。
分享和讨论最好的内容和新的营销理念,建立您的专业形象,一起成为更好的营销人员。


0

what is difference between self._context and self.env.context in odoo new api.

形象
odoo
形象
丢弃
2 答案
0
形象
odoo
最佳答案

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.

形象
丢弃
0
形象
odoo
最佳答案

Both are same, both will give same result

形象
丢弃