summaryrefslogtreecommitdiff
path: root/indoteknik_custom/static/src
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2022-10-11 15:58:58 +0700
committerIT Fixcomart <it@fixcomart.co.id>2022-10-11 15:58:58 +0700
commitdae117ce9bb219557c9a4fc995e93bc4a88ea03f (patch)
tree62f51e1c8290651606759fc8d31a2662e7878590 /indoteknik_custom/static/src
parentfd6af0fbd83042c8471c3c58ff459f52bed45938 (diff)
init commit
Diffstat (limited to 'indoteknik_custom/static/src')
-rw-r--r--indoteknik_custom/static/src/js/delivery_order.js44
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