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

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.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
พ.ย. 24
782
3
ธ.ค. 23
4757
Server actions in menuItem แก้ไขแล้ว
2
ก.ย. 23
5744
How does Odoo's action manager work? แก้ไขแล้ว
1
เม.ย. 23
3077
3
มี.ค. 22
9390