diff options
Diffstat (limited to 'indoteknik_custom/static/src')
| -rw-r--r-- | indoteknik_custom/static/src/js/delivery_order.js | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/indoteknik_custom/static/src/js/delivery_order.js b/indoteknik_custom/static/src/js/delivery_order.js new file mode 100644 index 00000000..565610ad --- /dev/null +++ b/indoteknik_custom/static/src/js/delivery_order.js @@ -0,0 +1,44 @@ +odoo.define('indoteknik_custom.FieldChar', function (require) { + "use strict"; + + console.log('12345'); + var FieldChar = require('web.basic_fields').FieldChar; + var registry = require('web.field_registry'); + + var FieldCharCustom = FieldChar.extend({ + _onKeyup: function (ev) { + console.log('keyuppp'); + if (ev.which === $.ui.keyCode.ENTER) { + console.log('abc'); + } + this._super.apply(this, arguments); + }, + }); + + registry.add('name', FieldCharCustom); + + return FieldCharCustom; + +// var core = require('web.core'); +// var _t = core._t; +// var FormView = require('web.FormView'); + +// FormView.include({ +// init: function (parent, model, renderer, params) { +// var self = this; +// self._super.apply(self.arguments); +// }, +// onchange_name: function () { +// this._super(); +// console.log('bbbb'); +// if (this.model === 'delivery.order') { +// this.$('#name').on('keyup', function () { +// console.log('aaa') +// }); +// } +// } +// }); +// +// core.action_registry.add('indoteknik_custom.FieldChar', FormView); +// return FormView; +});
\ No newline at end of file |
