mirror of
https://github.com/inventree/inventree-website.git
synced 2025-04-27 21:16:45 +00:00
301 lines
14 KiB
HTML
301 lines
14 KiB
HTML
<!DOCTYPE html>
|
||
<html lang=" en-US ">
|
||
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||
|
||
<link rel="stylesheet" href="/assets/splide/css/splide.min.css">
|
||
<link rel="stylesheet" href="/assets/index.css">
|
||
<link rel="shortcut icon" type="image/png" href="/assets/icon/favicon.ico">
|
||
|
||
<script src="/assets/splide/js/splide.min.js"></script>
|
||
|
||
<!-- Fontawesome integration -->
|
||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css">
|
||
|
||
<title>InvenTree - Inventree Bulk Plugin</title>
|
||
<meta itemprop="description" name="description"
|
||
content="InvenTree is an open-source inventory management system which provides intuitive parts management and stock control. It is at the center of an ecosystem of a..." />
|
||
|
||
<!-- Begin Jekyll SEO tag v2.8.0 -->
|
||
<title>Inventree Bulk Plugin | InvenTree</title>
|
||
<meta name="generator" content="Jekyll v4.3.3" />
|
||
<meta property="og:title" content="Inventree Bulk Plugin" />
|
||
<meta name="author" content="wolflu05" />
|
||
<meta property="og:locale" content="en_US" />
|
||
<meta name="description" content="Bulk creation plugin for InvenTree" />
|
||
<meta property="og:description" content="Bulk creation plugin for InvenTree" />
|
||
<link rel="canonical" href="/wolflu05/inventree-bulk-plugin" />
|
||
<meta property="og:url" content="/wolflu05/inventree-bulk-plugin" />
|
||
<meta property="og:site_name" content="InvenTree" />
|
||
<meta property="og:type" content="article" />
|
||
<meta property="article:published_time" content="2025-04-26T01:13:50+00:00" />
|
||
<meta name="twitter:card" content="summary" />
|
||
<meta property="twitter:title" content="Inventree Bulk Plugin" />
|
||
<script type="application/ld+json">
|
||
{"@context":"https://schema.org","@type":"BlogPosting","author":{"@type":"Person","name":"wolflu05"},"dateModified":"2025-04-26T01:13:50+00:00","datePublished":"2025-04-26T01:13:50+00:00","description":"Bulk creation plugin for InvenTree","headline":"Inventree Bulk Plugin","mainEntityOfPage":{"@type":"WebPage","@id":"/wolflu05/inventree-bulk-plugin"},"url":"/wolflu05/inventree-bulk-plugin"}</script>
|
||
<!-- End Jekyll SEO tag -->
|
||
|
||
</head>
|
||
|
||
<body class="flex flex-col antialiased cm-gray-1 min-h-screen">
|
||
<div class="flex-none">
|
||
<header class="cm-gray-2 body-font sticky top-0 z-50 bg-gradient-to-r from-white to-secondary">
|
||
<div class="container mx-auto flex flex-wrap p-5 flex-row items-center">
|
||
<a class="flex title-font font-medium items-center cm-gray-1 mb-0 mr-2" href="/">
|
||
<img src="/assets/logo.png" alt="logo" height="32" width="32" class="h-8">
|
||
<span class="ml-3 text-xl">InvenTree</span>
|
||
</a>
|
||
|
||
<div class="flex-grow xs:flex-none"></div>
|
||
|
||
<nav class="md:mr-auto md:py-1 xs:ml-4 xs:pl-4 xs:border-l xs:border-gray-400 flex flex-wrap items-center text-base justify-center">
|
||
<a class="mr-5 hover:cm-gray-1" href="/deploy.html">Deploy</a>
|
||
<a class="mr-5 hover:cm-gray-1" href="https://docs.inventree.org/en/stable/">Docs</a>
|
||
<a class="mr-5 hover:cm-gray-1" href="/blog">Blog</a>
|
||
</nav>
|
||
|
||
|
||
</div>
|
||
</header> <article class="max-w-p90">
|
||
|
||
<h2>inventree-bulk-plugin
|
||
<span class="sm:ml-2 text-sm">
|
||
<a href="/wolflu05">
|
||
<span class="inline-flex">
|
||
<img src="https://github.com/wolflu05.png?size=40" alt="mdo" class="self-center w-5 h-5 rounded-full" style="margin:0px">
|
||
<p> wolflu05</p>
|
||
</span>
|
||
</a></span>
|
||
<span class="sm:ml-2 text-sm">last modified: 26 Apr 2025</span>
|
||
</h2>
|
||
|
||
<div class="flex-wrap md:flex md:flex-nowrap">
|
||
<div class="w-full md:w-auto md:mr-4">
|
||
<p>Bulk creation plugin for InvenTree</p>
|
||
|
||
<h1 id="inventree-bulk-plugin">inventree-bulk-plugin</h1>
|
||
|
||
<p><a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License: MIT"></a>
|
||
<img src="https://github.com/wolflu05/inventree-bulk-plugin/actions/workflows/ci.yml/badge.svg" alt="CI"></p>
|
||
|
||
<p>This plugin helps you bulk create storage locations and part categories in <a href="https://inventree.org/">InvenTree</a> by using customized naming strategies. That means you not only have the option to generate multidimensional* names for stock locations or part categories, but also have the option to save the templates for later usage if your storage room uses e.g. drawer towers, saved templates help to ensure naming consistency for all later added towers.</p>
|
||
|
||
<blockquote>
|
||
<p>ℹ️ * multidimensional means that you are not limited to namings like <code class="language-plaintext highlighter-rouge">D1</code>,<code class="language-plaintext highlighter-rouge">D2</code>, .. but also something like <code class="language-plaintext highlighter-rouge">D1.A</code>, <code class="language-plaintext highlighter-rouge">D1.B</code>, <code class="language-plaintext highlighter-rouge">D2.A</code>, <code class="language-plaintext highlighter-rouge">D2.B</code>, …</p>
|
||
</blockquote>
|
||
|
||
<p>This will generate the previous mentioned example:</p>
|
||
|
||
<p><img src="https://github.com/wolflu05/inventree-bulk-plugin/assets/76838159/c1ad6ccd-bc27-445b-a3fc-ae5ce74390b5" alt="image"></p>
|
||
|
||
<p>If you want to try out the templates on you’re own, you can just copy the below json to your clipboard and use the “New untitled schema from clipboard” button to import them (see <a href="https://github.com/wolflu05/inventree-bulk-plugin#import-export">import/export</a>). For more examples refer to the <a href="https://github.com/wolflu05/inventree-bulk-plugin">plugin documentation</a>.</p>
|
||
|
||
<div class="language-json highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="p">{</span><span class="nl">"name"</span><span class="p">:</span><span class="s2">"Example"</span><span class="p">,</span><span class="nl">"template_type"</span><span class="p">:</span><span class="s2">"STOCK_LOCATION"</span><span class="p">,</span><span class="nl">"template"</span><span class="p">:{</span><span class="nl">"version"</span><span class="p">:</span><span class="s2">"1.0.0"</span><span class="p">,</span><span class="nl">"input"</span><span class="p">:{},</span><span class="nl">"templates"</span><span class="p">:[],</span><span class="nl">"output"</span><span class="p">:{</span><span class="nl">"parent_name_match"</span><span class="p">:</span><span class="s2">"true"</span><span class="p">,</span><span class="nl">"dimensions"</span><span class="p">:[</span><span class="s2">"*NUMERIC"</span><span class="p">,</span><span class="s2">"*ALPHA"</span><span class="p">],</span><span class="nl">"count"</span><span class="p">:[</span><span class="s2">"3"</span><span class="p">,</span><span class="s2">"2"</span><span class="p">],</span><span class="nl">"generate"</span><span class="p">:{</span><span class="nl">"name"</span><span class="p">:</span><span class="s2">"D."</span><span class="p">},</span><span class="nl">"childs"</span><span class="p">:[]}}}</span><span class="w">
|
||
</span></code></pre></div></div>
|
||
|
||
<h2 id="️-installation">⚙️ Installation</h2>
|
||
|
||
<p>Install this plugin as follows:</p>
|
||
|
||
<ol>
|
||
<li>Make sure you allow the use of the url integration and app integration (see <a href="https://github.com/wolflu05/inventree-bulk-plugin#why-does-this-plugin-needs-the-app-mixin">Why does this plugin needs the app mixin?</a>)</li>
|
||
<li>Goto Settings > Plugins > Install Plugin, enter <code class="language-plaintext highlighter-rouge">inventree-bulk-plugin</code> as package name. Enable the confirm switch and click submit.</li>
|
||
<li>Restart your server and activate the plugin.</li>
|
||
<li>Stop your server and run <code class="language-plaintext highlighter-rouge">invoke update</code> (for docker installs it is <code class="language-plaintext highlighter-rouge">docker-compose inventree-server invoke update</code>). This ensures that all migrations run and the static files get collected. You can now start your server again and start using the plugin.</li>
|
||
</ol>
|
||
|
||
<blockquote>
|
||
<p>❗At least InvenTree v0.12.7 is required to use this plugin.</p>
|
||
</blockquote>
|
||
|
||
<h2 id="-documentation">📖 Documentation</h2>
|
||
|
||
<p>Refer to the <a href="https://github.com/wolflu05/inventree-bulk-plugin">plugin documentation</a> for further examples, instructions and information.</p>
|
||
|
||
</div>
|
||
|
||
<div class="w-full md:w-1/4">
|
||
<h2 class="block sm:hidden">Detail section</h2>
|
||
<div>
|
||
<p class="mb-0">License:
|
||
<small>
|
||
<i class="fa-brands fa-osi"></i>
|
||
MIT<br>
|
||
</small>
|
||
</p>
|
||
<div class="">
|
||
Status:<br>
|
||
<div>
|
||
<small>
|
||
|
||
<i class="fa-regular fa-circle-check success"></i>Stable
|
||
|
||
</small>
|
||
</div>
|
||
<div>
|
||
<small>
|
||
|
||
<i class="fa-regular fa-circle-check success"></i>Maintained
|
||
|
||
</small>
|
||
</div>
|
||
</div>
|
||
Package on PyPI:<pre class="my-0">inventree-bulk-plugin</pre>
|
||
|
||
|
||
|
||
|
||
|
||
<a href="https://github.com/wolflu05/inventree-bulk-plugin/issues" class="no-underline" aria-label="open the issue tracker">
|
||
<div>
|
||
<h4 class="plugin_links">Issue Tracker <i class="fa-solid fa-arrow-up-right-from-square" title="External link"></i>
|
||
</h4>
|
||
</div>
|
||
</a>
|
||
|
||
|
||
|
||
<a href="https://github.com/wolflu05/inventree-bulk-plugin" class="no-underline" aria-label="open source on GitHub">
|
||
<div>
|
||
<h4 class="plugin_links">Sourcecode on GitHub <i class="fa-solid fa-arrow-up-right-from-square" title="External link"></i>
|
||
</h4>
|
||
<p class="font-normal">wolflu05/inventree-bulk-plugin</p>
|
||
</div>
|
||
</a>
|
||
|
||
|
||
|
||
|
||
<div>
|
||
<h4 class="plugin_links">Categories</h4>
|
||
<div>
|
||
|
||
<a href="/plugins/categories/#appmixin"><span class="plugin_cat">AppMixin</span></a>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
<div>
|
||
<h4 class="plugin_links">Tags</h4>
|
||
<div>
|
||
|
||
<a href="/plugins/tags/#bulk"><span class="plugin_tag">Bulk</span></a>
|
||
|
||
<a href="/plugins/tags/#stock"><span class="plugin_tag">Stock</span></a>
|
||
|
||
<a href="/plugins/tags/#part"><span class="plugin_tag">Part</span></a>
|
||
|
||
<a href="/plugins/tags/#locations"><span class="plugin_tag">Locations</span></a>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
</article>
|
||
|
||
</div>
|
||
|
||
<div class="flex-grow"></div>
|
||
<div class="flex-none">
|
||
<footer class="cm-gray-2 body-font">
|
||
<div class="container px-5 pt-8 mx-auto flex md:flex-row md:flex-nowrap flex-wrap flex-col">
|
||
<div class="w-64 flex-shrink-0 md:mx-0 mx-auto text-center md:text-left">
|
||
<div class="flex title-font font-medium items-center md:justify-start justify-center cm-gray-1">
|
||
<img src="/assets/logo.png" alt="logo" height="32" width="32" class="h-8">
|
||
<span class="ml-3 text-xl">InvenTree</span>
|
||
</div>
|
||
<p class="mt-2 text-sm cm-gray-3">Intuitive Inventory Management</p>
|
||
</div>
|
||
|
||
<div class="flex-grow flex flex-wrap md:pl-10 mb-1 md:mt-0 mt-10 md:text-left text-center md:justify-left justify-center">
|
||
|
||
|
||
<div class="md:w-1/4 px-4">
|
||
<h2 class="footer-categorie title-font">
|
||
Quick
|
||
</h2>
|
||
<nav class="list-none mb-10"><ul>
|
||
|
||
<li><a href="/demo.html" class="footer-link">Demo</a></li>
|
||
|
||
<li><a href="/deploy.html" class="footer-link">Deploy</a></li>
|
||
|
||
<li><a href="https://docs.inventree.org/en/stable/" class="footer-link">Docs</a></li>
|
||
|
||
<li><a href="/news" class="footer-link">News</a></li>
|
||
|
||
<li><a href="/plugins" class="footer-link">Plugin List</a></li>
|
||
|
||
</ul></nav>
|
||
</div>
|
||
|
||
<div class="md:w-1/4 px-4">
|
||
<h2 class="footer-categorie title-font">
|
||
<a href="/extend/">Ecosystem</a>
|
||
</h2>
|
||
<nav class="list-none mb-10"><ul>
|
||
|
||
<li><a href="/extend/api.html" class="footer-link">API</a></li>
|
||
|
||
<li><a href="/extend/app.html" class="footer-link">App</a></li>
|
||
|
||
<li><a href="/extend/plugin/" class="footer-link">Plugins</a></li>
|
||
|
||
<li><a href="/extend/integrate/" class="footer-link">Integrations</a></li>
|
||
|
||
</ul></nav>
|
||
</div>
|
||
|
||
<div class="md:w-1/4 px-4">
|
||
<h2 class="footer-categorie title-font">
|
||
Sitemap
|
||
</h2>
|
||
<nav class="list-none mb-10"><ul>
|
||
|
||
<li><a href="/about/" class="footer-link">About</a></li>
|
||
|
||
<li><a href="/alternatives/" class="footer-link">Alternatives</a></li>
|
||
|
||
<li><a href="/blog" class="footer-link">Blog</a></li>
|
||
|
||
<li><a href="/contribute.html" class="footer-link">Contribute</a></li>
|
||
|
||
<li><a href="/support.html" class="footer-link">Support</a></li>
|
||
|
||
</ul></nav>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
<div class="bg-gray-100">
|
||
<div class="container mx-auto py-4 px-5 flex flex-wrap flex-col sm:flex-row">
|
||
<p class="cm-gray-2 text-sm text-center sm:text-left">© 2021-now InvenTree by<a href="https://github.com/inventree" rel="noopener" class="cm-gray-2 ml-1" target="_blank">@inventree</a>— website made with ♥ by<a href="https://github.com/matmair" rel="noopener" class="cm-gray-2 ml-1" target="_blank">@matmair</a></p>
|
||
<span class="inline-flex sm:ml-auto sm:mt-0 mt-2 justify-center sm:justify-start">
|
||
<a href="https://github.com/inventree/inventree" alt="github repo" class="ml-3 cm-gray-3">
|
||
<img class="h-5 w-5" alt="GitHub logo" src="/assets/github.svg">
|
||
</a>
|
||
<a href="https://reddit.com/r/inventree" alt="Reddit" class="ml-3 cm-gray-3">
|
||
<img class="h-5 w-5" alt="Reddit logo" src="/assets/reddit.svg">
|
||
</a>
|
||
<a href="https://twitter.com/inventreedb" alt="Twitter" class="ml-3 cm-gray-3">
|
||
<img class="h-5 w-5" alt="Twitter logo" src="/assets/twitter.svg">
|
||
</a>
|
||
<a href="https://chaos.social/@InvenTree" rel="me" alt="Mastodon" class="ml-3 cm-gray-3">
|
||
<img class="h-5 w-5" alt="Mastodon logo" src="/assets/mastodon.svg">
|
||
</a>
|
||
</span>
|
||
</div>
|
||
</div>
|
||
</footer>
|
||
|
||
</div>
|
||
</body>
|
||
|
||
</html>
|