Avis et commentaire d'un service

Bonjour tous le monde

Dans un erp axelor je veux ajouter une fonction a l'utilisateur d'ajouter un avis et un commentaire au service d'un livreur précis

maintenant pour ajouter cet zone d’avis comme google map ou bien comme playStore je doit ajouter des étoiles comme tous les autre site web
Capture d’écran 2023-08-18 121137

dans la partie front-end j’ai ajouter la partie html dans la variable CDATA et elle ç’affiche avec aucun problème mais quand je veux envoyer les valeur au back-end il s’envoi comme null

Est c pour cela je veux vos aides pour résoudre ce problème là

dans la partie front-end j'ai ajouter la partie html dans la variable CDATA et elle ç'affiche avec aucun problème mais quand je veux envoyer les valeur au back-end il s'envoi comme null

Est c pour cela je veux vos aides pour résoudre ce problème là

Hello

To make this easy to manage, you can also declare that field as selection integer (or decimal as per your requirement) and use existing selection gold.rating.icon.select from Axelor ERP, which provide the facility to enter the value like this
Review

And for display purpose you can continue with CDATA like you have done.

Otherwise if you want to continue with CADATA only to manage the field value only you can continue with JS script which will call Axelor REST API to update the value.

Hope this will help !

And FYI, We also have the forum on which you can communicate in French. If you are not comfortable with English, you can also communicate on French forum.

Thank you.
Regards

1 « J'aime »

@rch-axelor can u give more detail please.

Hello @oettabai , Sure.

Basically we already have one existing selection named gold.rating.icon.select in our system which you can specify when create the field for rating in domain OR you can directly specify in view too. And in form view use ImageSelect widget. So you will get the display like shown above.

For example we have field named rating.
Domain :

<integer name="rating" title="Opportunity scoring" selection="gold.rating.icon.select"/>

View :

<field name="rating" widget="ImageSelect" x-labels="false"/>

Let me know will this help or not and feel free to contact if anything is there.

Thank you.