Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
6556 มุมมอง

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+

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
เม.ย. 20
3563
0
เม.ย. 20
9
1
เม.ย. 20
3148
7
ธ.ค. 23
20284
2
ม.ค. 20
2723