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

Hi,

I am trying to use Automated Actions to read fields of a record.

As per help, a field is accessed as below:

partner_name = record.name + '_code'

So, for hr.employee , to get the field related_name, I expect it to be:

partner_name = record.related_name 

But I am getting an error 

So, how to access field values of the record.

Regards,

Fuad




形象
丢弃
编写者 最佳答案

I found the answer in one of the samples:

record = model.browse(context['active_id']) 
Also, related model for both condition and Action should be employee

形象
丢弃