How to Render Dynamic Data using RPC call in Odoo 17 POS
CelineGeorge1
769 views
20 slides
Mar 13, 2025
Slide 1 of 20
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
About This Presentation
In this slide we will discuss how to render dynamic data using RPC call in Odoo 17 POS. We can render dynamic data within the Point of Sale (POS) system using Remote Procedure Call (RPC) calls.
Size: 1.97 MB
Language: en
Added: Mar 13, 2025
Slides: 20 pages
Slide Content
How to Render Dynamic Data using RPC call in Odoo 17 POS Enterprise
Introduction Enterpr ise In this slide we will discuss how to render dynamic data using RPC call in Odoo 17 POS. We can render dynamic data within the Point of Sale (POS) system using Remote Procedure Call (RPC) calls. RPC calls enable seamless communication between the frontend and backend, allowing us to display real-time and dynamic information to enhance the user experience.
Enterprise In the POS module, we can add a button and when clicked on that, a popup should be opened which include the dynamic data using the rpc call.
Enterprise For that we can create a module as the structure shown below.
Enterprise For creating a popup we can use the following code in the js file.
Enterprise We can create the template for the popup in the xml file like below.
Enterprise
Enterprise We can import all the required one for adding the control button and we can also import the CustomAlertPopup we created now.
Enterprise We can add a button in the POS Component and we can define a function to show dynamic content using the rpc call on clicking on that button. For that we require a controller also.
Enterprise After fetching the values for active languages, we can push the values to the list.
Enterprise Finally, we need to add this component to the product screen like below.
Enterprise After that, in the xml we can define the template for this button.
Enterprise Before finishing, we need to define a controller for the route we used in the rpc call.
Enterprise Finally we need to add this js and xml files in the manifest file of the module.
Enterprise If we go to the languages from translations in general settings, we can see the active languages.
Enterprise Then in the pos we can open a session and click on the Custom Popup button.
Enterprise This will open a popup listing the active languages.
Enterprise We can go back to languages again and enable more languages.
Enterprise After that in the POS session, if we click on the Custom Popup button again, we can see the languages we enabled now are added to the popup. This is how we render dynamic data using rpc call in odoo 17 POS.
For More Info. Check our company website for related blogs and Odoo book. Check our YouTube channel for functional and technical videos in Odoo. Enterprise www.cybrosys.com