Custom fields issue

Hi,
I test Invenio for my Data Center (installed with instructions available in the documentation Quick start - Turn-key research data management repository) and I would like to customize the application with added field in the upload form. I followed the Documentation (Add fields to records - Turn-key research data management repository) but it fails:

 from invenio_records_resources.services.custom_fields import TextCF
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Cell In[17], line 1
----> 1 from invenio_records_resources.services.custom_fields import TextCF

ModuleNotFoundError: No module named 'invenio_records_resources.services.custom_fields'

It seems that the package invenio_records_resources.services was not in the good version.
my pipenv environment says: invenio-records-resources 0.19.19

Do I miss something? Can you help ?
Thank you!

Hello,

Sorry for not answering earlier.

Seeing the error message, I think that you scaffolded InvenioRDM v9.1.

If this is the case, your problem is due to the fact that custom fields were introduced in InvenioRDM v10, so scaffolding/upgrading to a newer version (e.g. v11.0) should fix the problem.

Let me know if it helps.

Thank you for the response,
I confirm that we used version 9.1, we will update for v10.0