Skip to Content
Menu
This question has been flagged

I share the following case, I am trying to make the reordering work to products that have no reordering rule outside of WH/1 and WH/2.


If I make a sale in WH/3 there is no reordering in the Inventory operations. From inventory I can activate the reordering and generate a partially blank rule.


For this I did this server action to generate them, however the error appears:


Validation error:

The operation cannot be completed: another template needs the record to be deleted. If possible, better file it.


Template: Minimum Inventory Rule (stock.warehouse.orderpoint)

Constraint: stock_warehouse_orderpoint_product_id_fkey

____________________________________________________________

Is there any way to make it so that if the product has no reorder rule it is put in Replenishment automatically?


Server action:

Model: Product

Action To Do: Create New Record

Target Model: Minimum Inventory rule


Field:

Min Qty - Value - 0

Max Qty - Value - 0

Warehouse - Reference - WH/3

Product - Python - record.id






Avatar
Discard
Best Answer

Hi Genaro,

Don't forget that you need to add this server action to the product variants and not products, i.e. technically product.product model and not product.template model.

About your last question, of course it is possible, but you need to write the whole thing in python with conditions.

I hope it could help.

Regards,

Hamid - bitigloo GmbH

Avatar
Discard
Best Answer

Probably the error is that you already have a Reordering Rule for this product / warehouse.  

Products appear in Replenishment if there is demand.

Are you trying to use Reordering Rules (automatic) or Replenishment (manual).  Maybe this will help you with Replenishment.



Avatar
Discard
Related Posts Replies Views Activity
2
Feb 25
2587
2
Apr 25
983
0
Jul 24
1073
2
May 24
1814
0
Nov 23
1389