Skip to Content
Menu
This question has been flagged
1 Reply
5496 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.

Avatar
Discard
Best Answer

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

Avatar
Discard
Author

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.

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).

Author

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.