跳至內容
選單
此問題已被標幟
1 回覆
5525 瀏覽次數

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>
頭像
捨棄
作者 最佳答案

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.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
11月 24
766
3
12月 23
4703
2
9月 23
5722
1
4月 23
3047
3
3月 22
9362