mirror of
https://github.com/odoo/runbot.git
synced 2025-03-30 23:05:44 +07:00
[FIX] runbot: frontendurl should use the right id
This commit is contained in:
parent
92157ad71a
commit
207b890018
@ -77,7 +77,7 @@ export class FrontendUrl extends Component {
|
|||||||
const model = this.props.relation || this.props.record.fields[this.props.name].relation;
|
const model = this.props.relation || this.props.record.fields[this.props.name].relation;
|
||||||
const id = this.props.value[0];
|
const id = this.props.value[0];
|
||||||
if (model.startsWith('runbot.') ) {
|
if (model.startsWith('runbot.') ) {
|
||||||
return '/runbot/' + model.split('.')[1] + '/' + this.props.record.resId;
|
return '/runbot/' + model.split('.')[1] + '/' + id;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user