Skip to content

Instantly share code, notes, and snippets.

View Cotchi666's full-sized avatar
🍀
Growing

Chien Nguyen Cotchi666

🍀
Growing
View GitHub Profile
@3mrdev
3mrdev / component.js
Created June 9, 2022 00:25
Odoo OWL Component Example + Owl Component Inheritance (Patching Owl Components)
odoo.define('my.component', function (require) {
"use strict";
const { Component, useState } = owl;
const { xml } = owl.tags;
const { patch } = require('web.utils');
// import { patch } from "@web/core/utils/patch";
class MyComponent extends Component {
print("hello world! this is my first gist")
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.