Skip to Content

Contributors

Re: Example of calling JavaScript from Odoo client and filling back in some field?

Does this provide some kind of blueprint?

https://github.com/OCA/pos/blob/16.0/pos_payment_terminal/static/src/js/payment_terminal.js#L106

On 9/27/24 10:17, Radovan Skolnik wrote:

Hello,


I am looking for an example on how to call JavaScript from Odoo client and feeding the result back to some field(s) on the form. There is half of it (calling JavaScript) for example in purchase/static/src/toaster_button/toaster_button_widget.js but it lacks the other half.


The idea here is I need to query a PoS terminal for configuration that's residing on the local network. The configuration would be later used in PoS to communicate with the terminal.


Thank you. Best regards


    Radovan Skolnik

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe


by Tom Blauwendraat - 10:30 - 27 Sep 2024

Reference

  • Example of calling JavaScript from Odoo client and filling back in some field?

    Hello,


    I am looking for an example on how to call JavaScript from Odoo client and feeding the result back to some field(s) on the form. There is half of it (calling JavaScript) for example in purchase/static/src/toaster_button/toaster_button_widget.js but it lacks the other half.


    The idea here is I need to query a PoS terminal for configuration that's residing on the local network. The configuration would be later used in PoS to communicate with the terminal.


    Thank you. Best regards


        Radovan Skolnik


    by Radovan Skolnik - 10:16 - 27 Sep 2024