Files
inventree-website/plugins/inventree-ipn-generator/index.html
T
2026-11-22 11:40:43 +00:00

2057 lines
43 KiB
HTML

<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="description" content="InvenTree is an open-source inventory management system, providing intuitive parts management and stock control for businesses and hobbyists alike.">
<meta name="author" content="LavissaWoW">
<link rel="canonical" href="https://inventree.org/plugins/inventree-ipn-generator/">
<link rel="icon" href="../../assets/favicon.ico">
<meta name="generator" content="zensical-0.1.1">
<title>inventree-ipn-generator - InvenTree</title>
<link rel="stylesheet" href="../../assets/stylesheets/modern/main.ebb7f775.min.css">
<link rel="stylesheet" href="../../assets/stylesheets/modern/palette.b60ce83d.min.css">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter:300,300i,400,400i,500,500i,700,700i%7CJetBrains+Mono:400,400i,700,700i&amp;display=fallback">
<style>:root{--md-text-font:"Inter";--md-code-font:"JetBrains Mono"}</style>
<link rel="stylesheet" href="../../stylesheets/splide.min.css">
<link rel="stylesheet" href="../../stylesheets/extra.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@3.31.0/dist/tabler-icons.min.css">
<script>__md_scope=new URL("../..",location),__md_scope.pathname.endsWith("/")||(__md_scope=new URL(__md_scope.pathname+"/",location)),__md_hash=e=>[...e].reduce(((e,t)=>(e<<5)-e+t.charCodeAt(0)),0),__md_get=(e,t=localStorage,_=__md_scope)=>JSON.parse(t.getItem(_.pathname+"."+e)),__md_set=(e,t,_=localStorage,a=__md_scope)=>{try{_.setItem(a.pathname+"."+e,JSON.stringify(t))}catch(e){}},document.documentElement.setAttribute("data-platform",navigator.platform)</script>
<link rel="alternate" type="application/rss+xml" title="InvenTree Blog" href="../../blog/feed_rss_created.xml">
<link rel="alternate" type="application/rss+xml" title="InvenTree News" href="../../news/feed_rss_created.xml">
<meta property="og:site_name" content="InvenTree">
<meta property="og:title" content="inventree-ipn-generator">
<meta property="og:description" content="inventree-ipn-generator - a community plugin for InvenTree, published by LavissaWoW.">
<meta property="og:image" content="https://inventree.org/assets/social-card.png">
<meta property="og:image:alt" content="InvenTree - Intuitive Inventory Management">
<meta property="og:url" content="https://inventree.org/plugins/inventree-ipn-generator/">
<meta property="og:type" content="website">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@inventreedb">
<!-- Mastodon profile verification -->
<link rel="me" href="https://chaos.social/@InvenTree">
</head>
<body dir="ltr" data-md-color-scheme="default" data-md-color-primary="blue" data-md-color-accent="light-blue">
<input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
<input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
<label class="md-overlay" for="__drawer" aria-hidden="true"></label>
<div data-md-component="skip">
<a href="#__skip" class="md-skip">
Skip to content
</a>
</div>
<div data-md-component="announce">
</div>
<header class="md-header md-header--shadow" data-md-component="header">
<nav class="md-header__inner md-grid" aria-label="Header">
<a href="../.." title="InvenTree" class="md-header__button md-logo" aria-label="InvenTree" data-md-component="logo">
<img src="../../assets/logo.png" alt="InvenTree">
</a>
<label class="md-header__button md-icon" for="__drawer">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="lucide lucide-menu" viewBox="0 0 24 24"><path d="M4 5h16M4 12h16M4 19h16"/></svg>
<span class="md-visually-hidden">Navigation</span>
</label>
<div class="md-header__title" data-md-component="header-title">
<div class="md-header__ellipsis">
<div class="md-header__topic">
<span class="md-ellipsis">
InvenTree
</span>
</div>
<div class="md-header__topic" data-md-component="header-topic">
<span class="md-ellipsis">
Inventree ipn generator
</span>
</div>
</div>
</div>
<nav class="md-tabs iv-header-tabs" aria-label="Tabs">
<ul class="md-tabs__list">
<li class="md-tabs__item">
<a href="../../blog/" class="md-tabs__link">
Blog
</a>
</li>
<li class="md-tabs__item">
<a href="../../features/" class="md-tabs__link">
Features
</a>
</li>
<li class="md-tabs__item">
<a href="../" class="md-tabs__link">
Plugins
</a>
</li>
<li class="md-tabs__item">
<a href="../../about/" class="md-tabs__link">
Community
</a>
</li>
<li class="md-tabs__item iv-tab-external">
<a href="https://docs.inventree.org/en/stable/" class="md-tabs__link" target="_blank" rel="noopener noreferrer">
Docs
<i class="ti ti-external-link" aria-hidden="true"></i>
</a>
</li>
<li class="md-tabs__item iv-tab-external">
<a href="https://demo.inventree.org/" class="md-tabs__link" target="_blank" rel="noopener noreferrer">
Demo
<i class="ti ti-external-link" aria-hidden="true"></i>
</a>
</li>
</ul>
</nav>
<form class="md-header__option" data-md-component="palette">
<input class="md-option" data-md-color-media="(prefers-color-scheme: light)" data-md-color-scheme="default" data-md-color-primary="blue" data-md-color-accent="light-blue" aria-label="Switch to dark mode" type="radio" name="__palette" id="__palette_0">
<label class="md-header__button md-icon" title="Switch to dark mode" for="__palette_1" hidden>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17 7H7a5 5 0 0 0-5 5 5 5 0 0 0 5 5h10a5 5 0 0 0 5-5 5 5 0 0 0-5-5m0 8a3 3 0 0 1-3-3 3 3 0 0 1 3-3 3 3 0 0 1 3 3 3 3 0 0 1-3 3"/></svg>
</label>
<input class="md-option" data-md-color-media="(prefers-color-scheme: dark)" data-md-color-scheme="slate" data-md-color-primary="blue" data-md-color-accent="light-blue" aria-label="Switch to light mode" type="radio" name="__palette" id="__palette_1">
<label class="md-header__button md-icon" title="Switch to light mode" for="__palette_0" hidden>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17 6H7c-3.31 0-6 2.69-6 6s2.69 6 6 6h10c3.31 0 6-2.69 6-6s-2.69-6-6-6m0 10H7c-2.21 0-4-1.79-4-4s1.79-4 4-4h10c2.21 0 4 1.79 4 4s-1.79 4-4 4M7 9c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"/></svg>
</label>
</form>
<script>var palette=__md_get("__palette");if(palette&&palette.color){if("(prefers-color-scheme)"===palette.color.media){var media=matchMedia("(prefers-color-scheme: light)"),input=document.querySelector(media.matches?"[data-md-color-media='(prefers-color-scheme: light)']":"[data-md-color-media='(prefers-color-scheme: dark)']");palette.color.media=input.getAttribute("data-md-color-media"),palette.color.scheme=input.getAttribute("data-md-color-scheme"),palette.color.primary=input.getAttribute("data-md-color-primary"),palette.color.accent=input.getAttribute("data-md-color-accent")}for(var[key,value]of Object.entries(palette.color))document.body.setAttribute("data-md-color-"+key,value)}</script>
<div class="md-header__source">
</div>
</nav>
</header>
<div class="md-container" data-md-component="container">
<main class="md-main" data-md-component="main">
<div class="md-main__inner md-grid">
<div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation">
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
<nav class="md-nav md-nav--primary md-nav--lifted" aria-label="Navigation" data-md-level="0">
<label class="md-nav__title" for="__drawer">
<a href="../.." title="InvenTree" class="md-nav__button md-logo" aria-label="InvenTree" data-md-component="logo">
<img src="../../assets/logo.png" alt="InvenTree">
</a>
InvenTree
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_1" >
<label class="md-nav__link" for="__nav_1" id="__nav_1_label" tabindex="0">
<span class="md-ellipsis">
Blog
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_1_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_1">
<span class="md-nav__icon md-icon"></span>
Blog
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../../blog/" class="md-nav__link">
<span class="md-ellipsis">
Blog
</span>
</a>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_1_2" >
<label class="md-nav__link" for="__nav_1_2" id="__nav_1_2_label" tabindex="0">
<span class="md-ellipsis">
Blog Archive
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="2" aria-labelledby="__nav_1_2_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_1_2">
<span class="md-nav__icon md-icon"></span>
Blog Archive
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../../blog/archive/2026/" class="md-nav__link">
<span class="md-ellipsis">
2026
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../../blog/archive/2025/" class="md-nav__link">
<span class="md-ellipsis">
2025
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../../blog/archive/2024/" class="md-nav__link">
<span class="md-ellipsis">
2024
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../../blog/archive/2023/" class="md-nav__link">
<span class="md-ellipsis">
2023
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../../blog/archive/2022/" class="md-nav__link">
<span class="md-ellipsis">
2022
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../../blog/archive/2021/" class="md-nav__link">
<span class="md-ellipsis">
2021
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="../../news/" class="md-nav__link">
<span class="md-ellipsis">
News
</span>
</a>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_1_4" >
<label class="md-nav__link" for="__nav_1_4" id="__nav_1_4_label" tabindex="0">
<span class="md-ellipsis">
News Archive
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="2" aria-labelledby="__nav_1_4_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_1_4">
<span class="md-nav__icon md-icon"></span>
News Archive
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../../news/archive/2026/" class="md-nav__link">
<span class="md-ellipsis">
2026
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../../news/archive/2025/" class="md-nav__link">
<span class="md-ellipsis">
2025
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../../news/archive/2024/" class="md-nav__link">
<span class="md-ellipsis">
2024
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../../news/archive/2023/" class="md-nav__link">
<span class="md-ellipsis">
2023
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../../news/archive/2022/" class="md-nav__link">
<span class="md-ellipsis">
2022
</span>
</a>
</li>
</ul>
</nav>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_2" >
<label class="md-nav__link" for="__nav_2" id="__nav_2_label" tabindex="0">
<span class="md-ellipsis">
Features
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_2_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_2">
<span class="md-nav__icon md-icon"></span>
Features
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../../features/" class="md-nav__link">
<span class="md-ellipsis">
Features
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../../deploy/" class="md-nav__link">
<span class="md-ellipsis">
Deploy
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../../demo/" class="md-nav__link">
<span class="md-ellipsis">
Demo
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../../alternatives/" class="md-nav__link">
<span class="md-ellipsis">
Alternatives
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../../extend/" class="md-nav__link">
<span class="md-ellipsis">
Ecosystem
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../../extend/app/" class="md-nav__link">
<span class="md-ellipsis">
Mobile App
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_3" >
<label class="md-nav__link" for="__nav_3" id="__nav_3_label" tabindex="0">
<span class="md-ellipsis">
Plugins
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_3_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_3">
<span class="md-nav__icon md-icon"></span>
Plugins
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../" class="md-nav__link">
<span class="md-ellipsis">
Plugins
</span>
</a>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_3_2" >
<label class="md-nav__link" for="__nav_3_2" id="__nav_3_2_label" tabindex="0">
<span class="md-ellipsis">
Community Plugins
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="2" aria-labelledby="__nav_3_2_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_3_2">
<span class="md-nav__icon md-icon"></span>
Community Plugins
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../community/" class="md-nav__link">
<span class="md-ellipsis">
All Plugins
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../categories/" class="md-nav__link">
<span class="md-ellipsis">
By Category
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../tags/" class="md-nav__link">
<span class="md-ellipsis">
By Tag
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../publishers/" class="md-nav__link">
<span class="md-ellipsis">
Publishers
</span>
</a>
</li>
</ul>
</nav>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_4" >
<label class="md-nav__link" for="__nav_4" id="__nav_4_label" tabindex="0">
<span class="md-ellipsis">
Community
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_4_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_4">
<span class="md-nav__icon md-icon"></span>
Community
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../../about/" class="md-nav__link">
<span class="md-ellipsis">
About
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../../about/team/" class="md-nav__link">
<span class="md-ellipsis">
Team
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../../support/" class="md-nav__link">
<span class="md-ellipsis">
Get Support
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../../contribute/" class="md-nav__link">
<span class="md-ellipsis">
Contribute
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../../fund/" class="md-nav__link">
<span class="md-ellipsis">
Fund InvenTree
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../../newsletter/" class="md-nav__link">
<span class="md-ellipsis">
Newsletter
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="https://docs.inventree.org/en/stable/" class="md-nav__link">
<span class="md-ellipsis">
Docs
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://demo.inventree.org/" class="md-nav__link">
<span class="md-ellipsis">
Demo
</span>
</a>
</li>
</ul>
</nav>
<aside class="iv-plugin-meta md-typeset iv-plugin-meta--sidebar">
<a href="../community/" class="iv-plugin-meta__back"><i class="ti ti-arrow-left"></i> All Plugins</a>
<h2 class="iv-plugin-meta__title">inventree-ipn-generator</h2>
<div class="iv-plugin-meta__row">
<span class="iv-plugin-meta__label">Publisher</span>
<a href="../publishers/#lavissawow" class="iv-plugin-meta__author">
<img src="https://github.com/LavissaWoW.png?size=40" alt="" class="iv-avatar" width="20" height="20" loading="lazy">
LavissaWoW
</a>
</div>
<div class="iv-plugin-meta__row">
<span class="iv-plugin-meta__label">License</span>
<span>
<i class="ti ti-brand-open-source" title="Open source"></i>
MIT
</span>
</div>
<div class="iv-plugin-meta__row">
<span class="iv-plugin-meta__label">Status</span>
<span>
<span class="iv-status iv-status--ok"><i class="ti ti-circle-check"></i> Stable</span>
<span class="iv-status iv-status--ok"><i class="ti ti-circle-check"></i> Maintained</span>
</span>
</div>
<div class="iv-plugin-meta__row">
<span class="iv-plugin-meta__label">PyPI Package</span>
<a href="https://pypi.org/project/inventree-ipn-generator/"><code>inventree-ipn-generator</code></a>
</div>
<ul class="iv-plugin-meta__links">
<li><a href="https://github.com/LavissaWoW/inventree-ipn-generator/issues"><i class="ti ti-bug"></i> Issue Tracker</a></li>
<li><a href="https://github.com/LavissaWoW/inventree-ipn-generator"><i class="ti ti-brand-github"></i> Source on GitHub</a></li>
</ul>
<div class="iv-plugin-meta__row">
<span class="iv-plugin-meta__label">Categories</span>
<span><a href="../categories/#event" class="iv-chip iv-chip--category">Event</a>
</span>
</div>
<div class="iv-plugin-meta__row">
<span class="iv-plugin-meta__label">Tags</span>
<span><a href="../tags/#part" class="iv-chip ">Part</a>
<a href="../tags/#ipn" class="iv-chip ">IPN</a>
<a href="../tags/#generator" class="iv-chip ">Generator</a>
</span>
</div>
</aside>
</div>
</div>
</div>
<div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<input class="md-nav__toggle md-toggle" type="checkbox" id="__toc">
<div class="md-sidebar-button__wrapper">
<label class="md-sidebar-button" for="__toc"></label>
</div>
<div class="md-sidebar__inner">
<nav class="md-nav md-nav--secondary" aria-label="On this page">
<label class="md-nav__title" for="__toc">
<span class="md-nav__icon md-icon"></span>
On this page
</label>
<ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#introduction" class="md-nav__link">
<span class="md-ellipsis">
<span class="md-typeset">
Introduction
</span>
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#installation" class="md-nav__link">
<span class="md-ellipsis">
<span class="md-typeset">
Installation
</span>
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#settings" class="md-nav__link">
<span class="md-ellipsis">
<span class="md-typeset">
Settings
</span>
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#pattern" class="md-nav__link">
<span class="md-ellipsis">
<span class="md-typeset">
Pattern
</span>
</span>
</a>
<nav class="md-nav" aria-label="Pattern">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#literals-immutable" class="md-nav__link">
<span class="md-ellipsis">
<span class="md-typeset">
Literals (Immutable)
</span>
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#numeric" class="md-nav__link">
<span class="md-ellipsis">
<span class="md-typeset">
Numeric
</span>
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#characters" class="md-nav__link">
<span class="md-ellipsis">
<span class="md-typeset">
Characters
</span>
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#examples" class="md-nav__link">
<span class="md-ellipsis">
<span class="md-typeset">
Examples
</span>
</span>
</a>
</li>
</ul>
</nav>
</li>
</ul>
</nav>
</div>
</div>
</div>
<div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
<a id="__skip" tabindex="-1"></a>
<h1>inventree-ipn-generator</h1>
<aside class="iv-plugin-meta md-typeset iv-plugin-meta--content">
<a href="../community/" class="iv-plugin-meta__back"><i class="ti ti-arrow-left"></i> All Plugins</a>
<h2 class="iv-plugin-meta__title">inventree-ipn-generator</h2>
<div class="iv-plugin-meta__row">
<span class="iv-plugin-meta__label">Publisher</span>
<a href="../publishers/#lavissawow" class="iv-plugin-meta__author">
<img src="https://github.com/LavissaWoW.png?size=40" alt="" class="iv-avatar" width="20" height="20" loading="lazy">
LavissaWoW
</a>
</div>
<div class="iv-plugin-meta__row">
<span class="iv-plugin-meta__label">License</span>
<span>
<i class="ti ti-brand-open-source" title="Open source"></i>
MIT
</span>
</div>
<div class="iv-plugin-meta__row">
<span class="iv-plugin-meta__label">Status</span>
<span>
<span class="iv-status iv-status--ok"><i class="ti ti-circle-check"></i> Stable</span>
<span class="iv-status iv-status--ok"><i class="ti ti-circle-check"></i> Maintained</span>
</span>
</div>
<div class="iv-plugin-meta__row">
<span class="iv-plugin-meta__label">PyPI Package</span>
<a href="https://pypi.org/project/inventree-ipn-generator/"><code>inventree-ipn-generator</code></a>
</div>
<ul class="iv-plugin-meta__links">
<li><a href="https://github.com/LavissaWoW/inventree-ipn-generator/issues"><i class="ti ti-bug"></i> Issue Tracker</a></li>
<li><a href="https://github.com/LavissaWoW/inventree-ipn-generator"><i class="ti ti-brand-github"></i> Source on GitHub</a></li>
</ul>
<div class="iv-plugin-meta__row">
<span class="iv-plugin-meta__label">Categories</span>
<span><a href="../categories/#event" class="iv-chip iv-chip--category">Event</a>
</span>
</div>
<div class="iv-plugin-meta__row">
<span class="iv-plugin-meta__label">Tags</span>
<span><a href="../tags/#part" class="iv-chip ">Part</a>
<a href="../tags/#ipn" class="iv-chip ">IPN</a>
<a href="../tags/#generator" class="iv-chip ">Generator</a>
</span>
</div>
</aside>
<h2 id="introduction">Introduction<a class="headerlink" href="#introduction" title="Permanent link">&para;</a></h2>
<p>Installing this plugin enables the automatic generation if Internal Part Numbers (IPN) for parts.</p>
<h2 id="installation">Installation<a class="headerlink" href="#installation" title="Permanent link">&para;</a></h2>
<p>To automatically install the plugin when running <code>invoke install</code>:
Add <code>inventree-ipn-generator</code> to your plugins.txt file.</p>
<p>Or, install the plugin manually:</p>
<div class="highlight"><pre><span></span><code>pip install inventree-ipn-generator
</code></pre></div>
<p>For the plugin to be listed as available, you need to enable "Event Integration" in your plugin settings.
This setting is located with the Plugin Settings on the settings page.</p>
<h2 id="settings">Settings<a class="headerlink" href="#settings" title="Permanent link">&para;</a></h2>
<ul>
<li>Active - Enables toggling of plugin without having to disable it</li>
<li>On Create - If on, the plugin will assign IPNs to newly created parts</li>
<li>On Change - If on, the plugin will assign IPNs to parts after a change has been made.
Enabling this setting will remove the ability to have parts without IPNs.</li>
</ul>
<h2 id="pattern">Pattern<a class="headerlink" href="#pattern" title="Permanent link">&para;</a></h2>
<p>Part Number patterns follow three basic groups. Literals, Numerics, and characters.
When incrementing a part number, the rightmost group that is mutable will be incremented.
All groups can be combined in any order.</p>
<p>A pattern cannot consist of <em>only</em> Literals.</p>
<p>For any pattern, only the rightmost non-literal group will be incremented.
When this group rolls over its max, the next non-literal group to the left will be incremented.
Example: Given the groups (named for demo): L1C1N1C2L2
Incrementing follows this order: C2, N1, C1.</p>
<blockquote>
<p><strong><em>NOTE:</em></strong> When C1 in the above example rolls over, the plugin will loop back to the first IPN.
This will cause duplicate IPNs if your InvenTree allows duplicate IPNs.
If your InvenTree does not allow duplicate IPNs, this will cause an error at the moment!
This will be addressed in an upcoming update.</p>
</blockquote>
<h3 id="literals-immutable">Literals (Immutable)<a class="headerlink" href="#literals-immutable" title="Permanent link">&para;</a></h3>
<p>Anything encased in <code>()</code> will be rendered as-is. no change will be made to anything within.</p>
<p>Example: <code>(A6C)</code> will <em>always</em> render as "A6C", regardless of other groups</p>
<h3 id="numeric">Numeric<a class="headerlink" href="#numeric" title="Permanent link">&para;</a></h3>
<p>Numbers that should change over time should be encased in <code>{}</code></p>
<ul>
<li><code>{5}</code> respresents a number with max 5 digits</li>
<li><code>{25+}</code> represents a number 25-99</li>
</ul>
<p>Example: <code>{5+}{3}</code> will result in this range: 5000-9999</p>
<h3 id="characters">Characters<a class="headerlink" href="#characters" title="Permanent link">&para;</a></h3>
<p>Characters that change should be encased in <code>[]</code></p>
<ul>
<li><code>[abc]</code> represents looping through the letters <code>a</code>, <code>b</code>, <code>c</code> in order.</li>
<li><code>[a-f]</code> represents looping through the letters from <code>a</code> to <code>f</code> alphabetaically</li>
</ul>
<p>These two directives can be combined.</p>
<ul>
<li><code>[aQc-f]</code> represents:</li>
<li>
<ul>
<li><code>a</code>, <code>Q</code>, <code>c-f</code></li>
</ul>
</li>
</ul>
<h3 id="examples">Examples<a class="headerlink" href="#examples" title="Permanent link">&para;</a></h3>
<ol>
<li><code>(AB){3}[ab]</code> -&gt; AB001a, AB001b, AB002a, AB021b, AB032a, etc</li>
<li><code>{2}[Aq](BD)</code> -&gt; 01ABD, 01qBD, 02ABD, 02qBD, etc</li>
<li><code>{1}[a-d]{8+}</code> -&gt; 1a8, 1a9, 1b8, 1b9, 1c8, 1c9, 1d8, 1d9, 2a8, etc</li>
</ol>
</article>
</div>
<script>var target=document.getElementById(location.hash.slice(1));target&&target.name&&(target.checked=target.name.startsWith("__tabbed_"))</script>
</div>
<button type="button" class="md-top md-icon" data-md-component="top" hidden>
<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="lucide lucide-circle-arrow-up" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"/><path d="m16 12-4-4-4 4M12 16V8"/></svg>
Back to top
</button>
</main>
<footer class="md-footer">
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-copyright">
<div class="md-copyright__highlight">
Copyright &copy; 2021-now InvenTree
</div>
Made with
<a href="https://zensical.org/" target="_blank" rel="noopener">
Zensical
</a>
</div>
<div class="md-social">
<a href="https://github.com/inventree/inventree" target="_blank" rel="noopener" title="InvenTree on GitHub" class="md-social__link">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M216.5 362.5c-66-8-112.5-55.5-112.5-117 0-25 9-52 24-70-6.5-16.5-5.5-51.5 2-66 20-2.5 47 8 63 22.5 19-6 39-9 63.5-9s44.5 3 62.5 8.5c15.5-14 43-24.5 63-22 7 13.5 8 48.5 1.5 65.5 16 19 24.5 44.5 24.5 70.5 0 61.5-46.5 108-113.5 116.5 17 11 28.5 35 28.5 62.5v52c0 15 12.5 23.5 27.5 17.5C441 459.5 512 369 512 257 512 115.5 397 0 255.5 0S0 115.5 0 257c0 111 70.5 203 165.5 237.5 13.5 5 26.5-4 26.5-17.5v-40c-7 3-16 5-24 5-33 0-52.5-18-66.5-51.5-5.5-13.5-11.5-21.5-23-23-6-.5-8-3-8-6 0-6 10-10.5 20-10.5 14.5 0 27 9 40 27.5 10 14.5 20.5 21 33 21s20.5-4.5 32-16c8.5-8.5 15-16 21-21"/></svg>
</a>
<a href="https://chaos.social/@InvenTree" target="_blank" rel="noopener me" title="InvenTree on Mastodon" class="md-social__link">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M433 179.1c0-97.2-63.7-125.7-63.7-125.7-62.5-28.7-228.6-28.4-290.5 0 0 0-63.7 28.5-63.7 125.7 0 115.7-6.6 259.4 105.6 289.1 40.5 10.7 75.3 13 103.3 11.4 50.8-2.8 79.3-18.1 79.3-18.1l-1.7-36.9s-36.3 11.4-77.1 10.1c-40.4-1.4-83-4.4-89.6-54-.6-4.6-.9-9.3-.9-13.9 85.6 20.9 158.7 9.1 178.7 6.7 56.1-6.7 105-41.3 111.2-72.9 9.8-49.8 9-121.5 9-121.5zm-75.1 125.2h-46.6V190.1c0-49.7-64-51.6-64 6.9v62.5H201V197c0-58.5-64-56.6-64-6.9v114.2H90.3c0-122.1-5.2-147.9 18.4-175 25.9-28.9 79.8-30.8 103.8 6.1l11.6 19.5 11.6-19.5c24.1-37.1 78.1-34.8 103.8-6.1 23.7 27.3 18.4 53 18.4 175"/></svg>
</a>
<a href="https://reddit.com/r/inventree" target="_blank" rel="noopener" title="InvenTree on Reddit" class="md-social__link">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M0 256C0 114.6 114.6 0 256 0s256 114.6 256 256-114.6 256-256 256H37.1c-13.7 0-20.5-16.5-10.9-26.2L75 437C28.7 390.7 0 326.7 0 256m349.6-102.4c23.6 0 42.7-19.1 42.7-42.7s-19.1-42.7-42.7-42.7c-20.6 0-37.8 14.6-41.8 34-34.5 3.7-61.4 33-61.4 68.4v.2c-37.5 1.6-71.8 12.3-99 29.1-10.1-7.8-22.8-12.5-36.5-12.5-33 0-59.8 26.8-59.8 59.8 0 24 14.1 44.6 34.4 54.1 2 69.4 77.6 125.2 170.6 125.2s168.7-55.9 170.6-125.3c20.2-9.6 34.1-30.2 34.1-54 0-33-26.8-59.8-59.8-59.8-13.7 0-26.3 4.6-36.4 12.4-27.4-17-62.1-27.7-100-29.1v-.2c0-25.4 18.9-46.5 43.4-49.9 4.4 18.8 21.3 32.8 41.5 32.8zm-172.5 93.3c16.7 0 29.5 17.6 28.5 39.3s-13.5 29.6-30.3 29.6-31.4-8.8-30.4-30.5S160.3 247 177 247zm190.1 38.3c1 21.7-13.7 30.5-30.4 30.5s-29.3-7.9-30.3-29.6 11.8-39.3 28.5-39.3 31.2 16.6 32.1 38.3zm-48.1 56.7c-10.3 24.6-34.6 41.9-63 41.9s-52.7-17.3-63-41.9c-1.2-2.9.8-6.2 3.9-6.5 18.4-1.9 38.3-2.9 59.1-2.9s40.7 1 59.1 2.9c3.1.3 5.1 3.6 3.9 6.5"/></svg>
</a>
<a href="https://twitter.com/inventreedb" target="_blank" rel="noopener" title="InvenTree on Twitter" class="md-social__link">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M357.2 48h70.6L273.6 224.2 455 464H313L201.7 318.6 74.5 464H3.8l164.9-188.5L-5.2 48h145.6l100.5 132.9zm-24.8 373.8h39.1L119.1 88h-42z"/></svg>
</a>
<a href="https://hub.docker.com/r/inventree/inventree" target="_blank" rel="noopener" title="InvenTree on Docker" class="md-social__link">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M349.9 236.3h-66.1v-59.4h66.1zm0-204.3h-66.1v60.7h66.1zm78.2 144.8H362v59.4h66.1zm-156.3-72.1h-66.1v60.1h66.1zm78.1 0h-66.1v60.1h66.1zm276.8 100c-14.4-9.7-47.6-13.2-73.1-8.4-3.3-24-16.7-44.9-41.1-63.7l-14-9.3-9.3 14c-18.4 27.8-23.4 73.6-3.7 103.8-8.7 4.7-25.8 11.1-48.4 10.7H2.4c-8.7 50.8 5.8 116.8 44 162.1 37.1 43.9 92.7 66.2 165.4 66.2 157.4 0 273.9-72.5 328.4-204.2 21.4.4 67.6.1 91.3-45.2 1.5-2.5 6.6-13.2 8.5-17.1zm-511.1-27.9h-66v59.4h66.1v-59.4zm78.1 0h-66.1v59.4h66.1zm78.1 0h-66.1v59.4h66.1zm-78.1-72.1h-66.1v60.1h66.1z"/></svg>
</a>
</div>
</div>
</div>
</footer>
</div>
<div class="md-dialog" data-md-component="dialog" role="status" aria-atomic="true">
<div class="md-dialog__inner md-typeset"></div>
</div>
<script id="__config" type="application/json">{"annotate":null,"base":"../..","features":["content.code.copy","header.autohide","navigation.instant","navigation.tracking","navigation.tabs","navigation.top","toc.follow"],"redirect":"../../redirect.json","search":"../../assets/javascripts/workers/search.719e0d91.min.js","tags":null,"translations":{"clipboard.copied":"Copied to clipboard","clipboard.copy":"Copy to clipboard","clipboard.error":"Could not copy to clipboard","search.result.more.one":"1 more on this page","search.result.more.other":"# more on this page","search.result.none":"No matching documents","search.result.one":"1 matching document","search.result.other":"# matching documents","search.result.placeholder":"Type to start searching","search.result.term.missing":"Missing","select.version":"Select version"},"version":null}</script>
<script src="../../assets/javascripts/bundle.3cb411a8.min.js"></script>
<script src="../../javascripts/splide.min.js"></script>
<script src="../../javascripts/extra.js"></script>
</body>
</html>