تخطي للذهاب إلى المحتوى
أودو القائمة
  • تسجيل الدخول
  • جرب مجاناً
  • التطبيقات
    المالية
    • المحاسبة
    • فوترة
    • النفقات
    • جدول البيانات (BI)
    • المستندات
    • توقيع إلكتروني
    المبيعات
    • إدارة علاقات العملاء
    • المبيعات
    • نقطة البيع للمتاجر
    • نقطة البيع للمطاعم
    • الاشتراكات
    • تأجير
    المواقع الإلكترونية
    • أداة بناء المواقع الإلكترونية
    • متاجر إلكترونية
    • مدونة
    • المنتدى
    • دردشة مباشرة
    • التعليم الإلكتروني
    سلسلة التوريد
    • المستودعات
    • التصنيع
    • إدارة دورة حياة المنتج
    • المشتريات
    • الصيانة
    • الجودة
    الموارد البشرية
    • موظفون
    • التوظيف
    • إجازة عمل
    • التقييمات
    • الإحالات
    • تطبيق الأسطول
    التسويق
    • التسويق الإجتماعي
    • التسويق عبر البريد الإلكتروني
    • التسويق عبر الرسائل النصية
    • فعاليات
    • أتمتة التسويق
    • الاستطلاعات
    الخدمات
    • المشاريع
    • الجداول الزمنية
    • الخدمة الميدانية
    • مكتب المساعدة
    • التخطيط
    • مواعيد
    اﻹنتاجية
    • مناقشة
    • الموافقات
    • إنترنت الأشياء "IoT"
    • بروتوكول ربط المحادثات الصوتية عبر الإنترنت
    • المعرفة
    • WhatsApp
    التطبيقات الخارجية ستوديو أودو منصة أودو السحابية
  • قطاعات الأعمال
    البيع بالتجزئة
    • متجر كتب
    • متجر ملابس
    • متجر أثاث
    • متجر بقالة
    • متجر معدات
    • متجر ألعاب
    الطعام والضيافة
    • بار وحانة
    • المطعم
    • مطعم للوجبات السريعة
    • نزل للضيوف
    • موزّع مشروبات
    • فندق
    العقارات
    • وكالة عقارات
    • شركة هندسة معمارية
    • البناء
    • إدارة العقارات
    • العناية بالحدائق
    • اتحاد مُلاّك العقارات
    استشارة
    • مؤسسة محاسبية
    • شريك أودو
    • وكالة تسويقية
    • منشأة قانونية
    • استقطاب المواهب
    • التدقيق والتوثيق
    التصنيع
    • الأقمشة
    • معدني
    • الأثاث
    • الطعام
    • مصنع خمور
    • هدايا الشركات
    الصحة واللياقة البدنية
    • نادي رياضي
    • متجر نظارات
    • مركز لياقة بدنية
    • الممارسون الصحيون
    • صيدلية
    • صالون تصفيف الشعر
    التجارة
    • عامل صيانة
    • الأجهزة والمعدات التقنية ودعمها
    • أنظمة الطاقة الشمسية
    • صانع أحذية
    • خدمات التنظيف
    • خدمات التكييف (HVAC)
    غير ذلك
    • منظمة غير ربحية
    • وكالة بيئية
    • تأجير لوحات إعلانية
    • تصوير
    • تأجير دراجات
    • بائع وسيط للبرمجيات
    تصفح كافة قطاعات الأعمال
  • مجتمع أودو
    تعلم
    • دروس
    • التوثيق
    • شهادات
    • التدريب
    • مدونة
    • بودكاست
    قم بتعزيز التعليم
    • برنامج تعليم
    • Scale UP! لعبة الأعمال
    • قم بزيارة أودو
    احصل على البرنامج
    • تحميل
    • قارنْ الإصدارات
    • إطلاق
    تعاون
    • جيت هاب "Github"
    • المنتدى
    • فعاليات
    • الترجمات
    • كنْ شريكاً
    • خدمات الشركاء
    • سجل مكتب المحاسبة الخاص بك
    احصل على الخدمات
    • اعثر على شريك
    • اعثر على محاسب
    • قابل أحد مرشدي الأعمال
    • خدمات التنفيذ
    • مراجع العملاء
    • الدعم
    • الترقيات
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    الحصول على عرض توضيحي
  • الأسعار
  • المساعدة

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

  • إدارة علاقات العملاء
  • e-Commerce
  • المحاسبة
  • المخزون
  • PoS
  • المشروع
  • MRP
