Odoo 14 Action URL 生成
from werkzeug.urls import url_encode url = '/web#%s' % url_encode({ 'action': 'hr.plan_wizard_action', 'active_id': employee.id, 'active_model': 'hr.employee', 'menu_id': self.env.ref('hr.menu_hr_root').id, })
from werkzeug.urls import url_encode url = '/web#%s' % url_encode({ 'action': 'hr.plan_wizard_action', 'active_id': employee.id, 'active_model': 'hr.employee', 'menu_id': self.env.ref('hr.menu_hr_root').id, })