How do I get current screen name in POS (Odoo 10)? I've seen get_current_screen function, but can't use it properly. Please, define me proper way to implement it.
答案 0 :(得分:1)
为此你需要在js级以下。
var gui = require('point_of_sale.gui');
然后您可以使用。
获取当前屏幕alert(gui.current_screen);