跳至內容
選單
此問題已被標幟
1 回覆
6550 瀏覽次數

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.
頭像
捨棄
最佳答案

Hi,

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


Thanks

頭像
捨棄
作者

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

作者

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

作者

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.

作者

ok brother thanks for valuable reply. vote+

相關帖文 回覆 瀏覽次數 活動
1
4月 20
3562
0
4月 20
9
1
4月 20
3146
7
12月 23
20281
2
1月 20
2723