mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
display view type in views
This commit is contained in:
@@ -103,7 +103,7 @@ export function actionManagerMixin<T extends ReturnType<typeof rpcMixin>>(
|
||||
|
||||
doActWindowAction(descr: ActWindowActionDescription) {
|
||||
return async function executor(this: Action, parent: Widget<any, any>) {
|
||||
const widget = new View(parent, {});
|
||||
const widget = new View(parent, { info: descr.views[0][1] });
|
||||
const div = document.createElement("div");
|
||||
await widget.mount(div);
|
||||
this.widget = widget;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Widget } from "./widget";
|
||||
|
||||
export class View extends Widget<{}, {}> {
|
||||
inlineTemplate = "<div>some view</div>";
|
||||
export class View extends Widget<{}, { info: any }> {
|
||||
inlineTemplate = `<div>some view: <span t-esc="props.info"/></div>`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user