I want to modify a section of JS code in Odoo 8 (module point_of_sale). The original code is this one:  function openerp_pos_models(instance, module){     ...     module.Order = Backbone.Model.extend({         ...         addPaymentline: function(cas...
I am trying to include my custom javascript in my module but the js file is not getting loaded.  Below is my code:  js:  openerp.hr_timesheet_extended = function (instance) {      var QWeb = instance.web.qweb,         _t  = instance.web._t,         _...
If you have two widget in a view. And you do something with the first widget and you want to update (call display_field) the second widget. How to have the identifier for the second widget?  For example in the extend definition of a widget:  local.Fi...
I need to run some client-side javascript from a button in a form view in Odoo 8. This button runs a python method which returns this dictionary:  {"type": "ir.actions.client",  "tag": "my_module.do_something",}   do_s...
I'm trying to have a JavaScript event fired on a header button (the workflow button).  This is my js  var _t = instance.web._t, QWeb = instance.web.qweb;      instance.web.FormView.include({          init: function() {             this._super.app...
How can I trigger a javascript function from on_change event?  This is what I need to achieve:   User input in Field_1 > Cursor move focus to Field_3 User input in Field_3 > Cursor move back focus to Field_1   Thanks...
I need to inherit below JS file and override the function show_annoucement_bar in it.  The base code is:   openerp_announcement = function(instance) {     instance.web.WebClient.include({         show_application: function() {             return $.wh...
I would like to change minor visual things based on given Odoo instance role (production, testing, etc.). I don't need to do it through the website - a hard coded variable is what I'm thinking. I currently have a module that contains JavaScri...
hay i want to do something with javascript in odoo v10 and when im searching i found what i need but in version 8 and copy it from v8 to 10 it gives me some error and i dont know how to fix it here is the code similar to what i want    _.each(result,...
I'm trying to get value from python function and assign that value to xml coulmn,  JS function called in xml :    var Users = new openerp.web.Model('res.users');                 var im = new openerp.im_chat.InstantMessaging(self);...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.