Přejít na obsah
Odoo Menu
  • Přihlásit se
  • Vyzkoušejte zdarma
  • Aplikace
    Finance
    • Účetnictví
    • Fakturace
    • Výdaje
    • Spreadsheet (BI)
    • Dokumenty
    • Podpisy
    Prodej
    • CRM
    • Prodej
    • POS Obchod
    • POS Restaurace
    • Předplatné
    • Pronájem
    Webové stránky
    • Webové stránky
    • E-shop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Dodavatelský řetězec
    • Sklad
    • Výroba
    • PLM
    • Nákup
    • Údržba
    • Kvalita
    Lidské zdroje
    • Zaměstnanci
    • Nábor
    • Volno
    • Hodnocení zaměstnanců
    • Doporučení
    • Vozový park
    Marketing
    • Marketing sociálních sítí
    • Emailový marketing
    • SMS Marketing
    • Události
    • Marketingová automatizace
    • Dotazníky
    Služby
    • Projekt
    • Časové výkazy
    • Práce v terénu
    • Helpdesk
    • Plánování
    • Schůzky
    Produktivita
    • Diskuze
    • Schvalování
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Aplikace třetích stran Odoo Studio Odoo cloudová platforma
  • Branže
    Maloobchod
    • Knihkupectví
    • Obchod s oblečením
    • Obchod s nábytkem
    • Potraviny
    • Obchod s hardwarem
    • Hračkářství
    Jídlo a pohostinství
    • Bar a Pub
    • Restaurace
    • Fast Food
    • Penzion
    • Distributor nápojů
    • Hotel
    Nemovitost
    • Realitní kancelář
    • Architektonická firma
    • Stavba
    • Správa nemovitostí
    • Zahradnictví
    • Asociace vlastníků nemovitosti
    Poradenství
    • Účetní firma
    • Odoo Partner
    • Marketingová agentura
    • Právník
    • Akvizice talentů
    • Audit a certifikace
    Výroba
    • Textil
    • Kov
    • Nábytek
    • Jídlo
    • Pivovar
    • Korporátní dárky
    Zdraví a fitness
    • Sportovní klub
    • Prodejna brýli
    • Fitness Centrum
    • Wellness praktikové
    • Lékárna
    • Kadeřnictví
    Transakce
    • Údržbář
    • Podpora IT & hardware
    • Systémy solární energie
    • Výrobce obuvi
    • Úklidové služby
    • Služby HVAC
    Ostatní
    • Nezisková organizace
    • Agentura pro životní prostředí
    • Pronájem billboardů
    • Fotografování
    • Leasing jízdních kol
    • Prodejce softwaru
    Procházet všechna odvětví
  • Komunita
    Edukační program
    • Tutoriály
    • Dokumentace
    • Certifikace
    • Vzdělávání
    • Blog
    • Podcast
    Podpora vzdělávání
    • Vzdělávací program
    • Scale Up! Hra na firmu
    • Navštivte Odoo
    Získat software
    • Stáhnout
    • Porovnejte edice
    • Verze
    Spolupráce
    • Github
    • Fórum
    • Události
    • Překlady
    • Stát se partnerem
    • Služby pro partnery
    • Registrujte svou účetní firmu
    Získat služby
    • Najít partnera
    • Najít účetní
    • Setkejte se s poradcem
    • Implementační služby
    • Zákaznické reference
    • Podpora
    • Upgrady
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dohodnout demo
  • Ceník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účetnictví
  • Sklad
  • PoS
  • Projekty
  • MRP
All apps
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
Pomoc

Location capacity by volume

Odebírat

Get notified when there's activity on this post

This question has been flagged
inventoryOdoov18
1 Odpovědět
3077 Zobrazení
Avatar
Cristofher Saquilme
Hello everyone, how could I configure the capacity of a storage location based on volume in odoo 18?
0
Avatar
Zrušit
Avatar
Gracious Joseph
Nejlepší odpověď

In Odoo 18, you can configure the capacity of a storage location based on volume by utilizing custom fields, rules, and automation. Odoo doesn’t have a built-in feature for setting location capacity by volume, but this can be achieved with some customization. Here's how to implement it step-by-step:

1. Add a Volume Field to Storage Locations

You can add a custom field for volume capacity and use Odoo’s automated actions or custom modules to manage it.

