Exclude an alias from virtualhost proxypass

This is how I was able to achive the desired outcome. Following is the working configuration where ProxyPassMatch ^/myapp ! did the trick and except the (server-address)/myapp, all the requests are being proxying to the other server which is open-erp running at port 8069: <VirtualHost *:80> ServerName test.myserver.com Alias /myapp /var/www/myapp <Directory /var/www/myapp> Options Indexes … Read more

PostgreSQL won’t start: “server.key” has group or world access

I had solved it using .. 1) Enter the relevant directory (use> locate server.key) 2) Back up old server.key link. 3) Copy ssl-cert-snakeoil.key to server.key 4-5) Change its owner & group to postgres 6) Ensure the permissions are 700 or 740 (as requested by error message) Recipe for my Ubuntu 12.04 & postgresql-8.3: sudo cd … Read more

What is Main difference between @api.onchange and @api.depends in Odoo(openerp)?

@api.depends This decorator is specifically used for “fields.function” in odoo. For a “field.function”, you can calculate the value and store it in a field, where it may possible that the calculation depends on some other field(s) of same table or some other table, in that case you can use ‘@api.depends’ to keep a ‘watch’ on … Read more

Which are the available domain operators in Openerp / Odoo?

This gives a overview: List of Domain operators: ! (Not), | (Or), & (And) List of Term operators: ‘=’, ‘!=’, ‘<=’, ‘<‘, ‘>’, ‘>=’, ‘=?’, ‘=like’, ‘=ilike’, ‘like’, ‘not like’, ‘ilike’, ‘not ilike’, ‘in’, ‘not in’, ‘child_of’ Usage: Input records: Record 1: Openerp Record 2: openerp Record 3: Opensource Record 4: opensource Record 5: Open … Read more

Run OpenERP 7 unittests in PyCharm

You can debug using cmd in windows enter with cmd into odoo.exe folder C:\Program Files (x86)\Odoo 8.0-20150719\server and execute this command odoo –log-level=debug or terminal in Linux enter with terminal into odoo.py file (/usr/bin/) and execute this command python odoo.py –log-level=debug tape ctrl+z or ctrl+c to desactivate a log . You will find a file … Read more

No usable temporary directory found

This kind of error occured in two case permission(should be drwxrwxrwt and owened by root) space To check space(disk usage)just run the command on terminal df -h Will list the disk usage on unix and get the output like Filesystem Size Used Avail Use% Mounted on /dev/sda5 28G 15G 12G 58% / If the root(mounted … Read more

dictionary update sequence element #0 has length 3; 2 is required

This error raised up because you trying to update dict object by using a wrong sequence (list or tuple) structure. cash_id.create(cr, uid, lines,context=None) trying to convert lines into dict object: (0, 0, { ‘name’: l.name, ‘date’: l.date, ‘amount’: l.amount, ‘type’: l.type, ‘statement_id’: exp.statement_id.id, ‘account_id’: l.account_id.id, ‘account_analytic_id’: l.analytic_account_id.id, ‘ref’: l.ref, ‘note’: l.note, ‘company_id’: l.company_id.id }) Remove … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)