跳至内容
菜单
此问题已终结
1 回复
6529 查看

Anyone tel clear ans

形象
丢弃
最佳答案

delegate=True on the Many2one field, now replaces _inherits usage

reflect fields with delegate=True in dictionary self._inherits

set it to ``True`` to make fields of the target model

accessible from the current model (corresponds to ``_inherits``)

If 'delegate': False  whether self implements delegation


delegate: set it to True to make fields of the target model accessible from the current model (corresponds to _inherits)
 

Please read the following link for batter understanding

http://stackoverflow.com/questions/832536/when-to-use-delegation-instead-of-inheritance


形象
丢弃