Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
3 Ответы
5288 Представления

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

Аватар
Отменить
Лучший ответ

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

Аватар
Отменить
Лучший ответ

Hello NGUYEN,

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

Аватар
Отменить
Автор Лучший ответ

Thank for your anwers,

Аватар
Отменить