Powerfull feature Link to an object

A very powerful feature in Dolibarr is the ability to add extra attributes / fields in any module. Link to an object is one of my favorites because you are able to link everything to all and all to everything. The setup of a link to an object is easy, but you have to know the code.

I am struggling to find how to link a purchase order.

Link a manufacturing order-> mo:mrp/class/mo.class.php
Link an order -> commande:commande/class/commande.class.php
Link a purchase order -> ???
Link a product -> product:product/class/product.class.php

Can anyone help me where to find it or just give the plain answer?

Hello :grinning:

can you try :
commandefournisseur:fourn/class/fournisseur.commande.class.php

Good continuation

Thanks that’s the trick