[FIX] core: adapt method api
[FIX] core: adapt method api

Forward-port problem, once again

dfang/odoo,hip-odoo/odoo,dfang/odoo,ygol/odoo,dfang/odoo,hip-odoo/odoo,dfang/odoo,hip-odoo/odoo,ygol/odoo,ygol/odoo,hip-odoo/odoo,dfang/odoo,dfang/odoo,ygol/odoo,ygol/odoo,hip-odoo/odoo,ygol/odoo,ygol/odoo,hip-odoo/odoo