Skip to Content
Odoo Meniu
  • Autentificare
  • Try it free
  • Aplicații
    Finanțe
    • Contabilitate
    • Facturare
    • Cheltuieli
    • Spreadsheet (BI)
    • Documente
    • Semn
    Vânzări
    • CRM
    • Vânzări
    • POS Shop
    • POS Restaurant
    • Abonamente
    • Închiriere
    Site-uri web
    • Constructor de site-uri
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Lanț Aprovizionare
    • Inventar
    • Producție
    • PLM
    • Achiziție
    • Maintenance
    • Calitate
    Resurse Umane
    • Angajați
    • Recrutare
    • Time Off
    • Evaluări
    • Referințe
    • Flotă
    Marketing
    • Social Marketing
    • Marketing prin email
    • SMS Marketing
    • Evenimente
    • Automatizare marketing
    • Sondaje
    Servicii
    • Proiect
    • Foi de pontaj
    • Servicii de teren
    • Centru de asistență
    • Planificare
    • Programări
    Productivitate
    • Discuss
    • Aprobări
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Aplicații Terțe Odoo Studio Platforma Odoo Cloud
  • Industrii
    Retail
    • Book Store
    • Magazin de îmbrăcăminte
    • Magazin de Mobilă
    • Magazin alimentar
    • Magazin de materiale de construcții
    • Magazin de jucării
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Distribuitor de băuturi
    • Hotel
    Proprietate imobiliara
    • Real Estate Agency
    • Firmă de Arhitectură
    • Construcție
    • Estate Managament
    • Grădinărit
    • Asociația Proprietarilor de Proprietăți
    Consultanta
    • Firma de Contabilitate
    • Partener Odoo
    • Agenție de marketing
    • Law firm
    • Atragere de talente
    • Audit & Certification
    Producție
    • Textil
    • Metal
    • Mobilier
    • Mâncare
    • Brewery
    • Cadouri corporate
    Health & Fitness
    • Club Sportiv
    • Magazin de ochelari
    • Centru de Fitness
    • Wellness Practitioners
    • Farmacie
    • Salon de coafură
    Trades
    • Handyman
    • IT Hardware and Support
    • Asigurare socială de stat
    • Cizmar
    • Servicii de curățenie
    • HVAC Services
    Altele
    • Organizație nonprofit
    • Agenție de Mediu
    • Închiriere panouri publicitare
    • Fotografie
    • Închiriere biciclete
    • Asigurare socială
    Browse all Industries
  • Comunitate
    Învăță
    • Tutorials
    • Documentație
    • Certificări
    • Instruire
    • Blog
    • Podcast
    Empower Education
    • Program Educațional
    • Scale Up! Business Game
    • Visit Odoo
    Obține Software-ul
    • Descărcare
    • Compară Edițiile
    • Lansări
    Colaborați
    • Github
    • Forum
    • Evenimente
    • Translations
    • Devino Partener
    • Services for Partners
    • Înregistrează-ți Firma de Contabilitate
    Obține Servicii
    • Găsește un Partener
    • Găsiți un contabil
    • Meet an advisor
    • Servicii de Implementare
    • Referințe ale clienților
    • Suport
    • Actualizări
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obține un demo
  • Prețuri
  • Ajutor

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

  • CRM
  • e-Commerce
  • Contabilitate
  • Inventar
  • PoS
  • Proiect
  • MRP
All apps
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Suport

cant send email because of ValueError: invalid literal for int() with base 10: '${object.partner_id.id}'

Abonare

Primiți o notificare când există activitate la acestă postare

Această întrebare a fost marcată
emailsendmail
2 Răspunsuri
9333 Vizualizări
Imagine profil
Mohamad Huzaifah Bin Mohamad Tarmizi

Hello, im not familiar with the structure of odoo framework and i cant wrap my head around the problem where i got this error message when im trying to send an email to the customer using the 'send by email' button from the Sales app and the Purchase app. below are the error message that was given:-


RPC_ERROR

Odoo Server Error

Traceback (most recent call last):

File "/home/odoo/src/odoo/odoo/addons/base/models/ir_http.py", line 237, in _dispatch

result = request.dispatch()

File "/home/odoo/src/odoo/odoo/http.py", line 687, in dispatch

result = self._call_function(**self.params)

File "/home/odoo/src/odoo/odoo/http.py", line 359, in _call_function

return checked_call(self.db, *args, **kwargs)

File "/home/odoo/src/odoo/odoo/service/model.py", line 94, in wrapper

return f(dbname, *args, **kwargs)

File "/home/odoo/src/odoo/odoo/http.py", line 348, in checked_call

result = self.endpoint(*a, **kw)

File "/home/odoo/src/odoo/odoo/http.py", line 916, in __call__

return self.method(*args, **kw)

File "/home/odoo/src/odoo/odoo/http.py", line 535, in response_wrap

response = f(*args, **kw)

File "/home/odoo/src/odoo/addons/web/controllers/main.py", line 1335, in call_kw

return self._call_kw(model, method, args, kwargs)

File "/home/odoo/src/odoo/addons/web/controllers/main.py", line 1327, in _call_kw

return call_kw(request.env[model], method, args, kwargs)

File "/home/odoo/src/odoo/odoo/api.py", line 464, in call_kw

result = _call_kw_multi(method, model, args, kwargs)

File "/home/odoo/src/odoo/odoo/api.py", line 451, in _call_kw_multi

