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

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

AttributeError: module 'odoo.api' has no attribute 'multi'
อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง

So we can remove '@api.multi'

And the function will work perfectly

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
พ.ย. 20
2787
Many2one dependant booleans แก้ไขแล้ว
1
ธ.ค. 19
2847
10
เม.ย. 23
104828
0
มิ.ย. 21
2263
Many2one field update based on condition แก้ไขแล้ว
3
ต.ค. 20
5418