how to create new button using studio module
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Účetnictví
- Sklad
- PoS
- Project
- MRP
This question has been flagged
Creating a new button using Odoo Studio typically involves the following steps:
Accessing Odoo Studio:
- Log in to your Odoo instance as an administrator.
- Go to the module for which you want to create a new button.
Entering Studio Mode:
- In the top-right corner, click on the "Edit" or "Customize" button to enter the Studio mode. This mode will allow you to make changes to the application's interface and behavior without coding.
Adding a Button:
- Once in Studio mode, navigate to the appropriate model (e.g., a specific object or record type) to which you want to add a button.
- From the left sidebar, choose "Views" or "Buttons" (the exact wording might differ based on your Odoo version).
Creating the Button:
- Click on "Create" or a similar option to add a new element to the selected view.
- Select the element type as "Button."
Configuring the Button:
- Give the button a name that describes its purpose.
- Define the action that the button should perform. This might include opening a form, triggering a specific workflow action, or executing a custom function.
- Configure the button's appearance, label, and any other visual aspects.
Setting the Button Action:
- Depending on the action you want the button to perform, you might need to link it to a specific action or function. This could involve opening a specific view, executing a server action, or running a predefined workflow.
Save and Apply Changes:
- Once you've configured the button, save your changes within Studio.
- Exit Studio mode.
Testing the Button:
- Navigate to the relevant record or object in Odoo and check if the new button appears.
- Click on the button and ensure that it performs the desired action correctly.
Hi
Open the xml view that we need a button > studio tool > add the code for the button > create server action for the functionality
check these references
Regards
Hi,
Studio does not have this feature in the released version and it will be available from 17 or may be may be available in some latest saas versions.
For now, you can add button directly in the view, choose to add it in the inherited view of the original view and you can place this code:
< button name="1000" type="action" string="test"/>
and if you need to execute python code, define a server action and copy its ID and place in the name of the button.
Thanks
Hi,
Please refer to the blog given below:
https://www.cybrosys.com/blog/how-to-add-a-button-using-the-odoo-studio-version-15
Hope it helps
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Přihlásit se