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
    • 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 Managament
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Producție
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware and 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
  • 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

Is there a way to reload the BoM into draft Manufacturing Orders?

Abonare

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

Această întrebare a fost marcată
manufacturingupdatematerialsbillv14
2 Răspunsuri
6377 Vizualizări
Imagine profil
Community Question

I have created dozens of Manufacturing Orders and the Bill of Materials has been changed.


Before confirming them, I'd like to refresh or update these MO's so that they will use the new BoM instead of the historic list of components from the BoM before the update.

1
Imagine profil
Abandonează
Imagine profil
Ray Carnes (ray)
Cel mai bun răspuns

You can create a Server Action that essentially runs the same methods that would run if you created a new Manufacturing Order.  

Be sure to click CREATE CONTEXTUAL ACTION after you've saved it so you can select all your draft MO's in a list and update them in one step:


Updated Answer: v15 (plus carry over the original Quantity):

for record in records:
prior_quantity = record.product_qty
record._onchange_bom_id()
record._onchange_move_raw()
record._onchange_move_finished()
record._onchange_location
record['product_qty'] = prior_quantity


Original Answer: v14:


for record in records:
record._compute_allowed_product_ids()
record._onchange_bom_id()
record._onchange_move_raw()
record._onchange_move_finished()
record._onchange_location
2
Imagine profil
Abandonează
Vincent Van Rossem

Hello Ray,
Thank you for your answer !
Would you by chance know what methods to use on Odoo 13.0 ?

Julie Bang

Hello Ray,

Do you have an update on this for v15?

Thanks in advance!

Ray Carnes (ray)

For v15, comment out or remove the line "record._compute_allowed_product_ids()"

Julie Bang

Thanks Ray, Works like a charm!

Frederik Becker

Thank you, Ray, for the reply. This was always a bummer.
The only issue is, that the product quantity (product_qty) is always set to 1, which may be wrong.
Also, we would like to update MO's after confirmation as well.

Do you have any idea how to achieve this? (v15

Ray Carnes (ray)

See my updated answer for v15 that changes the quantity after the update from 1 back to the original quantity.

Frederik Becker

Thanks for the answer. We need to make a little adjustment to your suggestion, because the quantity is getting changed, but the quantity of the raw lines isn't. Writing the quantity right after "(_onchange_bom_id()) fixes that:

for record in records:
prior_quantity = record.product_qty
record._onchange_bom_id()
record['product_qty'] = prior_quantity
record._onchange_move_raw()
record._onchange_move_finished()
record._onchange_location

Now I only need to figure out a way to do this with confirmed MOs or set the state to draft at the beginning and back to confirmed at the end of the server-action. But I couldn't find a pre-defined funtion to set it to draft.

Imagine profil
Michael
Cel mai bun răspuns

Is there also a way to reload the steps in the operations of a confirmed manufacturing order?
When we make changes to the operations-steps of a product with serial numbers, the work order still has the old steps until, for example, one of a batch of 20 has been completed and 19 are still available. The work order is split and a new one (FE01234--001) is generated. This then has the new steps. This leads to inconsistency in the work orders and all production orders have to be created again. Is there a workaround for this? (Odoo V16)

0
Imagine profil
Abandonează
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
How to configure bill of materials to use real available quantity when creating manufacturing orders?
manufacturing orders materials bill inventory_count
Imagine profil
2
sept. 16
4264
Adjust quantity of Manufacturing Order
manufacturing v14
Imagine profil
Imagine profil
2
aug. 22
5671
Using same Product in the BoM of the the product Rezolvat
manufacturing v14
Imagine profil
Imagine profil
1
mar. 22
3203
Modifying Report View For Upgrades
manufacturing v14
Imagine profil
Imagine profil
1
feb. 22
3012
Mass Update Manufacturing Order State Values
manufacturing v14
Imagine profil
Imagine profil
1
feb. 22
3540
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