This question has been flagged
1 Reply
2709 Views

It seems reodering rules need to be manually created on every stock item. This seems absurd. Please help me understand why this is even an option.

If a company needs to manufacture something, they create a manufacture order, and some items are out of stock. If one critical item does not have a reordering rule set, it will not get ordered, and the omission will not be picked up until it it time to assemble. At that time it is too late and everyone just hates odoo. 

Surely someone has a method to set reordering rules on all items

Or at least some way of highlighting inventory items that do not have reordering rules set.

Avatar
Discard
Best Answer

It’s possible to use Automated Actions to setup Reordering Rules automatically at the time you create a product.

Start by enabling Developer mode and navigating to Settings / Technical / Automated Actions:

Click on CREATE and the following screen is displayed:

Action Name: Enter a description (e.g. Set reorder Point)

Model: Product (product.product)

Trigger Condition: On Creation

Apply on: Product Type = ‘product’ 

Action To Do: Create a New Record

Create / Write Target Model: Minimum Inventory Rule (stock.warehouse.orderpoint)

Data to Write

Minimum Quantity(stock.warehouse.orderpoint)Value0
Maximum Quantity(stock.warehouse.orderpoint)Value10
Product(stock.warehouse.orderpoint)Python expressionrecord.id

You can enter whatever values you want for minimum and maximum quantity in the first two lines, but the third line (for the product) must be exactly as shown above.

You can also create this as a Server Action to setup Reordering Rules for existing products

https://odootricks.tips/automated-actions-reordering-rules/


Avatar
Discard