Skip to Content
Menu
This question has been flagged
1 Reply
2572 Views

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




Avatar
Discard
Author Best Answer

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

Avatar
Discard