Skip ke Konten
Odoo Menu
  • Login
  • Uji coba gratis
  • Aplikasi
    Keuangan
    • Akuntansi
    • Faktur
    • Pengeluaran
    • Spreadsheet (BI)
    • Dokumen
    • Tanda Tangan
    Sales
    • CRM
    • Sales
    • POS Toko
    • POS Restoran
    • Langganan
    • Rental
    Website
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Rantai Pasokan
    • Inventaris
    • Manufaktur
    • PLM
    • Purchase
    • Maintenance
    • Kualitas
    Sumber Daya Manusia
    • Karyawan
    • Rekrutmen
    • Cuti
    • Appraisal
    • Referensi
    • Armada
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Acara
    • Otomatisasi Marketing
    • Survei
    Layanan
    • Project
    • Timesheet
    • Layanan Lapangan
    • Meja Bantuan
    • Planning
    • Appointment
    Produktivitas
    • Diskusi
    • Approval
    • IoT
    • VoIP
    • Pengetahuan
    • WhatsApp
    Aplikasi pihak ketiga Odoo Studio Platform Odoo Cloud
  • Industri-Industri
    Retail
    • Toko Buku
    • Toko Baju
    • Toko Furnitur
    • Toko Kelontong
    • Toko Hardware
    • Toko Mainan
    Makanan & Hospitality
    • Bar dan Pub
    • Restoran
    • Fast Food
    • Rumah Tamu
    • Distributor Minuman
    • Hotel
    Real Estate
    • Agensi Real Estate
    • Firma Arsitektur
    • Konstruksi
    • Estate Management
    • Perkebunan
    • Asosiasi Pemilik Properti
    Konsultansi
    • Firma Akuntansi
    • Mitra Odoo
    • Agensi Marketing
    • Firma huku
    • Talent Acquisition
    • Audit & Sertifikasi
    Manufaktur
    • Tekstil
    • Logam
    • Perabotan
    • Makanan
    • Brewery
    • Corporate Gift
    Kesehatan & Fitness
    • Sports Club
    • Toko Kacamata
    • Fitness Center
    • Wellness Practitioners
    • Farmasi
    • Salon Rambut
    Perdagangan
    • Handyman
    • IT Hardware & Support
    • Sistem-Sistem Energi Surya
    • Pembuat Sepatu
    • Cleaning Service
    • Layanan HVAC
    Lainnya
    • Organisasi Nirlaba
    • Agen Lingkungan
    • Rental Billboard
    • Fotografi
    • Penyewaan Sepeda
    • Reseller Software
    Browse semua Industri
  • Komunitas
    Belajar
    • Tutorial-tutorial
    • Dokumentasi
    • Sertifikasi
    • Pelatihan
    • Blog
    • Podcast
    Empower Education
    • Program Edukasi
    • Game Bisnis 'Scale Up!'
    • Kunjungi Odoo
    Dapatkan Softwarenya
    • Download
    • Bandingkan Edisi
    • Daftar Rilis
    Kolaborasi
    • Github
    • Forum
    • Acara
    • Terjemahan
    • Menjadi Partner
    • Layanan untuk Partner
    • Daftarkan perusahaan Akuntansi Anda.
    Dapatkan Layanan
    • Temukan Mitra
    • Temukan Akuntan
    • Temui penasihat
    • Layanan Implementasi
    • Referensi Pelanggan
    • Bantuan
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dapatkan demo
  • Harga
  • Bantuan

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

  • CRM
  • e-Commerce
  • Akuntansi
  • Inventaris
  • PoS
  • Project
  • MRP
All apps
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Help

Can't send Signature Request (error: You must specify one signer for each role of your sign template)

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
errorsignaturerequestautomation
2 Replies
3303 Tampilan
Avatar
Johnny Solas

I'm currently working on a automation and this is my code


First the automation will be triggered via webhook and will receive this

template_id = int(payload.get('template_id'))
partner_id = int(payload.get('partner_id'))


Then it will create 2 records in sign.item model so client can input their signature and date of signing

item_signature = {
    "template_id" : template_id,
    "type_id": 1, # 1 = signature item
    "required" : True,
    "responsible_id" : 1, # 1 = customer role
    "page": 9,
    "posX": 0.344,
    "posY": 0.156,
    "width" : 0.189,
    "height" : 0.024,
    "name": "Signature"
}

env['sign.item'].create(item_signature)

item_sign_date = {
    "template_id" : template_id,
    "type_id": 12, # 12 = date item
    "required" : True,
    "responsible_id" : 1, # 1 = customer role
    "page": 9,
    "posX": 0.302,
    "posY": 0.228,
    "width" : 0.150,
    "height" : 0.015,
    "name" : "Date"
}

env['sign.item'].create(item_sign_date)


Now I wanted to send a sign request to client by creating a record in sign.send.request

send_request_data = {
    "template_id": template_id,
    "subject": "Test Subject",
    "filename": "test.pdf",
}
   
send_request = env["sign.send.request"].create(send_request_data)


Then i have to add a record in model sign.send.request.signer in which i can append it to the "send_request" above

signer_data = [{
    "role_id": 1,  # 1 = customer role
    "partner_id": partner_id,
    "sign_send_request_id": send_request.id
}]

signer = env["sign.send.request.signer"].create(signer_data)


To send the request i have to run this

send_request.send_request()


But odoo will throw an error to me everytime 

"odoo.exceptions.ValidationError: You must specify one signer for each role of your sign template"


