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
#!/bin/bash | |
xml_split -v -l 1 ./ir_model_fields_3.xml | |
for name in $(ls | egrep -i 'ir_model_fields_3-*'); do | |
sed -i -e '2i<odoo>\' $name | |
sed -i -e '$a</odoo>\' $name | |
done |
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
to install correct version of wkhtmltopdf for odoo | |
https://github.com/wkhtmltopdf/packaging/issues/114#issuecomment-1118762067 | |
https://github.com/wkhtmltopdf/packaging/files/8632951/wkhtmltox_0.12.5-1.jammy_amd64.zip | |
https://github.com/wkhtmltopdf/packaging/files/8632973/wkhtmltox_0.12.1.4-1.jammy_amd64.zip |
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
Show hidden characters
{ | |
"folders": [ | |
{ | |
"path": ".." | |
}, | |
{ | |
"path": "../../odoo_16" | |
}, | |
{ | |
"path": "../../enterprise_16" |
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
model = env['sale.order'] | |
env.add_to_compute(model._fields['amount_total'], model.search([])) | |
model.recompute() | |
self.env.cr.commit() |
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
find . -name "*.pyc" -exec rm -f {} \; | |
git ls-files --deleted | xargs git add | |
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
sudo apt update && sudo apt upgrade -y | |
sudo apt-get install adduser apt-transport-https build-essential ca-certificates curl \ | |
fonts-font-awesome fonts-inconsolata fonts-roboto-unhinted git gnupg-agent \ | |
gsfonts init-system-helpers libbz2-dev libffi-dev libjpeg-dev libjs-underscore \ | |
libldap2-dev liblzma-dev libncursesw5-dev libpq-dev libreadline-dev libsasl2-dev \ | |
libsqlite3-dev libssl-dev libxml2-dev libxmlsec1-dev libxslt1-dev llvm lsb-base make \ | |
postgresql postgresql-client python-dev software-properties-common tk-dev wget xfonts-75dpi \ | |
xz-utils zlib1g-dev |
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
# used to delete a view that contains a removed field | |
delete from ir_ui_view where position('FIELD_NAME' in arch_db)>0; | |
# in odoo 16 ir_ui_view becomes a jsonb | |
delete from ir_ui_view where arch_db->>'en_US' ilike '%FIELD_NAME%' ; |
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
layout.css.devPixelsPerPx |
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
# /etc/NetworkManager/dnsmasq.d/00-homelab.conf | |
# | |
# This file directs dnsmasq to forward any request to resolve | |
#server=/homelab/172.31.0.1 this is if you want .homelab | |
address=/localhost/127.0.0.1 |
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
netstat -ntlp | |
netstat -nulp | |
# for iprout2 packages | |
sudo ss -tulpn | |
( nmcli dev list || nmcli dev show ) 2>/dev/null | grep DNS | |
nmcli dev show | grep 'IP4.DNS' |
NewerOlder