How can I fill a One2many of a model but calling an action from a button, and of course, always be updated with what I have added
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
How can I fill a One2many of a model but calling an action from a button, and of course, always be updated with what I have added
Hello Pavel,
To Add records and update in one2many tree view below are ways you can use your python function of the button.
1. Create and write a record of one2many model with setting many2one relation field by calling create/write method from the function of the button.
2. Link record to model using write method. You can refer below link for that.
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up