Odoo Help

0
2 Answers
2
Avatar

Pawan

--Pawan--

1532
| 4 4 6
Hyderabad, India
--Pawan--


Pawan
9/2/15, 1:31 AM

Mathieu,

In order to override the predefined action, you can simply define this action record again in your module, but remember to append original module_name/ action source module_name before action id to override.like:

<record id="[original_module_name].action_partner_form" model="ir.actions.act_window">

keep everything as it is, and just make the changes you want. like for context:

<field name="context">{"search_default_customer":1, [ + your_filter_to_be_added]}</field> 

Hope it helps!    

0
Mathieu Laflamme
9/2/15, 11:43 AM

Here is what I did precisely. I didn't reference the original module in fact!

<record id="base.action_partner_form" model="ir.actions.act_window"> 
<field name="context">{'search_default_customer':1, 'search_default_my_filter':1}</field> </record>
Ask a Question
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 E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now