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

Please help! Whenever I add a many2many or one2many field to my form using odoo studio, I cannot add a data to the table. I followed the instructions from this video https://www.youtube.com/watch?v=Z7y2z2kuxnw&t=1023s but it doesn't have the add an item button at the end of the table during edit mode.

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

Groups and Access Rights in Odoo: https://goo.gl/4jAhtH

Câu trả lời hay nhất

As from Odoo V12 if you are creating new model then you must have to give create access to user(in your case admin).  Yes, Previously it is possible as Admin is the main user but from V12 the mechanism has been changed. 

Ảnh đại diện
Huỷ bỏ
Tác giả

Hi, thank you for the reply. I am using Odoo V11. Is it still the same with V12?

Câu trả lời hay nhất

Hi,

Does the logged in user group have create permission in the corresponding model in the one2many or many2many field? If you are using the Odoo v12, switch to super user mode and see whether you get the add an item button in the One2many and many2many field. If you are getting the add an item button in superuser mode, the issue is that you haven't set the access rights for the new model.

To switch to Super User mode see: SuperUser Mode in Odoo

Thanks

Ảnh đại diện
Huỷ bỏ
Tác giả

Hello, I am using Odoo v11 and I just added the new model to the access right of the admin but it's still not working.

Check whether create=False is given with one2many tree

Tác giả

where can I check the create value?

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 1 22
18657
1
thg 11 19
5267
3
thg 7 19
5520
1
thg 3 19
3849
1
thg 6 18
5547