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