Odoo Help


1 Answer

Yannick Vaucher

--Yannick Vaucher--

| 5 7 11
Lausanne, سويسرا
--Yannick Vaucher--

Yannick Vaucher
16‏/1‏/2015 7:55 ص

In 8.0 I did the following to make domain based on XML ID:


When creating an ir.actions.act_windows


        <field name="domain" eval="[('categ_id', '=', ref('xml_id'))]"/>


Though, if you need to create a filter you will have to write:


          <filter string="My filter" name="my_filter" domain="[('categ_id', '=', %(xml_id)d)]"/>


Ask a Question
Keep Informed
2 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.

Odoo Training Center

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

Test it now