Using Studio (If Available):

  1. Go to Inventory > Configuration > Locations.
  2. Open Odoo Studio (if enabled).
  3. Add the following fields:
    • Capacity Volume (m³):
      • Field Name: x_volume_capacity
      • Type: Float
      • Label: Volume Capacity
    • Current Volume Used (m³):
      • Field Name: x_volume_used
      • Type: Float
      • Label: Volume Used
  4. Save the changes.

Without Studio (Custom Module):

If Studio is unavailable, you can achieve this using a custom module. Here's an example:

pythonCopy codefrom odoo import models, fields, api

class StockLocation(models.Model):
    _inherit = 'stock.location'

    volume_capacity = fields.Float(string="Capacity Volume (m³)", help="Maximum volume the location can hold.")
    volume_used = fields.Float(string="Current Volume Used (m³)", compute='_compute_volume_used', store=True)

    @api.depends('quant_ids')
    def _compute_volume_used(self):
        for location in self:
            location.volume_used = sum(location.quant_ids.mapped(lambda q: q.quantity * q.product_id.volume))

2. Set Product Volume

Odoo already supports volume on the product level:

  1. Go to Inventory > Products.
  2. Open a product form view.
  3. Under the Inventory tab, ensure the "Volume" field is filled in.
    • This value represents the volume of a single unit of the product.

3. Automate Volume Calculation

Ensure the total volume of products in a location doesn’t exceed its capacity:

Using Automated Actions:

  1. Go to Settings > Technical > Automated Actions.
  2. Create a new automated action:
    • Model: stock.quant
    • Trigger: On Update or On Creation.
    • Condition: Add a condition to check if the location's volume_used exceeds volume_capacity.
    • Action: Prevent the transaction or notify the user.
    Example Python code for the action:
    pythonCopy codeif record.location_id.volume_capacity > 0 and record.location_id.volume_used > record.location_id.volume_capacity:
        raise Warning(f"Location {record.location_id.name} has exceeded its volume capacity!")
    

Using Custom Python Constraints:

You can enforce a constraint directly in the model:

pythonCopy codefrom odoo.exceptions import ValidationError

class StockLocation(models.Model):
    _inherit = 'stock.location'

    @api.constrains('quant_ids')
    def _check_volume_capacity(self):
        for location in self:
            if location.volume_capacity > 0 and location.volume_used > location.volume_capacity:
                raise ValidationError(f"Location {location.name} has exceeded its volume capacity!")

4. Enhance Stock Operations

You can further improve the process:

  1. Restrict Transfers: Add validation during stock picking to ensure the volume added to a location doesn’t exceed its capacity. Example:
    pythonCopy codeclass StockPicking(models.Model):
        _inherit = 'stock.picking'
    
        @api.constrains('move_line_ids')
        def _check_location_volume(self):
            for move_line in self.move_line_ids:
                location = move_line.location_dest_id
                if location.volume_capacity > 0 and (location.volume_used + move_line.product_id.volume * move_line.qty_done) > location.volume_capacity:
                    raise ValidationError(f"Cannot move products. Location {location.name} will exceed its volume capacity.")
    
  2. Add Alerts: Use server actions or scheduled actions to alert warehouse managers if a location is close to its capacity.

5. Reporting and Dashboard

  • Volume Utilization Report: Create a custom report using Odoo’s reporting tools to monitor locations’ volume utilization.
  • Dashboard Widget: Add a widget showing the top locations nearing their capacity.

Final Notes

  • User Training: Train warehouse staff on maintaining product volumes for accurate tracking.
  • Testing: Before deploying, test the configuration in a development or staging environment.

0
Avatar
Zrušit
Cristofher Saquilme
Autor

Thanks Gracious, I was seeing that you can configure storage categories and have the option to add maximum weight, can't you add maximum volume there either? or in general for odoo 18 it does not have the maximum volume option?

Gracious Joseph

n Odoo 18, maximum weight is a built-in feature for storage locations, but maximum volume is not a native option provided out-of-the-box. However, it is possible to extend Odoo to include the maximum volume functionality for storage locations using customizations. Here's an explanation and possible solutions:

1. Maximum Weight in Odoo
Odoo allows you to configure a maximum weight for storage locations, which helps ensure that no more products are assigned to a location than it can physically handle. This is available under:

