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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
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"
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
2
Apr 19
|
6410 | ||
|
2
Jan 21
|
3313 | ||
|
2
May 20
|
19265 | ||
|
2
Jul 24
|
939 | ||
|
1
Jun 24
|
3560 |