'Trigger a workflow signal, depending on the use_relational_model:
- `base`: base_model_pool.signal_workflow(cr, uid, context.get(\'active_id\'), <TRIGGER_NAME>)
- `relational`: find the related model and object, using the relational
field, then target_model_pool.signal_workflow(cr, uid, target_id, <TRIGGER_NAME>)'

@api.model
def run_action_trigger(self, action, eval_context=None):

    record = action.env[action.model_id.model].browse(self._context['active_id'])
    if (action.use_relational_model == 'relational'):
        record = getattr(record, action.wkf_field_id.name)
        if (not isinstance(record, models.BaseModel)):
            record = action.env[action.wkf_model_id.model].browse(record)
    record.signal_workflow(action.wkf_transition_id.signal)
