Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
新手求助: 图中显示的使用self.env['res.parter']和self.env.ref('res.parter')有什么区别,还有使用的装饰器为什么都是@apo.model?
self.env['res.parter']
self.env.ref('res.parter')
@apo.model
完全不一样的。 self.env.ref()参数是xml id,用来获取xml id对应的记录 self.env['model的_name'],用来获取model的引用
@iooop 你好,谢谢你的解答. 再请教一个问题;在使用过程中,哪种情况使用哪个呢?
你好!看起来您对这段对话很感兴趣,但您还没有一个账号。
厌倦了每次访问都刷到同样的帖子?您注册账号后,您每次返回时都能精准定位到您上次浏览的位置,并可选择接收新回复通知(通过邮件或推送通知)。您还能收藏书签、为帖子顶,向社区成员表达您的欣赏。
有了你的建议,这篇帖子会更精彩哦 💗