Contributors mailing list archives
contributors@odoo-community.org
Browse archives
Re: Example of calling JavaScript from Odoo client and filling back in some field?
Re: Example of calling JavaScript from Odoo client and filling back in some field?
Re: Example of calling JavaScript from Odoo client and filling back in some field?
by
Therp, Tom Blauwendraat
Ah ok, in that example it does call an external device on the
local network via HTTP, a POSbox; thought you needed an example
for that part. For the JS part of inserting it into the form, I
don't know
On 9/27/24 10:42, Radovan Skolnik
wrote:
Not really - at least I cannot see it there. The example shows the reverse flow: from JS to Python.
What I need to do is:
*) have a form in Odoo (it's pos.payment.method) and my field on it (let's call it my_field)
*) put a control (button or something similar) on it
*) when I click on the button, JavaScript code is called
*) the result of the JS invocation is put into my_field
Reference
-
Example of calling JavaScript from Odoo client and filling back in some field?
byData Dance s.r.o., Radovan Skolnik-
Re: Example of calling JavaScript from Odoo client and filling back in some field?
byData Dance s.r.o., Radovan Skolnik -
Re: Example of calling JavaScript from Odoo client and filling back in some field?
byLambda IS DOOEL, Kiril Vangelovski -
Re: Example of calling JavaScript from Odoo client and filling back in some field?
byTherp, Tom Blauwendraat -
Re: Example of calling JavaScript from Odoo client and filling back in some field?
byData Dance s.r.o., Radovan Skolnik -
Re: Example of calling JavaScript from Odoo client and filling back in some field?
bysagars209 -
Re: Example of calling JavaScript from Odoo client and filling back in some field?
byTherp, Tom Blauwendraat
-