I'm trying to replace a button with this name, but I can't find it. How can I do? I can't pass xpath with string or anything. I need help
Dette spørgsmål er blevet anmeldt
1
Svar
7962
Visninger
<button string="New Quotation" name="%(sale_action_quotations_new)d" type="action" class="oe_highlight"
Hi Paolo,
Here are the steps to get the name of the action:
Go to the view you want your button to open
Activate developer mode
Go to the top right, you will see the developer icon. Click on it and select Edit Action
On Edit Action you will get the external ID of the action, copy that and put it in your button like below
If you want your action to open a form view directly you can set the view type value to form only on the Edit Actions window.
<button string="New Quotation" name="%(external_id_of_action)d" type="action" class="oe_highlight"
Kan du lide at diskutere? Læs ikke bare med, deltag aktivt i debatten!
Opret en konto i dag for at få glæde af eksklusive funktioner, og bliv en del af vores skønne fællesskab!
Tilmeld dig| Relaterede indlæg | Besvarelser | Visninger | Aktivitet | |
|---|---|---|---|---|
|
|
2
apr. 19
|
6410 | ||
|
|
3
dec. 24
|
5634 | ||
|
|
2
maj 20
|
21885 | ||
|
|
1
feb. 26
|
62 | ||
|
|
0
apr. 26
|
14223 |