Skip to main content

Posts

Fun CSS/JS : Font Typewriter Animation

Here is fun code to add typewriter animation to your words. Hope you guys having fun.
Recent posts

Odoo 12 POS Receipt issue

Hello Guys, in this post i just wanna share issue on odoo 12 POS receipt and the fix. last time i check this issue still occur (around january 2019). and i suppose my colleague already report this issue. To reproduce issue Open any chat and leave it open then open POS session Do normal POS order and print the receipt. Odoo bot will include in the receipt For offline mode there is also bug in the POS receipt To solve issue I notice in the base code there is attempt to solve the issue but doesn’t do any effect since it is misplaced (css code → for class “ o_thread_window ” on mail module not loaded on POS interface) so need to add similar code in POS asset Add similar css code for class o_thread_window , . o_notification_manager , . o_dial and load it on POS asset

Odoo Javascript Debugging

When it comes to programming, we can all agree that out code is rarely work on a first try. Because of the sheer virtue of fact that, even if you can conceptualize a problem and reduce it to it’s base states, to fully envision it into it’s most granular detail in terms of hundreds of lines of code - Is just not realistic. Thats why i can say that debugging is crucial part of programming. Here few tips to do javascript debugging in odoo using google chrome developer tools. some points also applicable on debugging general website not just odoo. Odoo Developer Mode (with assets) When it comes to javascript debugging in odoo, we should enable ‘asset debugging’. Trust me it will saves your ass a lot of time. Odoo internally use assets like CSS and JavaScript. In normal mode this asset will combined to a file. So debug with assets will prevent asset to be merged to one file and display actual CSS and JavaScript files on chrome dev tools. Of course this mode will reduce perform

Install odoo 12 : Linux/Ubuntu/Debian

clone/download odoo 12 community from odoo github: https://github.com/odoo/odoo (optional) clone odoo 12 enterprise addons from github: https://github.com/odoo/enterprise move odoo 12 and enterprise addons to "System Disk" so we have this directory: Directory path would be /odoo12 Download this install script and execute/modify to adjust folder position (if you plan to store odoo in different directory than mine) https://github.com/akhmadkresna/odoo12-_install_script.git # Adjust the script to match your environment sudo nano odoo-install.sh # Adjust permission sudo chmod +x odoo-install.sh # Execute the script to install Odoo: ./odoo-install install python requirement  pip3 install libsass THATS IT !!!

Perfecto Ubuntu GTK and Gnome-Shell Theme

Hello fellow bugs creator, this time i will share my ubuntu themes tweak/interface. After research, experiment, pain and desperation finally i found a formula to make my ubuntu look so pleasing in the eyes. i mean just look at this. yes i know so stunning right? no not jessica barden (she is also stunning in  this series ). Without further due lets type some magical world. btw i use ubuntu 18.04 1. Tweak Tool first we need to install g-nome tweak tool so we can activate custom theme. $ sudo apt install gnome-tweak-tool 2. Themes I use theme called McOS-themes that you can download from this link . After download the theme, extract it and go to home/.themes directory. If .themes folder didnt exist you can manually create it. Then your new theme should be appear in gnome tweak tool. 3. Gnome Shell Theme make sure you already enable "user-theme" gnome extension. well if you have no idea what i am talking about please do me a favor educate yourself from

Odoo: Create Web Page/Controller

This simple tutorial will give you an idea how data flow/concept of odoo route to render xml template(interface) 1. simply create the interface (xml) 2. define new route via controller (python) Here we go. now everytime "/custom/url" triggered, it will cexecute the python code in the controller and render desired xml template.

Odoo: Get File Name of Uploaded Binary File

When uploading a file binary on odoo sometimeS we need to store the original file name for informative purpose. So thats why this tutorial will come in handy. well that was ridiculously fast !!! Things that need to take into account is make sure you add those xml on your formview because most of uploading file operation happen in formview. And then ypu can use the field file name in treeview.