Skip to content
Snippets Groups Projects
Commit ad8a6afa authored by Pierre Paridans's avatar Pierre Paridans
Browse files

[FIX] lunch: rpc call cannot be performed in Widget.init()

The Widget's init function is synchronous.

The 'then' will execute after the end of the function so
self.group_portal_id will not be set immediately.

Also, RPC's in the init function is really not a good idea, it should be
putted in the willStart.

Original commit: https://github.com/odoo/odoo/commit/855c6dac25fccaf9312543022001ed0b360d6e13



closes odoo/odoo#31508

Signed-off-by: default avatarAdrien Dieudonné (adr) <adr@odoo.com>
parent 0ab333c6
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment