Odoo Help

Welcome!

This community 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.

0

Reordering Rules - Change Default Filters ?

By
Tristan Novak
on 11/14/14, 5:46 PM 1,115 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.

1
Nicolas PIGANEAU
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).

Nicolas PIGANEAU
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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 11/14/14, 5:46 PM
Seen: 1115 times
Last updated: 3/16/15, 8:10 AM