Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată

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






Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Cel mai bun răspuns

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.



Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
2
feb. 25
2756
2
apr. 25
1130
0
iul. 24
1215
2
mai 24
1959
0
nov. 23
1506