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
| i.) Update & Upgrade Ubuntu Packages | |
| sudo apt update | |
| sudo apt upgrade | |
| sudo apt install software-properties-common -y | |
| sudo add-apt-repository ppa:deadsnakes/ppa | |
| sudo apt update | |
| sudo apt install python3.11 python3.11-dev python3.11-venv | |
| ii.) Install python dependencies and create new user |
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, |