跳至内容
菜单
此问题已终结
3 回复
5609 查看

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,

形象
丢弃