跳至内容
菜单
此问题已终结
2722 查看

Dear all

In Odoo 12 how can I get the context when user is working on the point of sale application?

Imagine I need to know if user is registering a new customer from POS and run a code specific code based on that.

I have tried:

context = self._context.get('active_model')

This is returning "None" and...

model = self._name

Is returning the model name, in this case, "res.partner"

What I need to do, is to detect is user is working on the point of sale application or not

Thank you in advance

Best regards

PM


形象
丢弃
相关帖文 回复 查看 活动
1
4月 25
2548
0
3月 24
686
0
10月 22
1936
0
9月 22
1055
1
7月 22
4693