mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
make sure env is propagated to child widgets
This commit is contained in:
@@ -49,7 +49,7 @@ export class Widget<T extends WEnv> {
|
||||
if (parent instanceof Widget) {
|
||||
p = parent;
|
||||
parent.__widget__.children.push(this);
|
||||
this.env = Object.create(parent.env);
|
||||
this.env = parent.env;
|
||||
} else {
|
||||
this.env = parent;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user