Hello there,
I'm newbie in here, so my question is how can I add new relational fields One2many inside my existing inherit model??
Thank you.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- Müşteri İlişkileri Yönetimi
- e-Commerce
- Muhasebe
- Envanter
- PoS
- Project
- MRP
Bu soru işaretlendi
3809
Görünümler
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Üye Olİlgili Gönderiler | Cevaplar | Görünümler | Aktivite | |
---|---|---|---|---|
|
2
Tem 24
|
1547 | ||
|
1
Eyl 15
|
5134 | ||
|
1
Tem 22
|
5304 | ||
|
2
Şub 21
|
12684 | ||
|
3
Nis 20
|
10804 |
Are you not able to do it by defining new fields in the inherited model like this
class A(models.Model):
field1
field2
class B(models.Model):
_inherit="A"
one2many_field = fields.One2many(codmodel, inverse_name)
many2many_field = fields.Many2many(comodel)
??
Would have been nicer if you could add more information about the problem you're facing.
@Karan BK, hey there I've found the solution. What I have done wrong is not mentioned inverse relation in my main module, after doing this things works well, anyway thanks for response. Thanks