Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
62291 Lượt xem

While installing my first new custom module in Odoo 13, got following error : 

AttributeError: module 'odoo.api' has no attribute 'multi'
Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

After searching in github found that 'multi' is removed from Odoo 13.0 as it will be default.

https://github.com/odoo/odoo/commit/4b38cc6590abcb58a0ca102a06063eb3db7ac1f4#diff-2c418cb78b7c562a79e7032645a537d2

Ảnh đại diện
Huỷ bỏ

So we can remove '@api.multi'

And the function will work perfectly

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 11 20
2800
1
thg 12 19
2856
10
thg 4 23
104851
0
thg 6 21
2269
3
thg 10 20
5432