Skip to content

Commit

Permalink
[IMP] hotel_reservation:improved code
Browse files Browse the repository at this point in the history
  • Loading branch information
pavan-serpentcs committed Jul 10, 2024
1 parent 27339c6 commit b2ad421
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion hotel_reservation/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"web.assets_backend": [
"hotel_reservation/static/src/css/room_summary.css",
"hotel_reservation/static/src/xml/hotel_room_summary.xml",
"hotel_reservation/static/src/js/hotel_room_summary.js",
"hotel_reservation/static/src/js/hotel_room_summary.esm.js",
],
},
"external_dependencies": {"python": ["dateutil"]},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
/* @odoo-module */

import {TextField} from "@web/views/fields/text/text_field";
import {registry} from "@web/core/registry";
import {useService} from "@web/core/utils/hooks";
import {useState} from "@odoo/owl";
var FormView = require("web.FormView");
var FormView = require("web.FormView"); // eslint-disable-line no-undef
var py = window.py;
const {onWillUpdateProps} = owl;

Expand All @@ -27,7 +26,7 @@ export class MyWidget extends TextField {
});
}
resize() {
return this; //overide the resize
return this;
}
async load_form(room_id, date) {
this.actionService.doAction({
Expand Down

0 comments on commit b2ad421

Please sign in to comment.