sudo apt update
sudo apt upgrade
This file contains hidden or 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
ii.) Update & Upgrade Ubuntu Packages | |
sudo apt update | |
sudo apt upgrade | |
iii.) Install python dependencies and create new user | |
sudo apt install build-essential wget git python3.11-dev python3.11-venv libfreetype-dev libxml2-dev libzip-dev libsasl2-dev node-less libjpeg-dev zlib1g-dev libpq-dev libxslt1-dev libldap2-dev libtiff5-dev libopenjp2-7-dev libcap-dev | |
iv.) Create new system user for Odoo | |
/usr/sbin/adduser --system --shell /bin/bash --gecos 'Odoo' --group --home /opt/odoo odoo |
This file contains hidden or 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
Way 1. Disable Wayland in GDM3 | |
To begin, you can disable Wayland in the GDM3 (GNOME Display Manager) custom configuration file. | |
Step 1. Open the terminal by pressing Ctrl + Alt + T. | |
Step 2. Type the following command to open the GDM3 configuration file in a text editor with administrative privileges: | |
sudo nano /etc/gdm3/custom.conf | |
Step 3. Locate the [daemon] section in the file and uncomment the line "WaylandEnable=false". |
While generating PDF reports in Odoo on Ubuntu 22.04, you might face issues such as:
- Missing or incomplete headers and footers
- Logos not appearing in reports
- Mixed content rendering errors
This problem often stems from the wkhtmltopdf
version (wkhtmltox_0.12.6-1
) installed on your system, which lacks the required Qt patching to handle these features properly. This version is known to cause compatibility issues on Ubuntu 22.04.
This file contains hidden or 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
# Include the following in the manifest file | |
'assets':{ | |
'web.assets_backend': ['module_name/static/src/css/style.css'] | |
}, |
This file contains hidden or 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 qrcode | |
from PIL import Image | |
# The URL you want the QR code to open | |
url = 'https://el-mojtaba.com/daily-verse' | |
# Create a QR code instance with custom settings | |
qr = qrcode.QRCode( | |
version=1, |