Odoo Help

0

0
1 Answer
0
mandengue
2018/10/02 8:03

Hi , i found the solution .

in the tree view of model 1 , i have used the context attribute on the button to define my default values.

eg :

<button name"%(target_action)d string="Pay now" type="action" context="{'param1': active_id,'param2':field2}"/>

and in the record action

<field name="context">{'default_field5_name': context.get('param1', False),'default_field6_name': context.get('param2', False),}</field>
Ask a Question
Writer
Keep Informed
1 follower(s)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our eLearning platform and experience all Odoo Apps through learning videos, use cases and quizzes.

Test it now