- Change
__openerp__.py
addon name field - Change
README.rst
file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sleep 5; xdotool type "001122334455" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Uncomment the next line if you have installed wkhtmltopdf | |
# sudo apt remove wkhtmltopdf | |
cd ~ | |
# Select an appropriate link for your system (32 or 64 bit) from the page https://wkhtmltopdf.org/downloads.html and past to the next line | |
wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz | |
tar xvf wkhtmltox*.tar.xz | |
sudo mv wkhtmltox/bin/wkhtmlto* /usr/bin | |
sudo apt-get install -y openssl build-essential libssl-dev libxrender-dev git-core libx11-dev libxext-dev libfontconfig1-dev libfreetype6-dev fontconfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python3 /pd/odoo13ee/odoo-bin shell -d database_name | |
self.env['ir.module.module'].search([('name', '=', 'module_name')]).button_immediate_uninstall() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Trick to bind to record created with UI --> | |
<record id="amz_warehouse_to_fba_ext_id" model="ir.model.data"> | |
<field name="res_id">10</field> | |
<field name="model">stock.picking.type</field> | |
<field name="module">sale_store_amazon</field> | |
<field name="name">amz_warehouse_to_fba</field> | |
<field name="noupdate">False</field> | |
</record> | |
<record id="amz_warehouse_to_fba" model="stock.picking.type"> | |
<field name="name">Ama A</field> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import xmlrpclib | |
from datetime import datetime | |
# url = "http://localhost:8069" | |
# db = "RAJO" | |
# username = 'a' | |
# password = 'a' | |
url = "https://erp.atlantis-kw.com" | |
db = "RAJO_TEST" | |
username = 'api' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tint2 tray volume control: https://packages.debian.org/search?keywords=volumeicon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get install libxml2-dev libxslt-dev | |
sudo apt-get install libsasl2-dev python-dev libldap2-dev libssl-dev | |
pip install --no-binary :all: psycopg2 | |
pytopdf | |
install equivs to create fake packages and python-pipto install package from Python repository | |
run equivs-control python-pypdf, this will create and populate the file python-pypdf | |
edit the file like below (dot and space under "Description" are mandatory) : |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
On your remote server, run: pip install cython pydevd | |
IMPORTANT: Make sure that your computer is visible to server's IP by pinging your computer's IP | |
AND make port forwarding if necessary | |
Create debug folder localy using same path as on remote server. Necessary for correct break points work. | |
Connect remote content for debug: | |
sshfs bar:/srv/odoo /srv/odoo/ | |
Use this path for mapping. | |
On your computer, configure a Python Remote Debug in run configurations. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BaseModelExtend(models.AbstractModel): | |
_name = 'basemodel.extend' | |
models.BaseModel._navigation = 'id' | |
def _register_hook(self): | |
@api.multi | |
def _read_group_process_groupby(self, gb, query): | |
split = gb.split(':') | |
field_type = self._fields[split[0]].type | |
gb_function = split[1] if len(split) == 2 else None |