Skip to main content

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_model dan res_id.
  • Menggunakan query SQL untuk mengekstrak gambar attachment dari Odoo.

Instalasi

Untuk menginstal paket ini, gunakan pip:

pip install get-attachment-image

Penggunaan

  1. Mengimpor fungsi dari paket get_attachment_image
    from get_attachment_image import get_attachment_image
  1. Deklrasi Variabel
    model = 'nama.model'
    res_id = 123  # ID objek terkait
    name = 'nama field'
  1. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

get_attachment_image-0.1.10.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

get_attachment_image-0.1.10-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

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

Hashes for get_attachment_image-0.1.10.tar.gz
Algorithm Hash digest
SHA256 bd7bb74435e29a616fd635381d5549bd980d4f80a536647733bed78150f2825a
MD5 8b1c05846ab6828c235a76be5332e404
BLAKE2b-256 00e5e5c095219d063883c5d874a425e35fd854be634a422368f6f0dc03e10a66

See more details on using hashes here.

File details

Details for the file get_attachment_image-0.1.10-py3-none-any.whl.

File metadata

File hashes

Hashes for get_attachment_image-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 1c2eb2dde13341e80bea46df7b9fa93620f0ee1b134337b55bb588a08eaa9a82
MD5 beb2f76944689f5e057d5b3d5a79d4e0
BLAKE2b-256 5d0b4bf82239103e8df5365c62a9be831946bf9ed657e442c56d64bdddaad630

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page