Hi all,
in most cases, my vendors already provided me with an existing vendor code.
This vendor code does not match the automatic vendor code creation of dolibarr.
Unfortunately, I can’t just deactivate the “Elephant” module to create the vendor code on my own, because I still would like to be able to auto create the third party code by dolibarr.
Is there any chance to deactivate the auto creation just for the vendor code ?
Even typing the vendor code on my own does not work, because the already provided vendor code does not match the rules in the “Elephant” module.
I also tried to create with Extra fields an additional field, but when changing the musquet script, the manual for implementing extra fields to PDF does not work here and crashes the website, once trying to create the PDF. I assume, that the call to the extra field does not work the same way as it would be working in the invoice, because I set the extra field already in the third party settings.
For your first question : no it is not possible to desactivate the naming rules for vendor
Usually people use Extra fields to do that.
Then your second question, if you read carfully the wiki you should be able to do it.
If your website crash means that you made a php code error.
If you send the error and the code you have done we can try to see why it is not working
When you do that, you ask extrafields for the $object supplier_order
But this object doesn’t have extrafields, because you create extra fields on third party object
In fact Third Party extra fields are already loaded in the object.
So you need to :