콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다

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
3399
0
4월 20
9
1
4월 20
3023
7
12월 23
20095
2
1월 20
2617