Skip to content

Instantly share code, notes, and snippets.

{
"Django Models":{
"prefix": "django",
"body": "django snippet here"
},
"Basic model":{
"prefix": "New Model (Basic)",
"body": [
"from odoo import models, fields",
"",
{
"New security Template": {
"prefix": "new_security",
"body": [
"<odoo>",
"",
" <record model=\"ir.module.category\" id=\"vs_base_account\">",
" <field name=\"name\">Base User</field>",
" <field name=\"description\">Base User</field>",
" <field name=\"sequence\">112</field>",
@ejabu
ejabu / kampus_siswa.xml
Created January 12, 2019 08:12
XML Action Tree Sequence Ribet
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<data>
<record id="kampus_siswa_action_limited" model="ir.actions.act_window">
<field name="name">Kampus Siswa Limited</field>
<field name="res_model">kampus.siswa</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
</record>

Run python Print-server on Linux

Python 2.7 bukan Python 3

python ./report_dotmatrix/LinuxApp/print_linux.py

or

// Place your key bindings in this file to overwrite the defaults
[
{
"key": "ctrl+shift+d",
"command": "-workbench.view.debug"
},
{
"key": "ctrl+shift+d",
"command": "editor.action.copyLinesDownAction",
[
xlwt 1.3.0 (/usr/local/lib/python3.5/dist-packages),
PyJWT 1.6.4 (/usr/local/lib/python3.5/dist-packages),
num2words 0.5.6 (/usr/local/lib/python3.5/dist-packages),
ipdb 0.11 (/usr/local/lib/python3.5/dist-packages/ipdb-0.11-py3.5.egg),
ipython 6.5.0 (/usr/local/lib/python3.5/dist-packages/ipython-6.5.0-py3.5.egg),
pexpect 4.6.0 (/usr/local/lib/python3.5/dist-packages/pexpect-4.6.0-py3.5.egg),
traitlets 4.3.2 (/usr/local/lib/python3.5/dist-packages/traitlets-4.3.2-py3.5.egg),
simplegeneric 0.8.1 (/usr/local/lib/python3.5/dist-packages/simplegeneric-0.8.1-py3.5.egg),
Pygments 2.2.0 (/usr/local/lib/python3.5/dist-packages/Pygments-2.2.0-py3.5.egg),
<template>
<div class="grid">
<span><strong>Id</strong></span>
<span><strong>Full Name</strong></span>
<span><strong>Country</strong></span>
<span><strong>Created at</strong></span>
<span><strong>Email</strong></span>
<span>0</span>
<span>Aaron Kris</span>
<span>Philippines</span>
@ejabu
ejabu / Keybinding
Created March 26, 2019 14:52
Keybinding Negative diatas
[
{
"key": "ctrl+shift+d",
"command": "-workbench.view.debug"
},
{
"key": "ctrl+shift+alt+down",
"command": "-editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"version": "0.2.0",
"configurations": [
{
"name": "Python: Odoo",
"type": "python",
"request": "launch",
"stopOnEntry": false,
"pythonPath": "${config:python.pythonPath}",
@ejabu
ejabu / learn_factory.dart
Created June 19, 2019 02:04
Factory in Fautter
// Ref : https://theburningmonk.com/2013/09/dart-implementing-the-singleton-pattern-with-factory-constructors/
class CommonClass {
CommonClass() {
print("Init : CommonClass");
}
String namaDev;
String get getNamaDev {