Overslaan naar inhoud
Odoo Menu
  • Aanmelden
  • Probeer het gratis
  • Apps
    Financiën
    • Boekhouding
    • Facturatie
    • Onkosten
    • Spreadsheet (BI)
    • Documenten
    • Ondertekenen
    Verkoop
    • CRM
    • Verkoop
    • Kassasysteem winkel
    • Kassasysteem Restaurant
    • Abonnementen
    • Verhuur
    Websites
    • Websitebouwer
    • E-commerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Bevoorradingsketen
    • Voorraad
    • Productie
    • PLM
    • Inkoop
    • Onderhoud
    • Kwaliteit
    Personeelsbeheer
    • Werknemers
    • Werving & Selectie
    • Verlof
    • Evaluaties
    • Aanbevelingen
    • Wagenpark
    Marketing
    • Sociale media-marketing
    • E-mailmarketing
    • Sms-marketing
    • Evenementen
    • Marketingautomatisering
    • Enquêtes
    Diensten
    • Project
    • Urenstaten
    • Buitendienst
    • Helpdesk
    • Planning
    • Afspraken
    Productiviteit
    • Chat
    • Goedkeuringen
    • IoT
    • VoIP
    • Kennis
    • WhatsApp
    Apps van derden Odoo Studio Odoo Cloud Platform
  • Bedrijfstakken
    Detailhandel
    • Boekhandel
    • kledingwinkel
    • Meubelzaak
    • Supermarkt
    • Bouwmarkt
    • Speelgoedwinkel
    Food & Hospitality
    • Bar en Pub
    • Restaurant
    • Fastfood
    • Gastenverblijf
    • Drankenhandelaar
    • Hotel
    Vastgoed
    • Makelaarskantoor
    • Architectenbureau
    • Bouw
    • Vastgoedbeheer
    • Tuinieren
    • Vereniging van eigenaren
    Consulting
    • Accountantskantoor
    • Odoo Partner
    • Marketingbureau
    • Advocatenkantoor
    • Talentenwerving
    • Audit & Certificering
    Productie
    • Textiel
    • Metaal
    • Meubels
    • Eten
    • Brewery
    • Relatiegeschenken
    Gezondheid & Fitness
    • Sportclub
    • Opticien
    • Fitnesscentrum
    • Wellness-medewerkers
    • Apotheek
    • Kapper
    Trades
    • Klusjesman
    • IT-hardware & support
    • Zonne-energiesystemen
    • Schoenmaker
    • Schoonmaakdiensten
    • HVAC-diensten
    Andere
    • Non-profitorganisatie
    • Milieuagentschap
    • Verhuur van Billboards
    • Fotograaf
    • Fietsleasing
    • Softwareverkoper
    Browse all Industries
  • Community
    Leren
    • Tutorials
    • Documentatie
    • Certificeringen
    • Training
    • Blog
    • Podcast
    Versterk het onderwijs
    • Onderwijs- programma
    • Scale Up! Business Game
    • Bezoek Odoo
    Download de Software
    • Downloaden
    • Vergelijk edities
    • Releases
    Werk samen
    • Github
    • Forum
    • Evenementen
    • Vertalingen
    • Word een Partner
    • Services for Partners
    • Registreer je accountantskantoor
    Diensten
    • Vind een partner
    • Vind een boekhouder
    • Een adviseur ontmoeten
    • Implementatiediensten
    • Klantreferenties
    • Ondersteuning
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Vraag een demo aan
  • Prijzen
  • Help

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

  • CRM
  • e-Commerce
  • Boekhouding
  • Voorraad
  • PoS
  • Project
  • MRP
All apps
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Help

Automating Quantity Calculation in BoM Based on Product properties

Inschrijven

Ontvang een bericht wanneer er activiteit is op deze post

Deze vraag is gerapporteerd
manufacturing
3 Antwoorden
3034 Weergaven
Avatar
Mohammed Iben Ayad

Category: Manufacturing


Description:

Hello Odoo Community,

