Tuesday, October 13, 2015

odoo pycharm config, create apache pwd to access the site; multiple dbs with odoo;install multiple odoo instances on local, db filter, subdomain; odoo back end set up

better not use django for ecommerce
for selling digital stuff, like selling how much storage each insitution needs,
need api, use strip
otherwise, for purchasing
for low volume, both are 3%
######################################################################
pycharm, add the /usr/local/bin env path so that the libs installed such as lessc can be found
Odoo 8 can set up configrable public category tree, paypal is fine
######################################################################
encrypt the apache pwd:then put it in to .htpasswd
############### if set up multiple dbs with odoo ###############
do not install ecommerce, 
otherwise have to use the dbfilter (conf, regex to call the configs in the /etc/host
in etc/host 
have to use the db name as the domain name
do not touch the core: 
openerp addons -> base -> res
pycharm: Edit configuration:
script: /user/jing/Sites/odoo/openerp-server
script paramters: -c openerp-server.conf
env path
add PATH=/usr/local/bin
python interpreter ~/Sites/odoo-env
working dir root dir
######################################################################
https://github.com/odoo/odoo.git
multiple installation 
git clone --depth 1 https://github.com/odoo/odoo.git odoo9
db name is my subdomain
/etc/hosts
127.0.0.1    odoo.od.dev
127.0.0.1    odoo9.od.dev
add the 
db_filter = ^%d$
xmlrpc_port = 9069
proxy not needed, only if behind apache or nginx
into the openerp-server.conf file, 
same command to start the server:
loaded the old odoo database

http://odoo9.od.dev:9069/web/database/manager

delete the db, 

then create a new db called odour

after wards, 

go to the apps backend control panel

search Canada

install Accounting Canada first

######################################################################

cached browsers, clear the cache, then select db first

admin jing apps: ecommerce only after install commerce have a front end site to purchase have home page
Add COD and PO number

######################################################################


not restore the db yet:

create a duplicated db:

Applications/pgAdmin3.app/Contents/SharedSupport/pg_dump --host localhost --port 5432 --username “jing" --no-password  --format custom --verbose --file "/Users/jing/Documents/odoobackup" "odoo"

http://get.enterprisedb.com/docs/Tutorial_All_PP_pgAdmin_Backup_Restore.pdf

No comments:

Post a Comment