Odoo Help

0

0
1 Answer
0
mandengue
02-10-18 08: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>
Stel een vraag
Writer
Keep Informed
1 volger(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 E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now