Skip to Content
Odoo Menu
  • Log ind
  • Prøv gratis
  • apps
    Økonomi
    • Bogføring
    • Fakturering
    • Udgifter
    • Regneark (BI)
    • Dokumenter
    • e-Signatur
    Salg
    • CRM
    • Salg
    • POS Butik
    • POS Restaurant
    • Abonnementer
    • Udlejning
    Hjemmeside
    • Hjemmesidebygger
    • e-Handel
    • Blog
    • Forum
    • LiveChat
    • e-Læring
    Forsyningskæde
    • Lagerbeholdning
    • Produktion
    • PLM
    • Indkøb
    • Vedligeholdelse
    • Kvalitet
    HR
    • Medarbejdere
    • Rekruttering
    • Fravær
    • Medarbejdersamtaler
    • Anbefalinger
    • Flåde
    Marketing
    • Markedsføring på sociale medier
    • E-mailmarketing
    • SMS-marketing
    • Arrangementer
    • Automatiseret marketing
    • Spørgeundersøgelser
    Tjenester
    • Projekt
    • Timesedler
    • Udkørende Service
    • Kundeservice
    • Planlægning
    • Aftaler
    Produktivitet
    • Dialog
    • Godkendelser
    • IoT
    • VoIP
    • Vidensdeling
    • WhatsApp
    Tredjepartsapps Odoo Studio Odoo Cloud-platform
  • Brancher
    Detailhandel
    • Boghandel
    • Tøjforretning
    • Møbelforretning
    • Dagligvarebutik
    • Byggemarked
    • Legetøjsforretning
    Mad og værtsskab
    • Bar og pub
    • Restaurant
    • Fastfood
    • Gæstehus
    • Drikkevareforhandler
    • Hotel
    Ejendom
    • Ejendomsmægler
    • Arkitektfirma
    • Byggeri
    • Ejendomsadministration
    • Havearbejde
    • Boligejerforening
    Rådgivning
    • Regnskabsfirma
    • Odoo-partner
    • Marketingbureau
    • Advokatfirma
    • Rekruttering
    • Audit & certificering
    Produktion
    • Tekstil
    • Metal
    • Møbler
    • Fødevareproduktion
    • Bryggeri
    • Firmagave
    Heldbred & Fitness
    • Sportsklub
    • Optiker
    • Fitnesscenter
    • Kosmetolog
    • Apotek
    • Frisør
    Håndværk
    • Handyman
    • IT-hardware og support
    • Solenergisystemer
    • Skomager
    • Rengøringsservicer
    • VVS- og ventilationsservice
    Andet
    • Nonprofitorganisation
    • Miljøagentur
    • Udlejning af billboards
    • Fotografi
    • Cykeludlejning
    • Softwareforhandler
    Gennemse alle brancher
  • Community
    Få mere at vide
    • Tutorials
    • Dokumentation
    • Certificeringer
    • Oplæring
    • Blog
    • Podcast
    Bliv klogere
    • Udannelselsesprogram
    • Scale Up!-virksomhedsspillet
    • Besøg Odoo
    Få softwaren
    • Download
    • Sammenlign versioner
    • Udgaver
    Samarbejde
    • Github
    • Forum
    • Arrangementer
    • Oversættelser
    • Bliv partner
    • Tjenester til partnere
    • Registrér dit regnskabsfirma
    Modtag tjenester
    • Find en partner
    • Find en bogholder
    • Kontakt en rådgiver
    • Implementeringstjenester
    • Kundereferencer
    • Support
    • Opgraderinger
    Github Youtube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Få en demo
  • Prissætning
  • Hjælp

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

  • CRM
  • e-Commerce
  • Bogføring
  • Lager
  • PoS
  • Projekt
  • MRP
All apps
Du skal være registreret for at interagere med fællesskabet.
All Posts People Emblemer
Tags (View all)
odoo accounting v14 pos v15
Om dette forum
Du skal være registreret for at interagere med fællesskabet.
All Posts People Emblemer
Tags (View all)
odoo accounting v14 pos v15
Om dette forum
Hjælp

How to solve this error when I confirm a mrp production?

Tilmeld

Få besked, når der er aktivitet på dette indlæg

Dette spørgsmål er blevet anmeldt
errormrpproduction
6219 Visninger
Avatar
Pascal Tremblay



Hello all,

I can't solve this error trying to confirm a mrp production.

 This is the error :


Traceback (most recent call last):

File "/home/odoo-test/odoo-8.0-20150809/openerp/http.py", line 537, in _handle_exception

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

File "/home/odoo-test/odoo-8.0-20150809/openerp/http.py", line 574, in dispatch

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

File "/home/odoo-test/odoo-8.0-20150809/openerp/http.py", line 310, in _call_function

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

File "/home/odoo-test/odoo-8.0-20150809/openerp/service/model.py", line 113, in wrapper

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

File "/home/odoo-test/odoo-8.0-20150809/openerp/http.py", line 307, in checked_call

return self.endpoint(*a, **kw)

File "/home/odoo-test/odoo-8.0-20150809/openerp/http.py", line 803, in __call__

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

File "/home/odoo-test/odoo-8.0-20150809/openerp/http.py", line 403, in response_wrap

response = f(*args, **kw)

