| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Contacts (contacts)
• Inventory (stock) • Invoicing (account) • Sales (sale_management) • Discuss (mail) |
| Community Apps Dependencies | Show |
| Lines of code | 6549 |
| Technical Name |
rasard_pttavm |
| License | OPL-1 |
| Website | https://rasard.com |
| Versions | 18.0 19.0 |
Rasard PttAVM Marketplace Integration
Odoo 18 ile PttAVM arasında iki yönlü, olgun bir köprü: siparişleri içe aktar, ürünlerini asenkron yayınla, stok ve fiyatı otomatik senkron tut, kargo barkodunu PttAVM kargo servisinden oluştur. İki ayrı REST domaini, async trackingId takibi, asenkron kuyruk ve ayrı bir PttAVM menüsüyle.
Genel Bakış
Modül, olgun bir entegrasyon mimarisi sunar: ayrı bir
pttavm.backend yapılandırma modeli, merkezi bir
PttavmRequest HTTP istemcisi (her istekte timeout=30 + rate limiter),
queue_job ile asenkron işleyiş ve Satış altında bağımsız bir PttAVM menüsü.
PttAVM iki ayrı REST servisi kullanır: katalog/ürün/sipariş (integration-api.pttavm.com, Api-Key + Access-Token) ve kargo (shipment.pttavm.com, Basic Auth). Stok kaynağı satılabilir stok (free_qty), fiyat kaynağı backend’de seçtiğin PttAVM Satış Fiyat Listesi’dir. Ürün tekil anahtarı barcode (= Odoo default_code)’tur.
Yetenekler
Katalog servisi Api-Key + Access-Token (her istekte yeni X-Correlation-Id), kargo servisi Basic Auth + Integration-Key kullanır. Tek istemci iki domaini ayrı yönetir.
Odoo ürünleri kategori ve özellikleriyle POST /products/upsert ile gönderilir; PttAVM bir trackingId döner. Upsert hem ekleme hem güncellemedir. Her barkodlu varyant ayrı bir item olur.
Upsert ve stok/fiyat asenkrontur. Cron tracking-result/{trackingId} ucunu sorgular; statü Waiting → InProgress → Completed olduğunda sonuç (ve failureReasons) işlenir.
POST /products/stock-prices ucuna saatlik cron ile stok (free_qty) ve fiyat gönderilir. Gövde JSON dizisidir; barkod bazında tekilleştirilir ve 5 dk guard uygulanır.
Sevkiyat onaylanınca create-barcode → tracking_id → barcode-status polling akışı çalışır; dönen barkod sale.order’a yazılır, get-barcode-tag etiketi chatter’a eklenir.
PttAVM siparişleri orders/search (max 40 gün) ile sale.order olarak çekilir; satır anahtarı lineItemId, müşteri otomatik eşlenir, isteğe bağlı otomatik onaylanır. Türkçe durum enum’u işlenir.
PttAVM kategori ağacı (category-tree, nested) ve yaprak kategori özellikleri Odoo’da önbelleğe alınır; yayında doğru categoryId / attributes seçilir. (Genel pazaryeri olduğu için marka kataloğu yoktur.)
PttAVM görselleri public URL’den çeker. Ürün şablonunun image_1920’i ve ek medya görselleri için /web/image/... URL’leri otomatik üretilir.
Tüm ağır işler queue_job root.pttavm kanalında koşar; Satış altında bağımsız PttAVM menüsü ve kullanıcı/yönetici güvenlik grupları.
Nasıl Çalışır?
Katalog Api-Key + Access-Token ve ayrı kargo kullanıcı/şifresini gir; Bağlantıyı Test Et ile doğrula.
Kategorileri Güncelle; yayınlayacağın yaprak kategoriler için Özellikleri Çek.
Bir pttavm.product kaydı oluştur, kategori/özellik/KDV/desi ve görsel kaynağını seç, Yayınla de.
Cron’lar siparişleri çeker, stok/fiyatı senkron tutar ve trackingId sonuçlarını sorgular. Durum: Taslak → Gönderildi → Yayında.
Asenkron işler root.pttavm queue_job kanalında koşar; runner’ın aktif olduğundan emin ol.
Modeller & Menüler
pttavm.backend— 2 auth, yapılandırma, cronpttavm.product— yayın bağlamasıpttavm.order— sipariş + kargo barkodupttavm.category— kategori + özellik önbelleğipttavm.batch— trackingId takibi
- Siparişler
- Ürünler (Paylaş)
- Kategoriler
- Takip İstekleri
- Yapılandırma › Backendler
Rasard · OPL-1 · Odoo 18 · PttAVM Integration — Sorularınız için onur@rasard.com
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Contacts (contacts)
• Inventory (stock) • Invoicing (account) • Sales (sale_management) • Discuss (mail) |
| Community Apps Dependencies | Show |
| Lines of code | 6549 |
| Technical Name |
rasard_pttavm |
| License | OPL-1 |
| Website | https://rasard.com |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module