I added new settings for user by inheriting “res.users” model: in calendar view i want to read this field and set scale_type when opening this form here in calendar_model.js file i want to read this setting from current user and also rewrite current user setting if he chooses diferent type of scale here how can i do this? i tried
Tag: odoo
React Native call Odoo API via Axios struggling with CORS
I am using React Native, and trying to call Odoo APIs using Axios. This is how I successfully call authenticate on my local Odoo instance. Now that I got the result from Odoo. I want to call methods and query some records. So, I tried to get some records from DataSet search_read first. Here is what I tried. It gave
Get access to other elements from widget inside form view
Odoo 13. I got two float fields: time_given and timer. I have created a widget for ‘timer’ field. My widget works as real-time clock or some sort of timer. The problem I have encountered is that I want to change the style of ‘time_given’ field based on the following condition: ((time_given – timer) <= 30 sec) i.e less than 30
how to save a data to backend thrhough controller from selecting a dropdown list in the website odoo 12?
Ive been trying to take a user input from the dropdown list and update it to the backend through controller.i will explain my code below, JS XML controller.py What my concern is i dont know how to give the input class to <select> <option> dropdown list and make it to save to the backend through controller when the user click