Paket untuk mendapatkan attachment gambar di Odoo
Project description
get_attachment_image
get_attachment_image adalah paket Python yang memungkinkan Anda untuk mendapatkan gambar attachment yang terkait dengan model tertentu di Odoo. Paket ini memudahkan integrasi dengan sistem Odoo untuk mengambil file gambar yang terkait dengan entitas tertentu.
Fitur
- Mengambil gambar attachment berdasarkan
res_modeldanres_id. - Menggunakan query SQL untuk mengekstrak gambar attachment dari Odoo.
Instalasi
Untuk menginstal paket ini, gunakan pip:
pip install get-attachment-image
Penggunaan
- Mengimpor fungsi dari paket get_attachment_image
from get_attachment_image import get_attachment_image
- Deklrasi Variabel
model = 'nama.model'
res_id = 123 # ID objek terkait
name = 'nama field'
- Menggunakan fungsi untuk mendapatkan ID gambar lampiran
image_id = get_attachment_image(model, res_id, name)
if image_id:
print(f"ID gambar: {image_id}")
else:
print("Gambar tidak ditemukan")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file get_attachment_image-0.1.10.tar.gz.
File metadata
- Download URL: get_attachment_image-0.1.10.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd7bb74435e29a616fd635381d5549bd980d4f80a536647733bed78150f2825a
|
|
| MD5 |
8b1c05846ab6828c235a76be5332e404
|
|
| BLAKE2b-256 |
00e5e5c095219d063883c5d874a425e35fd854be634a422368f6f0dc03e10a66
|
File details
Details for the file get_attachment_image-0.1.10-py3-none-any.whl.
File metadata
- Download URL: get_attachment_image-0.1.10-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c2eb2dde13341e80bea46df7b9fa93620f0ee1b134337b55bb588a08eaa9a82
|
|
| MD5 |
beb2f76944689f5e057d5b3d5a79d4e0
|
|
| BLAKE2b-256 |
5d0b4bf82239103e8df5365c62a9be831946bf9ed657e442c56d64bdddaad630
|