İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
6355 Görünümler

Hi Community,

See the error.

raise TypeError("Model %r does not exist in registry." % name)

TypeError: Model 'account.invoice.line' does not exist in registry.


Suggest me how to solve it.
Thanks in Advanced.
Avatar
Vazgeç
En İyi Yanıt

Hi,

Try account.move.line instead of account.invoice.line .


Thanks

Avatar
Vazgeç
Üretici

thanks @riyas but after replacing the account.move.line another error are occur

field = target._fields[name]

KeyError: 'invoice_id'

Change invoice_id to move_id

Üretici

now another error occur is KeyError: 'date_invoice'

brother you will have lot of such issues while migration try to fix one by one rather than asking each and every one, see whats the changes, whats replaced by date_invoice in v13 and change code accordingly. It will help to improve your tech skills

Üretici

Bro how we know that which field are changed in the v13 ?

we need to check all base code ?

You can open v12 and see where this field in corresponding model is placed, check the same place in v13 and see whats replaced.

Üretici

ok brother thanks for valuable reply. vote+

İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Nis 20
3349
0
Nis 20
9
1
Nis 20
2983
7
Ara 23
20014
2
Oca 20
2579