Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
5480 Widoki

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>
Awatar
Odrzuć
Autor Najlepsza odpowiedź

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.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
lis 24
748
3
gru 23
4688
2
wrz 23
5695
1
kwi 23
3016
3
mar 22
9343