Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
3790 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
gen 19
3794
1
dic 24
2922
1
gen 23
3741
1
dic 22
6171
1
ott 20
9159