[IMP] component: add current key for easier hook creation

closes #319
This commit is contained in:
Géry Debongnie
2019-10-13 08:33:51 +02:00
committed by aab-odoo
parent 3e8f60cefa
commit 1337aa0107
6 changed files with 85 additions and 10 deletions
+5
View File
@@ -162,6 +162,11 @@ constructor.
}
```
There is another static property defined on the `Component` class: `current`.
This property is set to the currently being defined component (in the constructor).
This is the way [hooks](hooks.md) are able to get a reference to the target
component.
### Methods
We explain here all the public methods of the `Component` class.