[FIX] runbot: frontendurl should use the right id

This commit is contained in:
Christophe Monniez 2023-07-03 13:45:57 +02:00 committed by xdo
parent 92157ad71a
commit 207b890018

View File

@ -77,7 +77,7 @@ export class FrontendUrl extends Component {
const model = this.props.relation || this.props.record.fields[this.props.name].relation;
const id = this.props.value[0];
if (model.startsWith('runbot.') ) {
return '/runbot/' + model.split('.')[1] + '/' + this.props.record.resId;
return '/runbot/' + model.split('.')[1] + '/' + id;
} else {
return false;
}