Make Ingestion/Document scanner more customizable
In "Attach document" action of erp5_ingestion, the default publication section of attach document suggested in the dialog is defined by a type based script. We could do the same for group, so that we have a script that is easier to customize for specific cases. One use case is for accounting transactions, the group is usually the group of the entity where the document is attached. Also, we could enable type based script in document scanner dialog, which is very similar to attach document dialog, but it was not using the scripts. Similarly, we introduce a script to suggest a title in document scanner. Another difference between "Attach Document" and "Scan Document" is that the later had a "publication state" field, allowing user to choose a state for the created document. We extend this to "Attach Document" as well and introduce another customizable type based method to be able to configure a default value. See merge request !1359