Files
odoo_source/addons
Michael (mcm) 04fddc19d4 [IMP] web: improve patch function
This commit refactors the patch function in order to simplify its code
but also and most of all remove the `this._super` bound on each patched
method call.
The patch function now supports the javascript keyword `super` to
get the parent's property.
This removes constraints we had with `this._super`. We had to create a
rather complicated intermediate function to bind `this._super` and this
function was called each time before we called a patched method.
It was annoying for debugging but necessary. Because of this
intermediate function `this._super` was also had to re-bind each time
we entered a patched method which was annoying with async method, we
had to save the parent method in the patch before awaiting its
execution. Finally, not a big issue but still, objects could not have a
`_super` property as it would be hidden in the patch.

task 3410198

Part-of: odoo/odoo#125716
2023-08-02 17:29:05 +02:00
..
2023-08-01 13:51:17 +02:00
2023-07-19 13:13:16 +02:00
2023-08-01 13:51:17 +02:00
2023-08-02 06:18:53 +02:00
2023-08-01 13:51:17 +02:00
2023-08-01 13:51:17 +02:00
2023-06-12 22:39:26 +02:00
2023-07-27 11:58:34 +02:00
2023-07-25 08:18:58 +02:00
2023-07-25 08:18:58 +02:00
2023-07-19 18:24:15 +02:00
2023-05-11 10:40:55 +02:00
2023-07-25 08:18:58 +02:00
2023-08-02 16:00:19 +02:00
2023-07-27 11:58:34 +02:00
2023-07-19 18:24:15 +02:00
2023-08-01 13:51:17 +02:00
2023-07-25 08:18:58 +02:00
2023-07-28 16:28:45 +02:00
2023-08-01 13:51:17 +02:00
2023-07-28 16:28:45 +02:00
2023-07-25 08:18:58 +02:00
2023-08-01 13:51:17 +02:00
2023-08-02 01:15:49 +02:00
2023-07-19 18:24:15 +02:00
2023-08-01 13:51:17 +02:00
2023-08-01 13:51:17 +02:00
2023-07-19 18:24:15 +02:00
2023-08-01 13:51:17 +02:00
2023-07-19 13:13:16 +02:00
2023-06-28 17:41:19 +02:00
2023-08-01 13:51:17 +02:00
2023-08-02 17:29:05 +02:00
2023-08-01 13:51:17 +02:00