Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată

Hello,

I have 3 models.

Model_a.py:

fila = fields.one2many('model.c', 'keya')

 

Model_b.py:

filb = fields.one2many('model.c', 'keyb')

reference = fields.Char('Reference')

date = fields.Date('Date')


Model_c.py:

keyb = fields.many2one('model.b')

keya = fields.many2one('model.a')


I will put the same values from fields: 'reference' and 'date' into the one2many tree view fila and filb.

It also generates in many2one tree view of model_c.py two records with the same values or my many2one tree view have duplicated record.

So how to delete/remove duplicated records in many2one tree view of model_c.py?


Please help!

Thank you!

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
oct. 23
5124
1
apr. 25
3957
0
ian. 21
3012
3
mar. 21
5280
1
mar. 21
18912