How to Add a Button Inside Action Menu?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- 项目
- MRP
此问题已终结
Hi Alex,
Add Button inside Action Menu

And You will see view

Thanks.
Hi,
Try the following code,
1. Create python file.
from odoo import fields, models
class SaleOrder(models.Model):
_inherit = 'sale.order'
def function_nam(self):
print('HELLO')
2. create Xml file.
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="action_update_order_date" model="ir.actions.server">
<field name="name">Print HEllo</field>
<field name="model_id" ref="model_sale_order"/>
<field name="binding_model_id" ref="sale.model_sale_order"/>
<field name="binding_view_types">
<field name="state">code</field>
<field name="code">model.function_
</record>
</odoo>
Please refer to this blog:
https://www.cybrosys.com/blog/how-to-add-a-button-inside-action-menu-in-odoo-17
Hope it helps