Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
3261 Visualizzazioni

Dear all,

I set a tracking=True in an one2many field of child model by Odoo17 community. I followed the link How to use track_visibility='onchange' on order lines fields [odoo14] and edited the code in the child model.

When running, below error popped up. 

if set(vals) & set(self._get_tracked_fields(vals)):

                       ^^^^^^^^^^^^^^^^^^^^^^^^

AttributeError: xxx' object has no attribute '_get_tracked_fields'


Could someone advise how I can get child's model "tracking=True" working at the parent model or fix this error? 

Avatar
Abbandona
Autore Risposta migliore

Hi all,

I used the child model to track the record changes

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
ago 25
1717
2
ago 25
275
0
mar 25
1365
2
mar 25
1310
1
feb 25
1611