Odoo Help


Reordering Rules - Change Default Filters ?

Tristan Novak
on 11/14/14, 5:46 PM 1,786 views

When I deactivate a reordering rule for a product, it disappears from all Reordering Rule lists.

I was able to make a default filter in Warehouse>Reordering Rules that shows both active and inactive rules. Along with showing an "Active" column and checkbox for each rule.

The "Active" column carries over but the filter does not carry over when I use the [Reordering Rules] button from the product view.

I have searched for a long time for an answer to this issue, and tried many things but only able to make them work per product. Could someone tell me how I would add a filter that would cover all products reordering rules?

Below is the closest I have come to a working solution. Is there a variable for product_id I can use? Replace 8 with Variable(id of current product).  I am new to odoo and still learning the structure. Maybe I am going about it all wrong also.

On 11/15/14, 4:28 PM

Change the action window default domain for reordering rules:

1. Make sure you have the technical settings enabled in settings=>User=>Administrator

2. Go to Settings=>Technical=>Actions=>Window Actions

3. Search for "stock.warehouse.orderpoint". You get 3 of them corresponding to the different ways you can get to the reordering rule list (from a warehouse, from a product and in the configuration submenu in "warehouse" application).

4. Modify the domain to ['|',('active','=',True),('active','!=',True)] on each and save

Thank You! When I was looking through the actions, I had been only looking for action_view_orderpoints(beacuse its shows when I mouse over the button)(http://www.modernagllc.com/images/button.png), how would I find that I needed to look for stock.warehouse.orderpoint? Again I'm new to odoo and trying to learn the flow.

Tristan Novak
on 11/15/14, 5:16 PM

Check the URL. You have the "model" (e.g. stock.warehouse.orderpoint), the id of the record you are looking (if form view), the "action" which gives the id of the action window running, and active_id which the id of the record of the previous model (e.g. id of the record of the product when you clicked on reordering rules from a product).

on 11/15/14, 5:23 PM

Thanks Again! I spent hours, and it was fixed in seconds... I would accept the answer, but it would only let me upvote, I'm assuming I need more karma.

Tristan Novak
on 11/15/14, 5:37 PM

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 E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)


Asked: 11/14/14, 5:46 PM
Seen: 1786 times
Last updated: 6/13/17, 9:26 AM