From 207b890018f65599120aa73cefc4d2a97e3140e1 Mon Sep 17 00:00:00 2001 From: Christophe Monniez Date: Mon, 3 Jul 2023 13:45:57 +0200 Subject: [PATCH] [FIX] runbot: frontendurl should use the right id --- runbot/static/src/js/fields/fields.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runbot/static/src/js/fields/fields.js b/runbot/static/src/js/fields/fields.js index c9dfa228..10c49eca 100644 --- a/runbot/static/src/js/fields/fields.js +++ b/runbot/static/src/js/fields/fields.js @@ -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; }