Ir al contenido
Menú
Se marcó esta pregunta
3 Respuestas
5254 Vistas

Hi,

I know what I'm asking below may be out of your reach, but give your heart to helping new customers. Please!

I want to create an Automated Actions, on Odoo Studios. Use the python function to get value from the original object.

For example, in the CRM module, I created the Automation; When Stage is Done, then create a new Ticket on the Helpdesk module. Assign Helpdesk values are the values on the CRM module (example in attached photo).

Can you guide some simple commands to be able to write here or not? Or provide the documentation to do it.

Thank you very much

Avatar
Descartar
Mejor respuesta

To use the python expression you need to do the following:

record.name_of_field_you_are_trying_to_write_to_the_ticket

for example, if you wish to add contact to the contact field:

record.partner_id

Avatar
Descartar
Mejor respuesta

Hello NGUYEN,

If you have to get values from multiple records then you can also use records.your_needed_field.

Avatar
Descartar
Autor Mejor respuesta

Thank for your anwers,

Avatar
Descartar