Skip to content

Tag: javascript

Translating Python loop to Javascript [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 29 days ago. Improve this question How can I yield the same output in Javascript, given this Python example? I want to loop ove…

fields_view_get does not exist in Odoo 16

I was testing the modules of Odoo 15 that I developed in Odoo 16, I was using a lot of the method fields_views_get to have some behaviors to inject domain and context, before to render the component, but currently I can not find this method. Someone here knows what will be the alternative to achieve some beha…

Inserting values into JS scripts using python

I am parsing JS files stored in a directory to fetch out the values inside tags. Upon finding relevant values in the tags using regex, I want to move those values under a new section called controls. I have been able to get the required values in the controls variable using the script below: I am not able to …

Create Array from Model Data in Django Template in

I am trying to use JQuery date picker and I want to make use of the beforeShowDay method in order to block out dates in the date picker. I have been able to get the widget to work and if I define an array, the beforeShowDay method works flawlessly. But my issue is passing the data from my Django model