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:
- CRM
- e-Commerce
- Akuntansi
- Inventaris
- PoS
- Project
- MRP
Pertanyaan ini telah diberikan tanda
3785
Tampilan
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
|
2
Jul 24
|
1480 | ||
|
1
Sep 15
|
5123 | ||
|
1
Jul 22
|
5260 | ||
|
2
Feb 21
|
12622 | ||
|
3
Apr 20
|
10764 |
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