Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

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

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

[SOLVED] How do I solve this problem : cannot concatenate 'str' and 'int' objects?

Subscribe

Get notified when there's activity on this post

This question has been flagged
ubuntuupgradeconcatenatestrint
1 Reply
14559 Views
Avatar
Michael Bos

When upgrading from Ubuntu 12.04 to 14.04 I had a strange failure. I have done 4 OpenERP servers and the last one gave me this error.

It occurs when trying to print anything sales or purchase related. Product labels can be printed.

This is the message it shows:

cannot concatenate 'str' and 'int' objects
handle_pageBegin args=()
 

I have made a backup of my database and tried removing all fields I create myself. I also removed all changes to views I made. When googling for this problem, it only gave me python related errors.

EDIT: I also tried installing werkzeug 0.8.3 version, but that made no difference. On my other server this worked like a charm.

 

This is what openerp log shows.

2014-09-01 06:19:04,070 14588 ERROR TMC-2 openerp.netsvc: cannot concatenate 'str' and 'int' objects
handle_pageBegin args=()
(<type 'exceptions.TypeError'>, TypeError("cannot concatenate 'str' and 'int' objects\nhandle_pageBegin args=()",), <traceback object at 0x7f3c5dbbcb48>)
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/openerp/netsvc.py", line 296, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/usr/lib/pymodules/python2.7/openerp/service/web_services.py", line 654, in dispatch
    res = fn(db, uid, *params)
  File "/usr/lib/pymodules/python2.7/openerp/service/web_services.py", line 760, in exp_report_get
    return self._check_report(report_id)
  File "/usr/lib/pymodules/python2.7/openerp/service/web_services.py", line 738, in _check_report
    netsvc.abort_response(exc, exc.message, 'warning', exc.traceback)
  File "/usr/lib/pymodules/python2.7/openerp/netsvc.py", line 71, in abort_response
    raise openerp.osv.osv.except_osv(description, details)

0
Avatar
Discard
Michael Bos
Author

Is anybody getting anywhere with this? I can't seem to solve it as my python knowledge is not up to par. I am really getting frustrated as we can't use the openERP atm and we I don't know how to solve this. I tried numerous things already. Including database duplication, installed the database on another server. Installed and uninstalled modules and python programs/libraries and I am running out of ideas now.... Any help is welcome.

Michael Bos
Author

Tried it again while uninstalling all non standard modules, no succes. Pulling hairs atm!

Avatar
Ben Bernard
Best Answer

Try to upgrade repotlab and pil python module. You can test if my guess is correct by removing any image from the faulty report (including from header or footer) and then print it.

1
Avatar
Discard
Michael Bos
Author

This is 100% right. I added a custom picture for our delivery terms and that one was being a thorn in my eye. Only upgrading reportlab didn't solve it. Pil module wasn't found.

Michael Bos
Author

Hope you can help me with this, I now disabled the logo, but I would like to get it back :)

Ben Bernard

If no pil then it should be pillow. I see some limitations of report implementation in odoo, usually because some bugs in third party module. If you hit any problem with the image, it's better to post new question.

Michael Bos
Author

Thanks for clearing this. It works now. I am working on the image, if I can't get it to work you will see another question ;-). Thanks for answering!

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

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

Sign up
Related Posts Replies Views Activity
How To Upgrade Nightly Build Solved
v7 ubuntu upgrade
Avatar
Avatar
Avatar
Avatar
3
Jan 24
16242
Odoo-18.0 CE Upgrade error
migration ubuntu upgrade Odoo18.0 odoo17CE
Avatar
Avatar
2
Oct 24
3529
Error installing web_enterprise after upgrade from 12.0 Community edition to version 12.0 Enterprise edition Solved
community ubuntu enterprise upgrade 12.0
Avatar
Avatar
1
Jan 21
5885
[SOLVED] How to solve ascii 4,00 Stuk(s 4 5 ordinal not in range(128) Solved
modules python ubuntu upgrade ascii upgrades
Avatar
1
Mar 15
8874
Upgrade V19 problème de wishlist
upgrade
Avatar
Avatar
2
Dec 25
416
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة 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 is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

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