All apps
يجب أن تكون مسجلاً حتى تتفاعل مع المجتمع.
كافة المنشورات الأفراد الشارات
علامات التصنيف (عرض الكل)
odoo accounting v14 pos v15
حول هذا المنتدى
يجب أن تكون مسجلاً حتى تتفاعل مع المجتمع.
كافة المنشورات الأفراد الشارات
علامات التصنيف (عرض الكل)
odoo accounting v14 pos v15
حول هذا المنتدى
المساعدة

Send email for sign request through API

اشتراك

تسلم الإشعارات عندما يكون هناك نشاط في هذا المنشور

لقد تم الإبلاغ عن هذا السؤال
emailapixmlrpctypeerrorsign
3 الردود
5999 أدوات العرض
الصورة الرمزية
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
الصورة الرمزية
إهمال
Juan Botero Tech
الكاتب

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

الصورة الرمزية
loic m.
أفضل إجابة

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
الصورة الرمزية
إهمال
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]]);

الصورة الرمزية
Ashish Hirpara
أفضل إجابة

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
الصورة الرمزية
إهمال
الصورة الرمزية
Jainesh Shah(Aktiv Software)
أفضل إجابة

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
الصورة الرمزية
إهمال
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!

أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!

تسجيل
المنشورات ذات الصلة الردود أدوات العرض النشاط
I want to sent invoice to the coustomer email using external api تم الحل
email external api xmlrpc
الصورة الرمزية
الصورة الرمزية
1
يوليو 24
5004
XML-RPC API search_read method 100 records' limitation
api xmlrpc
الصورة الرمزية
الصورة الرمزية
الصورة الرمزية
3
يناير 23
9310
XMLRPC API Search and Read - How to Supply Multiple Filters تم الحل
api xmlrpc
الصورة الرمزية
1
مارس 22
6465
(\'Error, a partner cannot follow twice the same object.\', None)\n'>
api xmlrpc
الصورة الرمزية
الصورة الرمزية
1
فبراير 22
6593
Logging XML RPC requests and responses into another log file تم الحل
api xmlrpc
الصورة الرمزية
الصورة الرمزية
1
يوليو 20
10293
المجتمع
  • دروس
  • التوثيق
  • المنتدى
مصدر مفتوح
  • تحميل
  • جيت هاب "Github"
  • المشغل الآلي رنبوت
  • الترجمات
خدماتنا
  • استضافة أودو إس إتش
  • الدعم
  • الترقية
  • التطويرات المخصصة
  • التعليم
  • اعثر على محاسب
  • اعثر على شريك
  • كنْ شريكاً
معلومات عنا
  • شركتنا
  • أصول العلامة التجارية
  • اتصلْ بنا
  • الوظائف
  • فعاليات
  • بودكاست
  • مدونة
  • عملاء
  • قانوني • الخصوصية
  • الحماية
الْعَرَبيّة 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

أودو هو عبارة عن مجموعة من تطبيقات الأعمال مفتوحة المصدر التي تغطي جميع احتياجات شركتك، مثل: إدارة علاقات العملاء والتجارة الإلكترونية والمحاسبة والمخزون ونقاط البيع وإدارة المشاريع وما إلى ذلك.

ما يجعل من أودو مميزاً هو هدفه بأن يكون سهل الاستخدام للغاية ومتكاملاً تمامًا في الوقت ذاته.

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