result = method(recs, *args, **kwargs)

File "/home/odoo/src/odoo/odoo/models.py", line 6453, in onchange

record._onchange_eval(name, field_onchange[name], result)

File "/home/odoo/src/odoo/odoo/models.py", line 6186, in _onchange_eval

method_res = method(self)

File "/home/odoo/src/odoo/addons/mail/wizard/mail_compose_message.py", line 170, in _onchange_template_id_wrapper

values = self._onchange_template_id(self.template_id.id, self.composition_mode, self.model, self.res_id)['value']

File "/home/odoo/src/odoo/addons/mail/wizard/mail_compose_message.py", line 538, in _onchange_template_id

values = self.generate_email_for_composer(

File "/home/odoo/src/odoo/addons/mail/wizard/mail_compose_message.py", line 648, in generate_email_for_composer

template_values = self.env['mail.template'].with_context(tpl_partners_only=True).browse(template_id).generate_email(res_ids, fields)

File "/home/odoo/src/odoo/addons/account_edi/models/mail_template.py", line 10, in generate_email

res = super().generate_email(res_ids, fields)

File "/home/odoo/src/odoo/addons/mail/models/mail_template.py", line 187, in generate_email

results = template.generate_recipients(results, template_res_ids)

File "/home/odoo/src/odoo/addons/mail/models/mail_template.py", line 154, in generate_recipients

tpl_partner_ids = [int(pid) for pid in partner_to.split(',') if pid]

File "/home/odoo/src/odoo/addons/mail/models/mail_template.py", line 154, in

tpl_partner_ids = [int(pid) for pid in partner_to.split(',') if pid]

Exception



The above exception was the direct cause of the following exception:



Traceback (most recent call last):

File "/home/odoo/src/odoo/odoo/http.py", line 643, in _handle_exception

return super(JsonRequest, self)._handle_exception(exception)

File "/home/odoo/src/odoo/odoo/http.py", line 301, in _handle_exception

raise exception.with_traceback(None) from new_cause

ValueError: invalid literal for int() with base 10: '${object.partner_id.id}'



note that the email on that customer is assigned. 

0
Imagine profil
Abandonează
Reinhard Krause

found an answer? Having same problem

Imagine profil
Mohamad Huzaifah Bin Mohamad Tarmizi
Autor Cel mai bun răspuns

Ive already posted the answer to this but it was not posted idk why.

My solution to this problem might be different with yours but it worked for me. Ill start off with explaining the error.

Problem caused by

The error was caused by the email template being corrupted and incorrect.

Solution

1. Turn on developer mode and go to technical > Email templates

2. In the search bar, Group By 'Created By'. This will show you that theres 35 records created by Odoo Bot

3. Check/Tick all of the records created by Odoo Bot.

4. Uncheck only records that the column Applies to have Gamification Challenge and Gamification User Badge on it

5. Delete the selected records.

6. Go back to home screen and open the Apps app.

7. In the search box type in 'Base'.

8. You will find a module named 'Base'.

9. Upgrade it and your issue will be fixed. Well for me it did. 


Huzaifah 

Web Developer of Computs.com.my


2
Imagine profil
Abandonează
Imagine profil
Bishal Ghimire
Cel mai bun răspuns

{{ object.partner_id.id }}
Vs
${object.partner_id.id}

Make sure to use double curly braces in object fields in template if you are working in Version 15. Odoo didnot posted my answer properly earlier.


1
Imagine profil
Abandonează
Bishal Ghimire

<field name="partner_to">{{ object.partner_id.id }}</field>
Vs
<field name="partner_to">${object.partner_id.id}</field>

Make sure to use double curly braces in object fields in template. Not sure why my answer was not posted properly in Odoo

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

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

Înscrie-te
Related Posts Răspunsuri Vizualizări Activitate
Odoo10: very simple example for sending email via Python
email sendmail
Imagine profil
Imagine profil
Imagine profil
2
ian. 20
15158
Send mail only use company email address
mail email sendmail
Imagine profil
Imagine profil
1
iun. 17
9655
need more felixiblity and inovation on email marketing tools
email
Imagine profil
0
nov. 25
142
After editing the Sales Order Confirmation email template, Odoo isn't using it.
email
Imagine profil
Imagine profil
1
iul. 25
1969
How to remove "Powered by Odoo" in email in the Enterprise version Rezolvat
email
Imagine profil
Imagine profil
Imagine profil
Imagine profil
Imagine profil
5
mai 25
19917
Comunitate
  • Tutorials
  • Documentație
  • Forum
Open Source
  • Descărcare
  • Github
  • Runbot
  • Translations
Servicii
  • Hosting Odoo.sh
  • Suport
  • Actualizare
  • Custom Developments
  • Educație
  • Găsiți un contabil
  • Găsește un Partener
  • Devino Partener
Despre Noi
  • Compania noastră
  • Active de marcă
  • Contactați-ne
  • Locuri de muncă
  • Evenimente
  • Podcast
  • Blog
  • Clienți
  • Aspecte juridice • Confidențialitate
  • Securitate
الْعَرَبيّة 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 este o suită de aplicații de afaceri open source care acoperă toate nevoile companiei dvs.: CRM, comerț electronic, contabilitate, inventar, punct de vânzare, management de proiect etc.

Propunerea de valoare unică a Odoo este să fie în același timp foarte ușor de utilizat și complet integrat.

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