http://dictionary.cambridge.org/dictionary/english/post-mortem?q=mortem
https://docs.python.org/2/library/pdb.html#debugger-commands
odoo.py setup_deps #installs odoo system dependencies
odoo.py setup_pg #installs postgres sql & db superuser for unix user
creating a user account for Odoo
linux
apt-get update && apt-get upgrade
apt-get install sudo #make sure sudo is installed
useradd -m -g sudo -s /bin/bash odoo #create an ‘odoo’ user with sudo powers
passwd odoo # ask and set a pwd for the new user
-m create home directory
-g sudo adds it to the shudders list, can run commands as root
-s /bin/bash sets the default shell to bash
whoami
echo $HOME
/Users/Jing
initialize a new odoo db from terminal
postgres super user,
.odoo.py setup_pg
or
sudo createuser —superuser $(whoami)
wile for mac, seems the os admin is by default the super user of postgres,
$createdb v8dev
odoo.py -d v8dev #this will load the demo data, if no,
-- without-demo-data=all
if use VM
- change VM network type from NAT to bridged,
- use NAT, configure port forwarding
$createdb --template=v8dev v8test
create a new db by copying an existing one,make sure do instance is stopped and no connection open on v8dev
template1 is used by default
psql -l
UTF8 defualt
dropdb v8test
set the odoo github repo as upstream,
record in the EHF payable,
on the website, shows, on pdf not showing
everything shows under tax,
while not separated,
session_read
when uninstall the open academy module, the session_read group got removed too
odoo 8
./odoo.py --save --stop-after-init #save config to .openerp-serverrc file
stop after init option, have server stop after it finishes action
run tests/run a module upgrade to check if it installs correctly
Samba: provides linux file sharing services compatible with windows os,
sudo apt-get install samba samba-common-bin
need to register user for file share access
sudo smbpasswd -a odoo
sudo vi /etc/samba/smb.conf
to enable write access
read only = no
sudo /etc/init.d/smbd restart
on windows,
Map network drive
\\192.168.0.2\odoo
(\odoo needed sometimes if sys auto prepended something)
can add the customized location for modules via
--add ons-path=“../department, ./addons”
database mapping mechanism is the ORM
xml -> web client framework -> data-aware html views
************************* magento ******************************
don't save the session it in the db, local.xml it will slow down magentout
PHP Fatal error: Call to a member function insert() on a non-object in /Source/zcoder/magento/app/code/core/Mage/Core/Model/Resource/Resource.php on line 133, referer:
*************************************** db ***************************************************************
The database combines two data structures to meet the challenge: a doubly linked list and a search tree. These two structures explain most of the database’s performance characteristics.
doubly: twice as much, or very much more:
Databases use doubly linked lists to connect the so-called index leaf nodes. Each leaf node is stored in a database block or page; that is, the database’s smallest storage unit. All index blocks are of the same size—typically a few kilobytes.
reference: http://use-the-index-luke.com/sql/anatomy
http://dictionary.cambridge.org/dictionary/english/doubly?q=doubly+
./odoo.py —xmlrpc-port=8070