Skip to Content
Menu
This question has been flagged
2502 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
0
Mar 24
275
0
Oct 22
1515
0
Sep 22
663
1
Jul 22
4087
0
Jun 22
836