Přejít na obsah
Odoo Menu
  • Přihlásit se
  • Vyzkoušejte zdarma
  • Aplikace
    Finance
    • Účetnictví
    • Fakturace
    • Výdaje
    • Spreadsheet (BI)
    • Dokumenty
    • Podpisy
    Prodej
    • CRM
    • Prodej
    • POS Obchod
    • POS Restaurace
    • Předplatné
    • Pronájem
    Webové stránky
    • Webové stránky
    • E-shop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Dodavatelský řetězec
    • Sklad
    • Výroba
    • PLM
    • Nákup
    • Údržba
    • Kvalita
    Lidské zdroje
    • Zaměstnanci
    • Nábor
    • Volno
    • Hodnocení zaměstnanců
    • Doporučení
    • Vozový park
    Marketing
    • Marketing sociálních sítí
    • Emailový marketing
    • SMS Marketing
    • Události
    • Marketingová automatizace
    • Dotazníky
    Služby
    • Projekt
    • Časové výkazy
    • Práce v terénu
    • Helpdesk
    • Plánování
    • Schůzky
    Produktivita
    • Diskuze
    • Schvalování
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Aplikace třetích stran Odoo Studio Odoo cloudová platforma
  • Branže
    Maloobchod
    • Knihkupectví
    • Obchod s oblečením
    • Obchod s nábytkem
    • Potraviny
    • Obchod s hardwarem
    • Hračkářství
    Jídlo a pohostinství
    • Bar a Pub
    • Restaurace
    • Fast Food
    • Penzion
    • Distributor nápojů
    • Hotel
    Nemovitost
    • Realitní kancelář
    • Architektonická firma
    • Stavba
    • Správa nemovitostí
    • Zahradnictví
    • Asociace vlastníků nemovitosti
    Poradenství
    • Účetní firma
    • Odoo Partner
    • Marketingová agentura
    • Právník
    • Akvizice talentů
    • Audit a certifikace
    Výroba
    • Textile
    • Kov
    • Nábytek
    • Jídlo
    • Brewery
    • Korporátní dárky
    Zdraví a fitness
    • Sportovní klub
    • Prodejna brýli
    • Fitness Centrum
    • Wellness praktikové
    • Lékárna
    • Kadeřnictví
    Transakce
    • Údržbář
    • IT hardware a podpora
    • Systémy solární energie
    • Výrobce obuvi
    • Úklidové služby
    • Služby HVAC
    Ostatní
    • Nezisková organizace
    • Agentura pro životní prostředí
    • Pronájem billboardů
    • Fotografování
    • Leasing jízdních kol
    • Prodejce softwaru
    Browse all Industries
  • Komunita
    Edukační program
    • Tutoriály
    • Dokumentace
    • Certifikace
    • Vzdělávání
    • Blog
    • Podcast
    Podpora vzdělávání
    • Vzdělávací program
    • Scale Up! Hra na firmu
    • Navštivte Odoo
    Získat software
    • Stáhnout
    • Porovnejte edice
    • Verze
    Spolupráce
    • Github
    • Fórum
    • Události
    • Překlady
    • Stát se partnerem
    • Services for Partners
    • Registrujte svou účetní firmu
    Získat služby
    • Najít partnera
    • Najít účetní
    • Setkejte se s poradcem
    • Implementační služby
    • Zákaznické reference
    • Podpora
    • Upgrady
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dohodnout demo
  • Ceník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účetnictví
  • Sklad
  • PoS
  • Projekty
  • MRP
All apps
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
Pomoc

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

Odebírat

Get notified when there's activity on this post

This question has been flagged
errorsignaturerequestautomation
2 Odpovědi
3302 Zobrazení
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
Zrušit
Avatar
Johnny Solas
Autor Nejlepší odpověď

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
Zrušit
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
Nejlepší odpověď

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
Zrušit
Johnny Solas
Autor

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
Autor

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

Enjoying the discussion? Don't just read, join in!

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

Přihlásit se
Related Posts Odpovědi Zobrazení Aktivita
How can I only notify people to sign a Document when it is their turn?
signature request
Avatar
Avatar
1
dub 23
3249
Add Request Sign Feature in a Custom Module
signature request custom module
Avatar
0
úno 25
1872
Can't Send Sign Request thru email
email signature send automation
Avatar
0
úno 25
1747
CSS Sign module not working
error signature css v17
Avatar
0
zář 24
1340
Send signature request - add a template text to the email
document email signature template request
Avatar
0
říj 25
2391
Komunita
  • Tutoriály
  • Dokumentace
  • Fórum
Open Source
  • Stáhnout
  • Github
  • Runbot
  • Překlady
Služby
  • Odoo.sh hostování
  • Podpora
  • Upgrade
  • Nestandardní vývoj
  • Edukační program
  • Najít účetní
  • Najít partnera
  • Stát se partnerem
O nás
  • Naše společnost
  • Podklady značky
  • Kontakujte nás
  • Práce
  • Události
  • Podcast
  • Blog
  • Zákazníci
  • Právní dokumenty • Soukromí
  • Zabezpečení
الْعَرَبيّة 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 je balíček open-source aplikací, které pokrývají všechny potřeby vaší společnosti: CRM, e-shop, účetnictví, sklady, kasy, projektové řízení a další.

Unikátní nabídka od Odoo poskytuje velmi jednoduché uživatelské rozhraní a vše je integrované na jednom místě.

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