İçereği Atla
Odoo Menü
  • Portal
  • Ücretsiz deneyin
  • Uygulamalar
    Finans
    • Muhasebe
    • Faturalama
    • Masraf Yönetimi
    • Elektronik Çizelge (BI)
    • Belgeler
    • İmza
    Satış
    • Müşteri İlişkileri Yönetimi (CRM)
    • Satış
    • Satış Noktası Mağaza
    • Satış Noktası Restoran
    • Abonelikler
    • Kiralama
    Web Sitesi
    • Web Sitesi Oluşturucu
    • eTicaret
    • Blog
    • Forum
    • Canlı Sohbet
    • eÖğrenme
    Tedarik Zinciri
    • Envanter
    • Üretim
    • Ürün Yaşam Döngüsü Yönetimi
    • Satın Alma
    • Bakım
    • Kalite
    İnsan Kaynakları
    • Çalışanlar
    • İşe Alım
    • İzin
    • Değerlendirme
    • Referans
    • Filo Yönetimi
    Pazarlama
    • Sosyal Medyada Pazarlama
    • E-posta ile Pazarlama
    • SMS ile Pazarlama
    • Etkinlikler
    • Pazarlama Otomasyonu
    • Anket
    Hizmetler
    • Proje Yönetimi
    • Çalışma Çizelgeleri
    • Saha Hizmeti
    • Yardım Masası
    • Planlama
    • Randevular
    Verimlilik
    • Sohbet
    • Onay
    • Nesnelerin İnterneti
    • VoIP
    • Bilgi Bankası
    • WhatsApp
    Üçüncü taraf uygulamalar Odoo Stüdyo Odoo Bulut Platformu
  • Sektörler
    Perakende satış
    • Kitapçı
    • Giyim Mağazası
    • Mobilya Mağazası
    • Gıda Marketi
    • Hırdavat Dükkanı
    • Oyuncak Dükkanı
    Gıda ve Konaklama
    • Bar ve Pub
    • Restoran
    • Fast Food Restoranı
    • Konuk Evi
    • İçecek Distribütörü
    • Otel
    Gayrimenkul
    • Emlak Acentesi
    • Mimarlık Firması
    • İnşaat
    • Emlak Yönetimi
    • Bahçe Tasarımı
    • Mülk Sahipleri Derneği
    Uzmanlık
    • Muhasebe Firması
    • Odoo Partner
    • Pazarlama Ajansı
    • Hukuk Firması
    • Yetenek Kazanımı
    • Denetim ve Belgelendirme
    Üretim
    • Tekstil
    • Metal
    • Mobilyalar
    • Gıda
    • Bira fabrikası
    • Kurumsal Hediye
    Sağlık ve Spor
    • Spor Kulübü
    • Optik Mağazası
    • Fitness Merkezi
    • Sağlıklı Yaşam Merkezi
    • Eczane
    • Kuaför Salonu
    Ticaret
    • Tamirci
    • BT Donanım & Destek
    • Güneş Enerjisi Sistemleri
    • Ayakkabı İmalatçısı
    • Temizlik Hizmetleri
    • HVAC Hizmetleri
    Diğerleri
    • Kar Amacı Gütmeyen Kuruluş
    • Çevre Ajansı
    • Reklam Panosu Kiralama
    • Fotoğrafçılık
    • Bisiklet Kiralama
    • Yazılım Bayisi
    Tüm Sektörlere Göz Atın
  • Topluluk
    Öğrenim
    • Eğitim Araçları
    • Dokümantasyon
    • Sertifikasyonlar
    • Eğitim Etkinlikleri
    • Blog
    • Podcast
    Eğitim ve Gelişim
    • Eğitim Programı
    • Scale Up! İşletme Oyunu
    • Odoo'yu Ziyaret Edin
    Yazılım
    • İndirin
    • Sürümleri Kıyaslayın
    • Sürümler
    İş Birliği
    • Github
    • Forum
    • Etkinlikler
    • Çeviriler
    • Partner Olun
    • Partnerler için Hizmetler
    • Muhasebe Firmanızı Kaydettirin
    Hizmetler
    • Partner Bulun
    • Muhasebeci Bulun
    • Bir danışmanla görüşün
    • Kurulum Hizmetleri
    • Müşteri Referansları
    • Destek
    • Sürüm Yükseltme
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Demo randevusu alın
  • Fiyatlandırma
  • Yardım

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • Müşteri İlişkileri Yönetimi
  • e-Commerce
  • Muhasebe
  • Envanter
  • PoS
  • Proje Yönetimi
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiketler (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiketler (View all)
odoo accounting v14 pos v15
About this forum
Yardım

Send email for sign request through API

Abone Ol

Get notified when there's activity on this post

Bu soru işaretlendi
emailapixmlrpctypeerrorsign
3 Cevaplar
6063 Görünümler
Avatar
Juan Botero Tech

I'm trying to send an email with sign request with API XMLM/RPC in Python client


For this, I implement 5 calls to the API:

1. Upload file with Method sign.template and method upload_template, send the PDF file and got the Document ID

2. Update contract sign, update pdf file with the field or fields to fill with user data (name, company sign..).

3. Create the email request with message data (receiver, pdf file, text message).

4. Some method required to check the email before send:  

    Model sign.send.request method: read, and Model sign.send.request.signer method read

5. Send email with model sign.send.request and method send_request with args the email template created before, like this:

request_sign = api.execute_kw(database, uid, api_key, "sign.send.request","send_request", [template_email_id])

template created before, like this: All steps executes well, but the last one gives me this:
 

xmlrpc.client.Fault:
...
line 534, in dump_nil\n raise TypeError("cannot marshal None unless allow_none is enabled")\nTypeError: cannot marshal None unless allow_none is enabled\n'>

I declare the connection with allow_none = True:

api = client.ServerProxy("%s/xmlrpc/2/object" % self.url, allow_none=True)

I don't know what Am I doing wrong with the method call.

0
Avatar
Vazgeç
Juan Botero Tech
Üretici

Thank you for your answers.

I migrate the code to use OdooRPC module and can prepare the email to send later.

# Prepare email request

sign_email =self.odoo.env['sign.send.request']

email_id = sign_email.create(request_fields)

request_sign = sign_email.send_request(email_id)

The email is created in Odoo but is not delivered to the recipients.

Christopher DATO

You have to setup your Outgoing Mail Server

Avatar
loic m.
En İyi Yanıt

Hi,

I'm working on the same kind of project but with API XMLM/RPC in PHP client.

I manage to create partners, upload documents, create sign template and email template but I'm stuck on the creation of signers.

When I try with $models->execute_kw($db, $uid, $password, 'sign.send.request.signer', 'create', array(array('role_id'=>'2','partner_id'=>'7')));

It returns the following error :

TypeError: SignSendRequestSigner.create() missing 1 required positional argument: \'vals_list\'

I've check that partner_id 7 exists and it's the only required field along with role_id

Does anybody knows what am I doing wrong ?

Regards,

0
Avatar
Vazgeç
loic m.

Ok, I found the right syntax / missing positional argument to create signer_ids :

$signer_ids = array([0, 'client_signature', ['role_id'=> 2, 'partner_id'=> $client_id]],[0, 'employee_signature', ['role_id'=> 3, 'partner_id'=> $employee_id]]);

Avatar
Ashish Hirpara
En İyi Yanıt

It looks like the issue is with the send_request method in the sign.send.request model. The error message indicates that the method is trying to marshal a None value, but the allow_none option is not enabled.

To fix this issue, you can try enabling the allow_none option when calling the send_request method. You can do this by passing the allow_none=True option as an argument to the send_request method, like this:

request_sign = api.execute_kw(database, uid, api_key, "sign.send.request", "send_request", [template_email_id], allow_none=True)

Alternatively, you can try setting the allow_none option to True when creating the ServerProxy object, like this:

api = client.ServerProxy("%s/xmlrpc/2/object" % self.url, allow_none=True)
request_sign = api.execute_kw(database, uid, api_key, "sign.send.request", "send_request", [template_email_id])

Either of these approaches should fix the issue and allow the send_request method to be called successfully.

0
Avatar
Vazgeç
Avatar
Jainesh Shah(Aktiv Software)
En İyi Yanıt

Hi @Juan Botero Tech

Hope you are doing well

Even if the allow_none is True if the method that you are calling doesn't return anything or None it will throw the error.
As a workaround, inherit the method and add return True at the end after calling super.

I hope this will be helpful.

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

0
Avatar
Vazgeç
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Üye Ol
İlgili Gönderiler Cevaplar Görünümler Aktivite
I want to sent invoice to the coustomer email using external api Çözüldü
email external api xmlrpc
Avatar
Avatar
1
Tem 24
5032
XML-RPC API search_read method 100 records' limitation
api xmlrpc
Avatar
Avatar
Avatar
3
Oca 23
9366
XMLRPC API Search and Read - How to Supply Multiple Filters Çözüldü
api xmlrpc
Avatar
1
Mar 22
6510
(\'Error, a partner cannot follow twice the same object.\', None)\n'>
api xmlrpc
Avatar
Avatar
1
Şub 22
6650
Logging XML RPC requests and responses into another log file Çözüldü
api xmlrpc
Avatar
Avatar
1
Tem 20
10354
Topluluk
  • Eğitim Araçları
  • Dokümantasyon
  • Forum
Açık Kaynak
  • İndirin
  • Github
  • Runbot
  • Çeviriler
Hizmetler
  • Odoo.sh Hosting
  • Destek
  • Sürüm Yükseltme
  • Özel Geliştirmeler
  • Eğitim
  • Muhasebeci Bulun
  • Partner Bulun
  • Partner Olun
Hakkında
  • Şirketimiz
  • Pazarlama Gereçleri
  • İletişim
  • Kariyer
  • Etkinlikler
  • Podcast
  • Blog
  • Müşteriler
  • Hukuki • Gizlilik
  • Güvenlik
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo, müşteri ilişkileri yönetimi, eTicaret, muhasebe, envanter, satış noktası, proje yönetimi gibi şirketinizin tüm ihtiyaçlarını karşılayan bir açık kaynak işletme uygulamaları paketidir.

Odoo’nun eşsiz değer önermesi, aynı anda hem kullanımının çok kolay olup hem de tamamen entegre olmasıdır.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now