Skip to main content

Posts

Showing posts from July, 2018

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.

Odoo: Create Sequence or Running Number

Odoo sequence ussually needed for automatically generated and suppose to be unique value to identified certain object or in this context is document. For example company need unique document number for every Sales document they have. When we need to create NEW sequence in odoo ? When we have new object and this object suppose to have unique and auto generated number. in this example we have new object called 'sale.doc' will be used to store any document related to SO such as contract, delivery doc etc. 1. create xml code to declare the sequence 2. call the sequence and set it on certain char field ('name) that belongs to the same object

Odoo: Colorize Treeview

In odoo treeview we can colorize record lines depend on specific field. In this example i make each line green and red color based on field 'state' which is selection field ('confirm','reject'). this is also work in treeview of One2many. Simple isn't ? Questions comment down below.