Inventory > Configuration > Locations (in the warehouse module).
2. Maximum Volume in Odoo
Out-of-the-Box Support
As of Odoo 18, there is no default feature to configure or track maximum volume for storage locations.
Customization Possibilities
You can implement the maximum volume feature by adding a custom field to the location configuration and logic to validate the total volume of products stored.

3. Customization to Add Maximum Volume
Here’s how you can add the maximum volume option:

Step 1: Add a Maximum Volume Field
Extend the stock.location Model: Create a custom module to add a maximum_volume field to storage locations.

from odoo import models, fields, api

class StockLocation(models.Model):
_inherit = 'stock.location'

maximum_volume = fields.Float(string="Maximum Volume (m³)", help="Maximum volume allowed for this location.")
current_volume = fields.Float(string="Current Volume (m³)", compute="_compute_current_volume", store=True)

@api.depends('quant_ids')
def _compute_current_volume(self):
for location in self:
total_volume = sum(quant.product_id.volume * quant.quantity for quant in location.quant_ids)
location.current_volume = total_volume
Add the Field to the Location Form View: Extend the form view to show the new field.

<record id="view_location_form_inherit" model="ir.ui.view">
<field name="name">stock.location.form.inherit</field>
<field name="model">stock.location</field>
<field name="inherit_id" ref="stock.view_location_form" />
<field name="arch" type="xml">
<xpath expr="//group[@name='location_usage']" position="after">
<group string="Capacity">
<field name="maximum_volume" />
<field name="current_volume" readonly="1" />
</group>
</xpath>
</field>
</record>
Step 2: Add Validation for Maximum Volume
Check Volume Before Adding Stock: Override the method responsible for updating inventory (e.g., stock.move).

from odoo import models, exceptions

class StockMove(models.Model):
_inherit = 'stock.move'

def _action_done(self):
for move in self:
location = move.location_dest_id
if location.maximum_volume > 0:
new_volume = location.current_volume + (move.product_id.volume * move.quantity_done)
if new_volume > location.maximum_volume:
raise exceptions.ValidationError(
f"Exceeding maximum volume for location {location.name}. Allowed: {location.maximum_volume} m³."
)
return super(StockMove, self)._action_done()
Test the Logic:

Ensure the logic prevents stock operations when the volume exceeds the limit.
Test various scenarios, including transfers and inventory adjustments.
4. Benefits of Adding Maximum Volume
Prevents overloading storage locations by volume.
Provides more precise control over inventory.
Helps align with physical warehouse constraints for volume-based planning.
5. Alternative: Explore Third-Party Modules
If developing a custom solution isn’t viable, check the Odoo App Store for third-party modules that may offer this functionality.

Cristofher Saquilme
Autor

Thanks for your response Gracious

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

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

Přihlásit se
Related Posts Odpovědi Zobrazení Aktivita
Odoo Inventory - Reference warehouse visit Netherlands - >1000 orders per day
inventory
Avatar
Avatar
1
lis 25
155
Odoo Inventory Valuation Report
inventory
Avatar
Avatar
Avatar
Avatar
3
lis 25
7375
Inventory rotation or inventory turnover
inventory
Avatar
Avatar
1
říj 25
1758
Lot/Serial Number Vyřešeno
inventory
Avatar
Avatar
Avatar
2
zář 25
964
track inventory history
inventory
Avatar
Avatar
1
srp 25
1787
Komunita
  • Tutoriály
  • Dokumentace
  • Fórum
Open Source
  • Stáhnout
  • Github
  • Runbot
  • Překlady
Služby
  • Odoo.sh hostování
  • Podpora
  • Upgrade
  • Nestandardní vývoj
  • Edukační program
  • Najít účetní
  • Najít partnera
  • Stát se partnerem
O nás
  • Naše společnost
  • Podklady značky
  • Kontakujte nás
  • Práce
  • Události
  • Podcast
  • Blog
  • Zákazníci
  • Právní dokumenty • Soukromí
  • Zabezpečení
الْعَرَبيّة 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 je balíček open-source aplikací, které pokrývají všechny potřeby vaší společnosti: CRM, e-shop, účetnictví, sklady, kasy, projektové řízení a další.

Unikátní nabídka od Odoo poskytuje velmi jednoduché uživatelské rozhraní a vše je integrované na jednom místě.

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