Skip to content

Instantly share code, notes, and snippets.

#https://www.odoo.com/documentation/11.0/howtos/backend.html
#odoo-bin scaffold <module name> <where to put it> eg odoo-bin scaffold openacademy addons
#python odoo-bin scaffold tool addons #{in cmd, put new tool folder in folder addons}
# ./odoo-bin scaffold module_name /odoo/odoo-server/addons/
#./odoo-bin scaffold <module_name> <destination path where you want to create>
python odoo-bin scaffold tool addons
https://hub.packtpub.com/building-your-first-odoo-application/
_name value is what will be used as an identifier for other odoo modules.
@inspiretk
inspiretk / odoo 12 Tips Tricks
Created January 30, 2019 05:02
odoo 12 Tips Tricks
### Create a new Building Block in website
https://www.odoo.yenthevg.com/creating-using-building-blocks-odoo/
https://github.com/Yenthe666/Odoo_Samples/tree/11.0/website_snippet_demo
###
Follow scripts to install odoo 11 on Ubuntu 18.04
Nginx setup for redirect
SSL setup with Lets Encrypt
#!/bin/bash
# This script is to setup 2 domains on same server with 1 odoo install
# It will have lets encrypt ssl, www to non www redirect, odoo port 8069 to port 80
# Make sure both domains point to your server ip
# go to your odoo database domain1.com:8069/web/database/selector
# create database domain1_com
# go to your domain2 and do the same eg domain2.com.au:8069/web/database/selector
# create another database domain2_com_au
# Make sure you make a STRONG PASSWORD for Master Password for your databases
# In below script, CHANGE to your domain name all lowercase eg DOMAIN1=YourDomainName.com and DOMAIN2
Go to https://www.jetbrains.com/pycharm/ and download your pycharm
Install pycharm
Go here for how to do your settings: pycharm odoo template coding https://www.youtube.com/watch?v=vytzDo33qdM https://github.com/mohamedmagdy/odoo-pycharm-templates
Download settings.jar https://github.com/mohamedmagdy/odoo-pycharm-templates
Open pycharm
File | Import Settings... > find the settings file > Ok
File | Invalidate Chaches / Restart... > Just Restart
# create database based on yoour domain eg domain is thuani.com make database name thuani_com
# if domain is thuani.com.au make database name thuani_com_au
# then follow below steps
nano /etc/odoo.conf
# find dbilfter, and put ^%h$ in it.
dbfilter = ^%h$
# restart your odoo. eg sudo service odoo-server restart
# ! / usr / bin / env python
# - * - coding: utf-8 - * -
import sys
import os
print('################################################################################################ #############')
print('# Inheritance is an application to generate Module for Odoo # ')
print('# www.falconsolutions.cl # ')
print(' # Author: Marlon Falcon Herandez # ')
print(' # mail: mfalcon@falconsolutions.cl # ')
print(' ################################################################################################ ############# ')
https://docs.bitnami.com/1and1/apps/odoo/
@inspiretk
inspiretk / List of software with links
Last active August 3, 2018 07:14
List of software with links