Get current screen name in POS Odoo

时间:2017-12-18 06:58:07

标签: odoo-10 point-of-sale

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.

1 个答案:

答案 0 :(得分:1)

为此你需要在js级以下。

var gui = require('point_of_sale.gui');

然后您可以使用。

获取当前屏幕
alert(gui.current_screen);