File "/home/odoo-test/odoo-8.0-20150809/openerp/addons/web/controllers/main.py", line 948, in call_button

action = self._call_kw(model, method, args, {})

File "/home/odoo-test/odoo-8.0-20150809/openerp/addons/web/controllers/main.py", line 936, in _call_kw

return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)

File "/home/odoo-test/odoo-8.0-20150809/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/home/odoo-test/odoo-8.0-20150809/openerp/addons/mrp/wizard/mrp_product_produce.py", line 123, in do_produce

data.product_qty, data.mode, data, context=context)

File "/home/odoo-test/odoo-8.0-20150809/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/home/odoo-test/odoo-8.0-20150809/openerp/addons/mrp/mrp.py", line 986, in action_produce

new_moves = stock_mov_obj.action_consume(cr, uid, [produce_product.id], qty, location_id=produce_product.location_id.id, restrict_lot_id=lot_id, context=context)

File "/home/odoo-test/odoo-8.0-20150809/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

TypeError: action_consume() got an unexpected keyword argument 'restrict_lot_id'


Thanks to help


UPDATE #1

In the file ./odoo-8.0-20150809/openerp/addons/mrp/mrp.py, we have these lines who bring the error :

        lot_id = False 

        if wiz:

            lot_id = wiz.lot_id.id

        qty = min(subproduct_factor * production_qty_uom, produce_product.product_qty) #Needed when producing more than maximum quantity

        new_moves = stock_mov_obj.action_consume(cr, uid, [produce_product.id], qty, location_id=produce_product.location_id.id, restrict_lot_id=lot_id, context=context)
 

UPDATE #2

I have tried with « Consume only » instead. I get a new error. 


Here is the new error :


Traceback (most recent call last):

File "/home/odoo-test/odoo-8.0-20150809/openerp/http.py", line 537, in _handle_exception

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

File "/home/odoo-test/odoo-8.0-20150809/openerp/http.py", line 574, in dispatch

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

File "/home/odoo-test/odoo-8.0-20150809/openerp/http.py", line 310, in _call_function

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

File "/home/odoo-test/odoo-8.0-20150809/openerp/service/model.py", line 113, in wrapper

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

File "/home/odoo-test/odoo-8.0-20150809/openerp/http.py", line 307, in checked_call

return self.endpoint(*a, **kw)

File "/home/odoo-test/odoo-8.0-20150809/openerp/http.py", line 803, in __call__

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

File "/home/odoo-test/odoo-8.0-20150809/openerp/http.py", line 403, in response_wrap

response = f(*args, **kw)

File "/home/odoo-test/odoo-8.0-20150809/openerp/addons/web/controllers/main.py", line 948, in call_button

action = self._call_kw(model, method, args, {})

File "/home/odoo-test/odoo-8.0-20150809/openerp/addons/web/controllers/main.py", line 936, in _call_kw

return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)

File "/home/odoo-test/odoo-8.0-20150809/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/home/odoo-test/odoo-8.0-20150809/openerp/addons/mrp/wizard/mrp_product_produce.py", line 123, in do_produce

data.product_qty, data.mode, data, context=context)

File "/home/odoo-test/odoo-8.0-20150809/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/home/odoo-test/odoo-8.0-20150809/openerp/addons/mrp/mrp.py", line 1021, in action_produce

restrict_lot_id=consume['lot_id'], consumed_for=main_production_move, context=context)

File "/home/odoo-test/odoo-8.0-20150809/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

TypeError: action_consume() got an unexpected keyword argument 'consumed_for'

0
Avatar
Kassér
Pascal Tremblay
Forfatter

Still not found!

Serpent Consulting Services Pvt. Ltd.

Pascal, if you are getting this error on official modules, you must report on github..com/odoo/odoo

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

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

Tilmeld dig
Related Posts Besvarelser Visninger Aktivitet
Partial production declaration
mrp production
Avatar
Avatar
Avatar
3
mar. 21
4546
Odoo 11: Accidentally cancelled an MO MAnifacturing order
mrp production
Avatar
0
jul. 20
2960
Production Order Report
mrp production
Avatar
Avatar
2
mar. 15
6989
how to start a group of workorders simultaneously with components lots allocation ? [V13]
mrp production lots
Avatar
0
okt. 20
2339
MRP Workorder lot MO confirmation error
mrp workorder production
Avatar
0
dec. 15
5066
Community
  • Tutorials
  • Dokumentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Oversættelser
Tjenester
  • Odoo.sh-hosting
  • Support
  • Opgradere
  • Individuelt tilpasset udvikling
  • Uddannelse
  • Find en bogholder
  • Find en partner
  • Bliv partner
Om os
  • Vores virksomhed
  • Brandaktiver
  • Kontakt os
  • Stillinger
  • Arrangementer
  • Podcast
  • Blog
  • Kunder
  • Juridiske dokumenter • Privatlivspolitik
  • Sikkerhedspolitik
الْعَرَبيّة 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 er en samling open source-forretningsapps, der dækker alle dine virksomhedsbehov – lige fra CRM, e-handel og bogføring til lagerstyring, POS, projektledelse og meget mere.

Det unikke ved Odoo er, at systemet både er brugervenligt og fuldt integreret.

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