I’m working on setting up a manufacturing process in Odoo where the cost of products is calculated using a Bill of Materials (BoM). The challenge I'm facing involves calculating the quantity of raw materials needed for a product based on its properties, such as dimensions (e.g., length, width, height).

Scenario:

We are manufacturing a product called a "Raised Bed." One of the raw materials required for this product is wood. The quantity of wood required is directly dependent on the dimensions of the raised bed. 


Objective:

I would like to automate this process so that when a product variant is selected (with specific dimensions), the BoM automatically calculates the quantity of wood required based on the dimensions and updates the cost accordingly.


Question:

Is there any way to achieve this kind of dynamic quantity calculation within the standard Odoo functionality or using Odoo Studio, without custom development? Perhaps there is an Odoo module or a workaround that I haven’t considered?

Any insights, suggestions, or examples from your experience would be greatly appreciated.

Thank you!

0
Avatar
Annuleer
Lars Aam

This will require developments. But I think possible with an server action. If you can create a rule for the calculation.

Avatar
Mohammed Iben Ayad
Auteur Beste antwoord

Great Thanks, seems a good start and I will try it and get back!

0
Avatar
Annuleer
Avatar
Sunyah Faisal
Beste antwoord

Since you are using the manufacturing module, try out the module: MO and BoM variance whose author is intelliVersal integrated solutions. This module generates a variance analysis report showing the quantity and cost differences between BoM and actual MO.

0
Avatar
Annuleer
Avatar
Nazzun Hanif Ahsani
Beste antwoord

You can achieve it using module Automation Rules​and Odoo Studio

  1. First create a new field using Odoo Studio in product form for checkboxwood​product (ex: labelis_wood​)
  2. Create new automation rule that trigger when the product variant​inside BoM form is changed.
  3. Add this sample code 
# search wood product
wood = env['product.product'].search([
    ('x_studio_is_wood', '=', True)
], limit=1)

# automatic add wood as component
wood_bom_line = records.bom_line_ids.filtered(lambda r: r.product_id.x_studio_is_wood)
if not wood_bom_line and records:
    wood_bom_line = env['mrp.bom.line'].create(dict(
        bom_id                  = wood.id,
        product_qty             = 0,
    ))
    record.update(dict(bom_line_ids=[(6, 0, wood_bom_line.ids)]))

# put your custom formula here based on weight, height etc
product_variant = records.product_id
quantity = product_variant.weight + 7777

# update qty
wood_bom_line.update(dict(product_qty = quantity))


0
Avatar
Annuleer
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!

Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!

Aanmelden
Gerelateerde posts Antwoorden Weergaven Activiteit
Master Production Scheduling in "Manufacturing module"
manufacturing
Avatar
Avatar
1
nov. 25
449
How to make Odoo schedule manufacturing in parallel?
manufacturing
Avatar
0
okt. 25
622
Change in Work Center Productivity Accounting
manufacturing
Avatar
Avatar
1
sep. 25
1422
How to disable form view if there are not registers?
manufacturing
Avatar
Avatar
2
sep. 25
1162
Columna calculada en orden de producción
manufacturing
Avatar
Avatar
2
sep. 25
953
Community
  • Tutorials
  • Documentatie
  • Forum
Open Source
  • Downloaden
  • Github
  • Runbot
  • Vertalingen
Diensten
  • Odoo.sh Hosting
  • Ondersteuning
  • Upgrade
  • Gepersonaliseerde ontwikkelingen
  • Onderwijs
  • Vind een boekhouder
  • Vind een partner
  • Word een Partner
Over ons
  • Ons bedrijf
  • Merkelementen
  • Neem contact met ons op
  • Vacatures
  • Evenementen
  • Podcast
  • Blog
  • Klanten
  • Juridisch • Privacy
  • Beveiliging
الْعَرَبيّة 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 een suite van open source zakelijke apps die aan al je bedrijfsbehoeften voldoet: CRM, E-commerce, boekhouding, inventaris, kassasysteem, projectbeheer, enz.

Odoo's unieke waardepropositie is om tegelijkertijd zeer gebruiksvriendelijk en volledig geïntegreerd te zijn.

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