Skip to Content
Menu
This question has been flagged
2718 Views

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


Avatar
Discard
Related Posts Replies Views Activity
1
Apr 25
2527
0
Mar 24
682
0
Oct 22
1905
0
Sep 22
1050
1
Jul 22
4671