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

I have defined a server action in an xml file and attached it to a menu button. Everything works, I get redirected to the record in question and the record is displayed in edit mode. If I use target = current,new,inline I see exactly what I expect. 

I can even edit the fields!

HOWEVER....

There is NO save button.


<record id="action_settings" model="ir.actions.server">
<field name="name">Contact Settings</field>
<field name="model_id" ref="model_res_partner"/>
<field name="code">
action = {
"type": "ir.actions.act_window",
"view_mode": "form",
"res_model": "res.partner",
"target": "inline",
"res_id": user.commercial_partner_id.id,
}
</field>
</record>
Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

As it turns out. This was a permissions related issue. The user in question only had read access on the destination model and so correctly could only read.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 11 24
754
3
thg 12 23
4693
2
thg 9 23
5706
1
thg 4 23
3034
3
thg 3 22
9350