I don't understand why I'm getting this error. I have already ensure the the signature item and date item will be filled by customer. Then I have added a signer with role of "customer". 


When I check in sign module, a record was actually create, but the signer was set to "Public User" even though it should not.


Please help me know the reason why I'm getting this error and possible solutions. Thanks in advance

0
Avatar
Buang
Avatar
Johnny Solas
Penulis Jawaban Terbai

I solve the issue by adding something in here

 send_request_data = {
        "template_id": template_id,
        "subject": "Test Subject",
        "filename": "test.pdf",
        "signers_count": 1,
        "signer_id": partner_id # add this line, tells odoo this sign request is for this contact
    }


send_request = env["sign.send.request"].create(send_request_data)


So after creating a record in model sign.send.request continue adding a record for model sign.send.request.signer. Then add this line


send_request.write({
        "signer_ids" : [signer_id.id]
})


This will tell odoo that the sign request about to be sent should be sent to this people.

0
Avatar
Buang
Yatrik Chauhan

Hello Johnny Solas,
I was searching for a solution as well, and I’m glad to see you’ve already found one. This will definitely be helpful.
Thanks!

Avatar
Yatrik Chauhan
Jawaban Terbai

Hello Johnny Solas,

You can try the following code:

# Create signature item
item_signature = {
    "template_id": 1,
    "type_id": 1,  # 1 = signature item
    "required": True,
    "responsible_id": 1,  # 1 = customer role
    "page": 9,
    "posX": 0.344,
    "posY": 0.156,
    "width": 0.189,
    "height": 0.024,
    "name": "Signature"
}

env['sign.item'].sudo().create(item_signature)

# Create date item
item_sign_date = {
    "template_id": 1,
    "type_id": 12,  # 12 = date item
    "required": True,
    "responsible_id": 1,  # 1 = customer role
    "page": 9,
    "posX": 0.302,
    "posY": 0.228,
    "width": 0.150,
    "height": 0.015,
    "name": "Date"
}

env['sign.item'].sudo().create(item_sign_date)

# Create the sign send request
send_request_data = {
    "template_id": 1,
    "subject": "Test Subject",
    "filename": "test.pdf",
    "signers_count": 1,
}

send_request = env["sign.send.request"].create(send_request_data)

# Create signer
signer_data = [{
    "role_id": 1,  # Assuming this is the required role ID
    "partner_id": 3,
    "mail_sent_order": 1,
    "sign_send_request_id": send_request.id
}]

env["sign.send.request.signer"].create(signer_data)

# Send the request
send_request.send_request()

Make sure to replace template_id, partner_id, and role_id with values from your payload. This should work without any errors. Let me know if you face any issues.

Thanks!

0
Avatar
Buang
Johnny Solas
Penulis

Thank you for your help!

I tried this code, the error "You must specify one signer for each role of your sign template" is now gone. However there are new issues.

1. Whenever I tried to open the document generated by "send_request.send_request()". It shows this error message

"UncaughtClientError > TypeError Uncaught Javascript Error > Cannot set properties of undefined (setting '106') Occured on yourcompany.com on 2025-02-10 11:08:16 GMT

TypeError: Cannot set properties of undefined (setting '106')
at PDFIframe.getSignItems (https://yourcompany.com/web/assets/280e2ad/web.assets_web_dark.min.js:22716:82)
at PDFIframe.start (https://yourcompany.com/web/assets/280e2ad/web.assets_web_dark.min.js:22682:29)
at PDFIframe.waitForPagesToLoad (https://yourcompany.com/web/assets/280e2ad/web.assets_web_dark.min.js:22681:85)
at https://yourcompany.com/web/assets/280e2ad/web.assets_web_dark.min.js:22681:119
"

2. It used the wrong template. I tried changing the template_id in the payload, but it still use the same wrong template. I also suspect that this the same issue, is the reason why the Signature and Date item was not added in the template.

I would appreciate your guidance on resolving these issues!

Johnny Solas
Penulis

I restart my odoo and then Issue #2 was gone, but #1 is still their

Menikmati diskusi? Jangan hanya membaca, ikuti!

Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!

Daftar
Post Terkait Replies Tampilan Aktivitas
How can I only notify people to sign a Document when it is their turn?
signature request
Avatar
Avatar
1
Apr 23
3252
Add Request Sign Feature in a Custom Module
signature request custom module
Avatar
0
Feb 25
1881
Can't Send Sign Request thru email
email signature send automation
Avatar
0
Feb 25
1747
CSS Sign module not working
error signature css v17
Avatar
0
Sep 24
1340
Send signature request - add a template text to the email
document email signature template request
Avatar
0
Okt 25
2392
Komunitas
  • Tutorial-tutorial
  • Dokumentasi
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Terjemahan
Layanan
  • Odoo.sh Hosting
  • Bantuan
  • Peningkatan
  • Custom Development
  • Pendidikan
  • Temukan Akuntan
  • Temukan Mitra
  • Menjadi Partner
Tentang Kami
  • Perusahaan kami
  • Aset Merek
  • Hubungi kami
  • Tugas
  • Acara
  • Podcast
  • Blog
  • Pelanggan
  • Hukum • Privasi
  • Keamanan
الْعَرَبيّة 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 adalah rangkaian aplikasi bisnis open source yang mencakup semua kebutuhan perusahaan Anda: CRM, eCommerce, akuntansi, inventaris, point of sale, manajemen project, dan seterusnya.

Mudah digunakan dan terintegrasi penuh pada saat yang sama adalah value proposition unik Odoo.

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