Is it possible to make a one2many relation without specifying the target model's “foreign key field”?
问题 I want to make a superclass that have a one2many relation with says dummy.one . So that every subclass that inherit the superclass will have a one2many relation with dummy.one . The problem is declaring a one2many relation forces me to specify the foreign key which link dummy.one to the superclass . Thus I need to create many2one relation (foreign key) in dummy.one for every subclass that I create. The only trick that works is that I create a many2many relation instead of one2many . Here's an