Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2720 Ansichten

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
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
1
Apr. 25
2543
0
März 24
684
0
Okt. 22
1928
0
Sept. 22
1055
1
Juli 22
4684