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

Odoo 18 error creating manufacturing order

Subscribe

Get notified when there's activity on this post

This question has been flagged
manufacturingOdoo 18
2 Replies
2030 Views
Avatar
Fritz Subscreti

Hi guys,

getting this error Odoo 18 when trying to create a manufacturing order (the same process works for products of other companies on the same server.


Odoo Server Error

RPC_ERROR



Occured on mycompany.com on model mrp.production and id 309 on 2025-03-06 06:27:01 GMT


Traceback (most recent call last):

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 1962, in _transactioning

    return service_model.retrying(func, env=self.env)

  File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 156, in retrying

    result = func()

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 1929, in _serve_ir_http

    response = self.dispatcher.dispatch(rule.endpoint, args)

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 2177, in dispatch

    result = self.request.registry['ir.http']._dispatch(endpoint)

  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_http.py", line 333, in _dispatch

    result = endpoint(**request.params)

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 727, in route_wrapper

    result = endpoint(self, *args, **params_ok)

  File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/dataset.py", line 36, in call_kw

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

  File "/usr/lib/python3/dist-packages/odoo/api.py", line 533, in call_kw

    result = getattr(recs, name)(*args, **kwargs)

  File "/usr/lib/python3/dist-packages/odoo/addons/web/models/models.py", line 72, in web_save

    self = self.create(vals)

  File "<decorator-gen-331>", line 2, in create

  File "/usr/lib/python3/dist-packages/odoo/api.py", line 495, in _model_create_multi

    return create(self, [arg])

  File "/usr/lib/python3/dist-packages/odoo/addons/mrp/models/mrp_production.py", line 949, in create

    vals['name'] = self.env['stock.picking.type'].browse(picking_type_id).sequence_id.next_by_id()

  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_sequence.py", line 270, in next_by_id

    return self._next(sequence_date=sequence_date)

  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_sequence.py", line 259, in _next

    return self._next_do()

  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_sequence.py", line 200, in _next_do

    number_next = _update_nogap(self, self.number_increment)

  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_sequence.py", line 57, in _update_nogap

    self._cr.execute("SELECT number_next FROM %s WHERE id=%%s FOR UPDATE NOWAIT" % self._table, [self.id])

  File "/usr/lib/python3/dist-packages/odoo/sql_db.py", line 354, in execute

    res = self._obj.execute(query, params)

psycopg2.errors.UndefinedFunction: operator does not exist: integer = boolean

LINE 1: SELECT number_next FROM ir_sequence WHERE id=false FOR UPDAT...

                                                    ^

HINT:  No operator matches the given name and argument types. You might need to add explicit type casts.



The above server error caused the following client error:

RPC_ERROR: Odoo Server Error

    RPCError@https://mycompany.com/web/assets/debug/web.assets_web.js:29740:9 (/web/static/src/core/network/rpc.js:11)

    makeErrorFromResponse@https://mycompany.com/web/assets/debug/web.assets_web.js:29763:19 (/web/static/src/core/network/rpc.js:34)

    rpc._rpc/promise</<@https://mycompany.com/web/assets/debug/web.assets_web.js:29817:48 (/web/static/src/core/network/rpc.js:88)

0
Avatar
Discard
Lars Aam

The key to solution is this:
psycopg2.errors.UndefinedFunction: operator does not exist: integer = boolean
LINE 1: SELECT number_next FROM ir_sequence WHERE id=false FOR UPDAT...

HINT: No operator matches the given name and argument types. You might need to add explicit type casts.

The function seems to search for the next operator from a number sequence, but cannot find.

Avatar
Cybrosys Techno Solutions Pvt.Ltd
Best Answer

Hi,

The RPC_ERROR is caused because the MO does not have a valid picking_type_id, which leads to trying to fetch a sequence from False.

Fixing it involves:


Ensuring the product’s company is correct.


Ensuring a Manufacturing picking type exists for that company.


Ensuring the picking type has a valid sequence.


Hope it helps.

0
Avatar
Discard
Avatar
Felix Hummel
Best Answer

We had a similar problem. The root cause for us was that the ir_sequence​ record referenced by stock_picking_type.sequence_id​ was missing.

0
Avatar
Discard
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 Delete a Stale Project Folder?
Odoo 18
Avatar
Avatar
2
Oct 25
638
How to make Odoo schedule manufacturing in parallel?
manufacturing
Avatar
0
Oct 25
431
Change in Work Center Productivity Accounting
manufacturing
Avatar
Avatar
1
Sep 25
1278
How to disable form view if there are not registers?
manufacturing
Avatar
Avatar
2
Sep 25
962
Columna calculada en orden de producción
manufacturing
Avatar
Avatar
2
Sep 25
841
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