Skip to content

Instantly share code, notes, and snippets.

View Danielericking's full-sized avatar
🏠
Working from home

Daniel Danielericking

🏠
Working from home
View GitHub Profile
@Danielericking
Danielericking / odoo.conf
Created September 26, 2020 22:51 — forked from ryanc-me/odoo.conf
Sample Odoo/Nginx Config (with dbfilter_from_header support)
# Author: Ryan Cole
# Website: https://ryanc.me
# GitHub: https://github.com/MGinshe
# Usage:
# Place this file in /etc/nginx/sites-enabled/
# Make sure you edit the DOMAIN_HERE and SSL_CERTIFICATE, and DB_FILTER sections
#
# Note: This config file is designed to be used with the Odoo dbfilter_from_header module
# https://apps.openerp.com/apps/modules/9.0/dbfilter_from_header/
@Danielericking
Danielericking / odoo-nginx.conf
Created September 26, 2020 22:47 — forked from mga-odoo/odoo-nginx.conf
Odoo Proxy Server Configuration on Nginx
upstream odoo-server {
server 0.0.0.0:8069;
}
upstream odoo-server-im {
server 0.0.0.0:8072 weight=1 fail_timeout=0;
}
server {
@Danielericking
Danielericking / Example 1
Created September 26, 2020 22:44 — forked from alexpos/Example 1
Several examples how to use python-wordpress-xmlrpc to post to wordpress
from wordpress_xmlrpc import Client, WordPressPost
from wordpress_xmlrpc.methods.posts import NewPost
#authenticate
wp_url = "http://192.168.50.100:8051/xmlrpc.php"
wp_username = "admin"
wp_password = "12"
wp = Client(wp_url, wp_username, wp_password)
#post and activate new post
@Danielericking
Danielericking / odoo_version.md
Created September 26, 2020 21:31 — forked from mao-odoo/odoo_versions.md
Odoo version timeline - saas vs main version
Main Version SaaS Version Release Date End of life Bug fix
7.0 saas~1
saas~2-5
8.0 September 2014 October 2017 NO
saas~6 February 2014 October 2017 NO
9.0 October 2015 October 2018 NO
saas~7-10 -- -- --
saas~11 May 2016 October 2018 NO
saas~12-13 -- -- --
@Danielericking
Danielericking / emojis.md
Created September 26, 2020 21:24 — forked from andrepg/emojis.md
Markdown GitHub Emojis

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
<record forcecreate="True" id="product_purchase_deposit_expense_hk" model="ir.property">
<field name="name">property_account_expense_id</field>
<field name="fields_id" search="[('model','=','product.template'),('name','=','property_account_expense_id')]"/>
<field name="res_id" eval="'product.template,'+str(ref('product_purchase_deposit'))"/> <!-- External ID -->
<field name="value" model="account.account" search="[('code','=','2300'),('company_id','=',ref('hbx_data.company_hbx_hk'))]" /> <!-- Odoo domain -->
<field name="company_id" ref="hbx_data.company_hbx_hk"/> <!-- External ID -->
</record>
@Danielericking
Danielericking / create_sequence_number_in_odoo.xml
Created September 16, 2020 19:51 — forked from sehrishnaz/create_sequence_number_in_odoo.xml
Generate Sequence Numbesr in Odoo | What is Sequence Number in Odoo
<record id="unique_sequence_id" model="ir.sequence">
<field name="name">Sequence Name Goes Here</field>
<field name="code">your.sequence.code</field>
<field name="active">TRUE</field>
<field name="prefix">OR</field>
<field name="padding">5</field>
<field name="number_next">1</field>
<field name="number_increment">1</field>
</record>
from . import models
@Danielericking
Danielericking / Installing Odoo on AWS
Created September 16, 2020 19:30 — forked from bjsion/Installing Odoo on AWS
Installing Odoo ERP on AWS using RDS and EC2
# Installing Odoo on AWS
These are the steps I ran to get Odoo up and running on AWS using the free tiers (for now).
## Setup servers
### Create DB
Create an Postgres DB on Amazon RDS:
https://us-east-2.console.aws.amazon.com/rds/home?region=us-east-2#launch-dbinstance:ct=dbinstances:
### Create Server
@Danielericking
Danielericking / odoo_calculate_workers.sh
Created September 16, 2020 19:23
Analyzes the characteristics of the server and helps calculate the number of workers and memory for each
#!/bin/bash
# CONST 1GB
CONST_1GB="1024*1024*1024"
# VARIABLE WORKERS
CMD_W=0