Buttons and Smart Buttons in Odoo
Add object/action buttons and stat smart buttons on forms.
Odoo ERP development tutorials
Add object/action buttons and stat smart buttons on forms.
Implement compute/_inverse/_search methods for advanced fields.
Validate business rules with @api.constrains and UserError/ValidationError.
Mark methods that operate on the model/class rather than a recordset of ids.
Target nodes with xpath and position attributes: inside, after, before, replace, attributes.
Run Python code, update records, or trigger workflows from UI/automation.