Skip to content

Instantly share code, notes, and snippets.

---------------------------------------------------------------------------
ServerError Traceback (most recent call last)
<ipython-input-2-9c9816d51836> in <module>
----> 1 env['ir.model'].search_read([])
~\Anaconda3\lib\site-packages\odooly.py in wrapper(self, *params, **kwargs)
1364 def wrapper(self, *params, **kwargs):
1365 """Wrapper for client.execute(%r, %r, *params, **kwargs)."""
-> 1366 return self._execute(attr, *params, **kwargs)
1367 return _memoize(self, attr, wrapper, (self._name, attr))
Error:
Odoo Server Error
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/odoo/tools/safe_eval.py", line 350, in safe_eval
return unsafe_eval(c, globals_dict, locals_dict)
File "", line 6, in <module>
NameError: name 'self' is not defined
During handling of the above exception, another exception occurred:
@tmijail
tmijail / install_script.sh
Last active May 9, 2019 05:44
Personal post install script. run ./install_script.sh then zsh and lastly ./zsh_config.sh
#!/bin/bash
# CONFIG
JULIA_VERSION=1.1
ANACONDA_VERSION=2019.03
CHILI_VERSION=0.5.5
JULIA_DOWNLOAD_URL="https://julialang-s3.julialang.org/bin/linux/x64/$JULIA_VERSION/julia-$JULIA_VERSION.0-linux-x86_64.tar.gz"
ANACONDA_DOWNLOAD_URL=https://repo.anaconda.com/archive/Anaconda3-$ANACONDA_VERSION-Linux-x86_64.sh
ATOM_URL=https://atom.io/download/deb