mirror of
https://github.com/inventree/inventree-website.git
synced 2026-11-23 06:36:10 +00:00
2517 lines
74 KiB
HTML
2517 lines
74 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="melektron">
|
|
|
|
|
|
<link rel="canonical" href="https://inventree.org/plugins/inventree-adv-sheet-label/">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<link rel="icon" href="../../assets/favicon.ico">
|
|
<meta name="generator" content="zensical-0.1.1">
|
|
|
|
|
|
<title>InvenTree Advanced Sheet Label - 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&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 Advanced Sheet Label">
|
|
<meta property="og:description" content="InvenTree Advanced Sheet Label - a community plugin for InvenTree, published by melektron.">
|
|
<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-adv-sheet-label/">
|
|
|
|
<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 adv sheet label
|
|
|
|
</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 Advanced Sheet Label</h2>
|
|
|
|
|
|
<div class="iv-plugin-meta__row">
|
|
<span class="iv-plugin-meta__label">Publisher</span>
|
|
<a href="../publishers/#melektron" class="iv-plugin-meta__author">
|
|
<img src="https://github.com/melektron.png?size=40" alt="" class="iv-avatar" width="20" height="20" loading="lazy">
|
|
melektron
|
|
</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-adv-sheet-label/"><code>inventree-adv-sheet-label</code></a>
|
|
</div>
|
|
|
|
|
|
|
|
<ul class="iv-plugin-meta__links">
|
|
|
|
<li><a href="https://elektron.work"><i class="ti ti-world"></i> Website</a></li>
|
|
|
|
<li><a href="https://github.com/melektron/inventree-adv-sheet-label/issues"><i class="ti ti-bug"></i> Issue Tracker</a></li>
|
|
|
|
<li><a href="https://github.com/melektron/inventree-adv-sheet-label/"><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/#label" class="iv-chip iv-chip--category">Label</a>
|
|
<a href="../categories/#settings" class="iv-chip iv-chip--category">Settings</a>
|
|
</span>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="iv-plugin-meta__row">
|
|
<span class="iv-plugin-meta__label">Tags</span>
|
|
<span><a href="../tags/#sheet-layout" class="iv-chip ">Sheet layout</a>
|
|
<a href="../tags/#office" class="iv-chip ">Office</a>
|
|
<a href="../tags/#printing" class="iv-chip ">Printing</a>
|
|
<a href="../tags/#label" class="iv-chip ">Label</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="#index" class="md-nav__link">
|
|
<span class="md-ellipsis">
|
|
<span class="md-typeset">
|
|
Index
|
|
</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="#usage-and-features" class="md-nav__link">
|
|
<span class="md-ellipsis">
|
|
<span class="md-typeset">
|
|
Usage and Features
|
|
</span>
|
|
</span>
|
|
</a>
|
|
|
|
<nav class="md-nav" aria-label="Usage and Features">
|
|
<ul class="md-nav__list">
|
|
|
|
<li class="md-nav__item">
|
|
<a href="#sheet-layout" class="md-nav__link">
|
|
<span class="md-ellipsis">
|
|
<span class="md-typeset">
|
|
Sheet layout
|
|
</span>
|
|
</span>
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="md-nav__item">
|
|
<a href="#number-of-labels" class="md-nav__link">
|
|
<span class="md-ellipsis">
|
|
<span class="md-typeset">
|
|
Number of labels
|
|
</span>
|
|
</span>
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="md-nav__item">
|
|
<a href="#skip-label-positions" class="md-nav__link">
|
|
<span class="md-ellipsis">
|
|
<span class="md-typeset">
|
|
Skip label positions
|
|
</span>
|
|
</span>
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="md-nav__item">
|
|
<a href="#ignore-label-size-mismatch" class="md-nav__link">
|
|
<span class="md-ellipsis">
|
|
<span class="md-typeset">
|
|
Ignore label size mismatch
|
|
</span>
|
|
</span>
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="md-nav__item">
|
|
<a href="#print-border" class="md-nav__link">
|
|
<span class="md-ellipsis">
|
|
<span class="md-typeset">
|
|
Print border
|
|
</span>
|
|
</span>
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="md-nav__item">
|
|
<a href="#label-fill-color" class="md-nav__link">
|
|
<span class="md-ellipsis">
|
|
<span class="md-typeset">
|
|
Label fill color
|
|
</span>
|
|
</span>
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</nav>
|
|
|
|
</li>
|
|
|
|
<li class="md-nav__item">
|
|
<a href="#errors" class="md-nav__link">
|
|
<span class="md-ellipsis">
|
|
<span class="md-typeset">
|
|
Errors
|
|
</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>
|
|
|
|
<nav class="md-nav" aria-label="Settings">
|
|
<ul class="md-nav__list">
|
|
|
|
<li class="md-nav__item">
|
|
<a href="#default-sheet-layout" class="md-nav__link">
|
|
<span class="md-ellipsis">
|
|
<span class="md-typeset">
|
|
Default sheet layout
|
|
</span>
|
|
</span>
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="md-nav__item">
|
|
<a href="#printer-offset-x-y" class="md-nav__link">
|
|
<span class="md-ellipsis">
|
|
<span class="md-typeset">
|
|
Printer offset X / Y
|
|
</span>
|
|
</span>
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</nav>
|
|
|
|
</li>
|
|
|
|
<li class="md-nav__item">
|
|
<a href="#common-issues" class="md-nav__link">
|
|
<span class="md-ellipsis">
|
|
<span class="md-typeset">
|
|
Common Issues
|
|
</span>
|
|
</span>
|
|
</a>
|
|
|
|
<nav class="md-nav" aria-label="Common Issues">
|
|
<ul class="md-nav__list">
|
|
|
|
<li class="md-nav__item">
|
|
<a href="#no-matching-distributionfound-could-not-find-a-version-that-satisfies-the-requirement" class="md-nav__link">
|
|
<span class="md-ellipsis">
|
|
<span class="md-typeset">
|
|
"No matching distributionfound" / "Could not find a version that satisfies the requirement"
|
|
</span>
|
|
</span>
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</nav>
|
|
|
|
</li>
|
|
|
|
<li class="md-nav__item">
|
|
<a href="#contribution" class="md-nav__link">
|
|
<span class="md-ellipsis">
|
|
<span class="md-typeset">
|
|
Contribution
|
|
</span>
|
|
</span>
|
|
</a>
|
|
|
|
<nav class="md-nav" aria-label="Contribution">
|
|
<ul class="md-nav__list">
|
|
|
|
<li class="md-nav__item">
|
|
<a href="#reporting-and-fixing-bugs" class="md-nav__link">
|
|
<span class="md-ellipsis">
|
|
<span class="md-typeset">
|
|
Reporting and fixing bugs
|
|
</span>
|
|
</span>
|
|
</a>
|
|
|
|
<nav class="md-nav" aria-label="Reporting and fixing bugs">
|
|
<ul class="md-nav__list">
|
|
|
|
<li class="md-nav__item">
|
|
<a href="#prs" class="md-nav__link">
|
|
<span class="md-ellipsis">
|
|
<span class="md-typeset">
|
|
PRs
|
|
</span>
|
|
</span>
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</nav>
|
|
|
|
</li>
|
|
|
|
<li class="md-nav__item">
|
|
<a href="#adding-new-layouts" class="md-nav__link">
|
|
<span class="md-ellipsis">
|
|
<span class="md-typeset">
|
|
Adding new layouts
|
|
</span>
|
|
</span>
|
|
</a>
|
|
|
|
<nav class="md-nav" aria-label="Adding new layouts">
|
|
<ul class="md-nav__list">
|
|
|
|
<li class="md-nav__item">
|
|
<a href="#adding-sheet-layouts-yourself" class="md-nav__link">
|
|
<span class="md-ellipsis">
|
|
<span class="md-typeset">
|
|
Adding sheet layouts yourself
|
|
</span>
|
|
</span>
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</nav>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</nav>
|
|
|
|
</li>
|
|
|
|
<li class="md-nav__item">
|
|
<a href="#plugin-development-setup" class="md-nav__link">
|
|
<span class="md-ellipsis">
|
|
<span class="md-typeset">
|
|
Plugin development setup
|
|
</span>
|
|
</span>
|
|
</a>
|
|
|
|
</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 Advanced Sheet Label</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 Advanced Sheet Label</h2>
|
|
|
|
|
|
<div class="iv-plugin-meta__row">
|
|
<span class="iv-plugin-meta__label">Publisher</span>
|
|
<a href="../publishers/#melektron" class="iv-plugin-meta__author">
|
|
<img src="https://github.com/melektron.png?size=40" alt="" class="iv-avatar" width="20" height="20" loading="lazy">
|
|
melektron
|
|
</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-adv-sheet-label/"><code>inventree-adv-sheet-label</code></a>
|
|
</div>
|
|
|
|
|
|
|
|
<ul class="iv-plugin-meta__links">
|
|
|
|
<li><a href="https://elektron.work"><i class="ti ti-world"></i> Website</a></li>
|
|
|
|
<li><a href="https://github.com/melektron/inventree-adv-sheet-label/issues"><i class="ti ti-bug"></i> Issue Tracker</a></li>
|
|
|
|
<li><a href="https://github.com/melektron/inventree-adv-sheet-label/"><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/#label" class="iv-chip iv-chip--category">Label</a>
|
|
<a href="../categories/#settings" class="iv-chip iv-chip--category">Settings</a>
|
|
</span>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="iv-plugin-meta__row">
|
|
<span class="iv-plugin-meta__label">Tags</span>
|
|
<span><a href="../tags/#sheet-layout" class="iv-chip ">Sheet layout</a>
|
|
<a href="../tags/#office" class="iv-chip ">Office</a>
|
|
<a href="../tags/#printing" class="iv-chip ">Printing</a>
|
|
<a href="../tags/#label" class="iv-chip ">Label</a>
|
|
</span>
|
|
</div>
|
|
|
|
</aside>
|
|
|
|
<p>A label printing plugin for <a href="https://inventree.org">InvenTree</a> which provides support for printing labels on off-the-shelf label sheet layouts and adds some more useful features compared to the sheet label plugin included with InvenTree.</p>
|
|
<h2 id="index">Index<a class="headerlink" href="#index" title="Permanent link">¶</a></h2>
|
|
<ol>
|
|
<li><a href="#installation">Installation</a></li>
|
|
<li><a href="#usage-and-features">Usage and Features</a><ol>
|
|
<li><a href="#sheet-layout">Sheet layout</a></li>
|
|
<li><a href="#number-of-labels">Number of labels</a></li>
|
|
<li><a href="#skip-label-positions">Skip label positions</a></li>
|
|
<li><a href="#ignore-label-size-mismatch">Ignore label size mismatch</a></li>
|
|
<li><a href="#print-border">Print border</a></li>
|
|
<li><a href="#label-fill-color">Label fill color</a></li>
|
|
</ol>
|
|
</li>
|
|
<li><a href="#errors">Errors</a></li>
|
|
<li><a href="#settings">Settings</a><ol>
|
|
<li><a href="#default-sheet-layout">Default sheet layout</a></li>
|
|
<li><a href="#printer-offset-x-y">Printer offset X / Y</a></li>
|
|
</ol>
|
|
</li>
|
|
<li><a href="#contribution">Contribution</a><ol>
|
|
<li><a href="#reporting-and-fixing-bugs">Reporting and fixing bugs</a></li>
|
|
<li><a href="#adding-new-layouts">Adding new layouts</a></li>
|
|
</ol>
|
|
</li>
|
|
<li><a href="#plugin-development-setup">Plugin development setup</a></li>
|
|
</ol>
|
|
<h2 id="installation">Installation<a class="headerlink" href="#installation" title="Permanent link">¶</a></h2>
|
|
<blockquote>
|
|
<p>[!NOTE]
|
|
The latest version of this plugin currently supports the following InvenTree versions:
|
|
- <strong>1.5.x</strong> (tested with version <strong>1.5.0</strong>)
|
|
- <strong>1.3.x</strong> (tested with version <strong>1.3.0</strong> and <strong>1.3.2</strong>)
|
|
- <strong>1.2.x</strong> (tested with version <strong>1.2.0</strong>)
|
|
- <strong>1.1.x</strong> (tested with version <strong>1.1.3</strong>)
|
|
- <strong>1.0.x</strong> (tested with version <strong>1.0.5</strong>)</p>
|
|
<p>For older InvenTree versions, use version <code>1.2.2</code>, which supports the following InvenTree versions:
|
|
- <strong>0.17.x</strong> (tested with version <strong>0.17.14</strong>)
|
|
- <strong>0.16.x</strong> (tested with version <strong>0.16.5</strong>)
|
|
- <strong>0.15.x</strong></p>
|
|
<p>Some even older or newer versions might also work, but have not been tested. </p>
|
|
<p>If you are having trouble installing, see <a href="#common-issues">Common Issues</a> for possible solutions or create an issue.</p>
|
|
</blockquote>
|
|
<p>The simplest and recommended way of installing is by using the <code>Install Plugin</code> button above the plugins table on the InvenTree <code>Plugins</code> page in the <code>Admin Center</code> and then entering the package name:</p>
|
|
<p><img alt="Plugin installation via UI: The "Install Plugin" modal window" src="https://raw.githubusercontent.com/melektron/inventree-adv-sheet-label/main/images/install_via_ui.png" /></p>
|
|
<p>Alternatively you can add the package name to your plugins.txt file (this is automatically done when using the UI method) to install automatically when using the <code>invoke install</code> command:</p>
|
|
<div class="highlight"><pre><span></span><code>inventree-adv-sheet-label
|
|
</code></pre></div>
|
|
<p>Or, you can install this plugin manually in the InvenTree server AND worker container as follows (not recommended for production):</p>
|
|
<div class="highlight"><pre><span></span><code>pip<span class="w"> </span>install<span class="w"> </span>inventree-adv-sheet-label
|
|
</code></pre></div>
|
|
<p>In any case, after installation, the plugin needs to be enabled in the above mentioned plugin settings page:</p>
|
|
<p><img alt="Plugin list with mouse cursor over "Enable Plugin" button" src="https://raw.githubusercontent.com/melektron/inventree-adv-sheet-label/main/images/enable_plugin.png" /></p>
|
|
<h2 id="usage-and-features">Usage and Features<a class="headerlink" href="#usage-and-features" title="Permanent link">¶</a></h2>
|
|
<p>This plugin adds the "AdvancedLabelSheet" printing option to the label printing dialog:</p>
|
|
<p><img alt="Printing dialog with plugin selection open" src="https://raw.githubusercontent.com/melektron/inventree-adv-sheet-label/main/images/plugin_selection.png" /></p>
|
|
<p>Printing with this plugin generates a PDF file which will be opened in a new tab in order to subsequently be printed using a regular office printer.</p>
|
|
<p>Rendering should not take longer than a few seconds, usually less than two.</p>
|
|
<h3 id="sheet-layout">Sheet layout<a class="headerlink" href="#sheet-layout" title="Permanent link">¶</a></h3>
|
|
<p>Unlike the builtin sheet label printing plugin of InvenTree, this plugin presents a selection of preconfigured sheet label layout options corresponding to various kinds of off-the-shelf label printing paper that can be purchased from most office supply shops and easily printed on any standard 2D printer.</p>
|
|
<p>You can select the layout corresponding your paper in the <code>Sheet layout</code> dropdown:</p>
|
|
<p><img alt=""Sheet layout" dropdown in open state, with various layout options shown" src="https://raw.githubusercontent.com/melektron/inventree-adv-sheet-label/main/images/sheet_layout_select.png" /></p>
|
|
<p>These layouts are identified by a several digit number written on the paper packaging, which (as far as I can tell) is unique to the layout independent of the manufacturer (at least where I live). The identifier is however just a string, so any other scheme can also be used in the future.</p>
|
|
<p>The dropdown list also shows some additional information about the layout for orientation:</p>
|
|
<ul>
|
|
<li>Paper size (e.g. A4)</li>
|
|
<li>Dimensions of the individual labels</li>
|
|
<li>How many rows and columns are on one page</li>
|
|
<li>Whether the labels have rounded corners</li>
|
|
</ul>
|
|
<p>Currently supported layouts:</p>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Layout Identifier</th>
|
|
<th>Paper size</th>
|
|
<th>Label dimensions</th>
|
|
<th>Label layout</th>
|
|
<th>Corner style</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>8160</td>
|
|
<td>US Letter</td>
|
|
<td>66.7mm x 25.4mm</td>
|
|
<td>3 columns x 10 rows</td>
|
|
<td>round</td>
|
|
</tr>
|
|
<tr>
|
|
<td>22805</td>
|
|
<td>US Letter</td>
|
|
<td>37.0mm x 37.0mm</td>
|
|
<td>4 columns x 6 rows</td>
|
|
<td>sharp</td>
|
|
</tr>
|
|
<tr>
|
|
<td>4780</td>
|
|
<td>A4</td>
|
|
<td>48.5mm x 25.4mm</td>
|
|
<td>4 columns x 10 rows</td>
|
|
<td>sharp</td>
|
|
</tr>
|
|
<tr>
|
|
<td>4737</td>
|
|
<td>A4</td>
|
|
<td>63.5mm x 29.6mm</td>
|
|
<td>3 columns x 9 rows</td>
|
|
<td>round</td>
|
|
</tr>
|
|
<tr>
|
|
<td>4201</td>
|
|
<td>A4</td>
|
|
<td>45.7mm x 16.9mm</td>
|
|
<td>4 columns x 16 rows</td>
|
|
<td>round</td>
|
|
</tr>
|
|
<tr>
|
|
<td>7120-25</td>
|
|
<td>A4</td>
|
|
<td>35.0mm x 35.0mm</td>
|
|
<td>5 columns x 7 rows</td>
|
|
<td>sharp</td>
|
|
</tr>
|
|
<tr>
|
|
<td>7160-10</td>
|
|
<td>A4</td>
|
|
<td>63.5mm x 38.1mm</td>
|
|
<td>3 columns x 7 rows</td>
|
|
<td>round</td>
|
|
</tr>
|
|
<tr>
|
|
<td>4360</td>
|
|
<td>A4</td>
|
|
<td>70.0mm x 36.0mm</td>
|
|
<td>3 columns x 8 rows</td>
|
|
<td>sharp</td>
|
|
</tr>
|
|
<tr>
|
|
<td>1367853</td>
|
|
<td>A4</td>
|
|
<td>48.5mm x 16.9mm</td>
|
|
<td>4 columns x 16 rows</td>
|
|
<td>sharp</td>
|
|
</tr>
|
|
<tr>
|
|
<td>4210</td>
|
|
<td>A4</td>
|
|
<td>38.1mm x 12.7mm</td>
|
|
<td>5 columns x 22 rows</td>
|
|
<td>sharp</td>
|
|
</tr>
|
|
<tr>
|
|
<td>1367586</td>
|
|
<td>A4</td>
|
|
<td>70.0mm x 36.0mm</td>
|
|
<td>3 columns x 8 rows</td>
|
|
<td>sharp</td>
|
|
</tr>
|
|
<tr>
|
|
<td>8724</td>
|
|
<td>A4</td>
|
|
<td>46.0mm x 11.1mm</td>
|
|
<td>4 columns x 21 rows</td>
|
|
<td>round</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Avery 50x25-R</td>
|
|
<td>A4</td>
|
|
<td>50.0mm x 25.0mm</td>
|
|
<td>3 columns x 8 rows</td>
|
|
<td>round</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Avery 105x42-R</td>
|
|
<td>A4</td>
|
|
<td>105.0mm x 42.0mm</td>
|
|
<td>2 columns x 7 rows</td>
|
|
<td>sharp</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Avery 40x12-R</td>
|
|
<td>A4</td>
|
|
<td>40.0mm x 12.0mm</td>
|
|
<td>4 columns x 17 rows</td>
|
|
<td>round</td>
|
|
</tr>
|
|
<tr>
|
|
<td>8698</td>
|
|
<td>A4</td>
|
|
<td>52.5mm x 29.7mm</td>
|
|
<td>4 columns x 10 rows</td>
|
|
<td>sharp</td>
|
|
</tr>
|
|
<tr>
|
|
<td>HERMA 4336 / Avery 4732</td>
|
|
<td>A4</td>
|
|
<td>35.6mm x 16.9mm</td>
|
|
<td>5 columns x 16 rows</td>
|
|
<td>round</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Avery L7163 / J8163</td>
|
|
<td>A4</td>
|
|
<td>99.1mm x 38.1mm</td>
|
|
<td>2 columns x 7 rows</td>
|
|
<td>sharp</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<p>This selection is limited to whatever users of this plugin have contributed. If the paper layout you need is not included, please file an <a href="https://github.com/melektron/inventree-adv-sheet-label/issues/new?assignees=melektron&labels=sheet+layout&projects=&template=sheet-layout.md&title=New+Sheet+layout%3A+%5Blayout+name%5D">Issue with the "Sheet Layout" template</a> or - even better - contribute it yourself. See the <a href="#adding-new-layouts">Adding new layouts</a> section for details.</p>
|
|
<p>You can also select one of the two <code>Auto</code> sheet layout presets. These will automatically select the correct sheet layout for the label template you are printing. This is done in one of three ways:</p>
|
|
<ul>
|
|
<li>If you have a specific layout that's always used for a specific template, you can add the <code>{"sheet_layout": "..."}</code> metadata key to your label template configuration (replace ... with the identifier of the layout. This might not be the same as the display name, see <a href="https://github.com/melektron/inventree-adv-sheet-label/blob/main/advanced_sheet_label/layouts.py#L77">here</a> what the identifier is). This is the cleanest way configure the correct layout for your templates, but it is no longer easily available as of InvenTree version <code>1.0.0</code> due to the Django admin UI being removed.</li>
|
|
<li>If the selected template template has no such metadata, the plugin will attempt to find a layout with exactly the required label size and use that one. If multiple matches are found, the first one is selected while preferring ones with round or sharp corners depending on your selection.</li>
|
|
<li>If no exact matches are found, the closest layout that can fit your label template will be selected and shown to the user in an error message. The user can then decide to use this option by selecting the <a href="#ignore-label-size-mismatch">'Ignore label size mismatch'</a> switch. </li>
|
|
</ul>
|
|
<h3 id="number-of-labels">Number of labels<a class="headerlink" href="#number-of-labels" title="Permanent link">¶</a></h3>
|
|
<p>The <code>Number of labels</code> field lets you print multiple of the same label in one go. By default, the number of labels printed is 1, resulting in an output like this:</p>
|
|
<p><img alt="Top of a page with one label printed on it" src="https://raw.githubusercontent.com/melektron/inventree-adv-sheet-label/main/images/one_label.png" />
|
|
(The label template is only an example and this is only part of a page)</p>
|
|
<p>Let's say you want to print two of the same label. By entering the desired amount in the field, multiple of the same label will be printed at once, of course arranged according to the selected layout:</p>
|
|
<p><img alt="Top of a page with two identical labels printed on it" src="https://raw.githubusercontent.com/melektron/inventree-adv-sheet-label/main/images/two_identical_labels.png" /></p>
|
|
<p>If you are printing labels for multiple items at once, such as for an entire selection of parts, this amount is applied to all items. For example, lets print two labels for each of those four capacitors:</p>
|
|
<p><img alt="Selection of multiple items to print labels for" src="https://raw.githubusercontent.com/melektron/inventree-adv-sheet-label/main/images/multi_item_select.png" />
|
|
<img alt="Configuration for multi label print" src="https://raw.githubusercontent.com/melektron/inventree-adv-sheet-label/main/images/multi_label_print_config.png" /></p>
|
|
<p>This results in a printout looking like this:</p>
|
|
<p><img alt="Top of a page with two labels each for four parts into total" src="https://raw.githubusercontent.com/melektron/inventree-adv-sheet-label/main/images/multi_item_multi_labels.png" /></p>
|
|
<p>You can also specify to print zero labels. This is useful in combination with the "Skip label positions" and "Debug: Print border" options to print an empty grid of cells for testing.</p>
|
|
<h3 id="skip-label-positions">Skip label positions<a class="headerlink" href="#skip-label-positions" title="Permanent link">¶</a></h3>
|
|
<p>When printing on label sheets, it is likely that you don't use up the entire sheet of labels at once. Maybe you only want to print a single label and then another one later. To do so, you can enter the number of labels on a sheet that are already used up in the <code>Skip label positions</code> fields (counting from top left to bottom right). These positions are then skipped and labels will start to print at the next unused position. This also works when printing multiple labels.</p>
|
|
<p>For example, let's assume the first two labels are already used up and we want to start printing at the third one:</p>
|
|
<p><img alt="Settings for printing two labels, skipping the first two positions" src="https://raw.githubusercontent.com/melektron/inventree-adv-sheet-label/main/images/skip_two_positions_config.png" /></p>
|
|
<p>This results in the following output:</p>
|
|
<p><img alt="Page with two labels printed and the first two positions skipped" src="https://raw.githubusercontent.com/melektron/inventree-adv-sheet-label/main/images/skip_two_positions_result.png" /></p>
|
|
<p>When printing small labels with many of them on a single sheet, it can be confusing and annoying to keep track of the amount of labels skipped. Since this is such a common task, the plugin automatically remembers how many labels have been used up already and populates the <code>Skip label positions</code> field with the correct number of labels to skip after the previous printing operations. For example, after the above shown printing operation, the plugin automatically remembers that next time, it needs to skip four labels and pre-populates the field with that value:</p>
|
|
<p><img alt="Skip label positions field pre-populated with correct skip amount" src="https://raw.githubusercontent.com/melektron/inventree-adv-sheet-label/main/images/skip_positions_pre_populated.png" /></p>
|
|
<p>When an entire page or more is used up, this counter automatically wraps around to the correct value for the next page.</p>
|
|
<p>Of course, this feature only makes sense when printing a lot of labels on the same label sheet (and therefore label sheet layout) back-to-back. Since this value is stored only once globally, when switching between different label sheets (for example because multiple users are printing on different sheets at once) the value is probably not accurate and needs to be manually checked and possibly adjusted each time.</p>
|
|
<h3 id="ignore-label-size-mismatch">Ignore label size mismatch<a class="headerlink" href="#ignore-label-size-mismatch" title="Permanent link">¶</a></h3>
|
|
<p>To ensure the desired result, the plugin automatically check whether the size of the label according to the selected template matches the size of the labels on the selected sheet layout. </p>
|
|
<p>If that is not the case, the user is presented with an error message. This can happen in a few different scenarios:</p>
|
|
<ul>
|
|
<li>Manually selecting a sheet layout that doesn't match the label template: <img alt="Error selected layout size does not match" src="https://raw.githubusercontent.com/melektron/inventree-adv-sheet-label/main/images/err_selected_layout.png" /></li>
|
|
<li>When automatic layout selection is enabled and the label template specifies a sheet layout but its label size does not match that of the template (no longer relevant as of InvenTree <code>1.0.0</code>): <img alt="Error template metadata layout does not have the expected size" src="https://raw.githubusercontent.com/melektron/inventree-adv-sheet-label/main/images/err_metadata_layout.png" /></li>
|
|
<li>When automatic layout selection is enabled but the label template doesn't specify any layout in the metadata and no exact size match was found: <img alt="Error no metadata and no exact size match found" src="https://raw.githubusercontent.com/melektron/inventree-adv-sheet-label/main/images/err_no_size_match.png" /></li>
|
|
</ul>
|
|
<p>In any of these cases, you might want to continue anyway, e.g. because you may not have the correct sheet at hand. To do so, you can enable the <code>Ignore label size mismatch</code> switch to override these safety checks and print anyway. If the label template doesn't fit exactly, it is aligned at the top left corner of the physical label. The result might look something like this:</p>
|
|
<p><img alt="Label printed on larger label sheet layout" src="https://raw.githubusercontent.com/melektron/inventree-adv-sheet-label/main/images/layout_larger_than_template.png" /></p>
|
|
<h3 id="print-border">Print border<a class="headerlink" href="#print-border" title="Permanent link">¶</a></h3>
|
|
<p>When debugging or testing your sheet layouts and templates, it might be useful to see the shape of the physical label (e.g. for the previous image). For this purpose, you can enable the <code>Debug: Print border</code> switch, to print a 0.25mm border around the label. This border is aligned on the INSIDE of the label, so it doesn't overlap other labels but will cover up a tiny bit of area on the edge of your label. The scale and position of the label content are not affected by the border.</p>
|
|
<p>When skipping labels, the skipped positions also have a border.</p>
|
|
<p>The result looks something like this:</p>
|
|
<p><img alt="Label sheet with border" src="https://raw.githubusercontent.com/melektron/inventree-adv-sheet-label/main/images/sheet_with_border.png" /></p>
|
|
<h3 id="label-fill-color">Label fill color<a class="headerlink" href="#label-fill-color" title="Permanent link">¶</a></h3>
|
|
<p>Similarly to the border, you might want to fill the background of the labels with a color to debug your template and see what is covered. This can be achieved by entering the desired color in the <code>Debug: Label fill color</code> field. Any CSS color string is valid. To have no fill color, use the value "unset", which is also the default. Leaving the field empty doesn't work unfortunately since I wasn't able to get the form to accept an empty field.</p>
|
|
<p>The result might look something like this with color "lightgreen":</p>
|
|
<p><img alt="Labels with lightgreen fill colo " src="https://raw.githubusercontent.com/melektron/inventree-adv-sheet-label/main/images/fill_lightgreen.png" />
|
|
(White lines between rows are just rendering defects of my browser)</p>
|
|
<p>You can also combine this option with the border.</p>
|
|
<h2 id="errors">Errors<a class="headerlink" href="#errors" title="Permanent link">¶</a></h2>
|
|
<p>In addition to the errors covered in section <a href="#ignore-label-size-mismatch">Ignore label size mismatch</a> you might encounter the following error messages when printing:</p>
|
|
<ul>
|
|
<li><strong>Sheet layout '[sheet_layout_code]' does not exist.</strong>: This means that an API request was received with an invalid sheet layout in the selection. During normal operation, this should never happen because the dropdown list is automatically populated with all valid options. If you are using the API from a 3rd party application, this could mean that the application has requested to print using a sheet layout which is either not supported by this plugin or the application has a typo in the sheet layout code.</li>
|
|
<li><strong>No labels were generated</strong>: This means that you are not printing any labels (Number of labels = 0) and are not generating any empty fields either (Skip label positions = 0). This would result in a blank page and is likely not what you want.</li>
|
|
<li><strong>Error printing label</strong>: This error along with another error box containing a Python exception string means that something has gone wrong in the plugin code that is not an intentional error message. Example: <img alt="Unintentional plugin error" src="https://raw.githubusercontent.com/melektron/inventree-adv-sheet-label/main/images/err_unintentional.png" />If you see this, feel free to file a bug report. See <a href="#reporting-and-fixing-bugs">Reporting and fixing bugs</a> on how to do so.</li>
|
|
</ul>
|
|
<h2 id="settings">Settings<a class="headerlink" href="#settings" title="Permanent link">¶</a></h2>
|
|
<p>This section describes the settings available in the plugins settings page.</p>
|
|
<h3 id="default-sheet-layout">Default sheet layout<a class="headerlink" href="#default-sheet-layout" title="Permanent link">¶</a></h3>
|
|
<p>This setting allows you to specify which sheet layout is selected by default when opening the printing dialog. It makes sense to set this either to some <em>Auto</em> option or to the layout you are using the most. The default is <code>Auto (round)</code>, which is probably fine for most use-cases.</p>
|
|
<h3 id="printer-offset-x-y">Printer offset X / Y<a class="headerlink" href="#printer-offset-x-y" title="Permanent link">¶</a></h3>
|
|
<p>Most office printers do not place the page exactly where the PDF says, so a sheet that is geometrically correct can still print a millimeter or two off the die. These two settings shift the whole label grid to compensate, in mm: positive X moves labels right, positive Y moves them down. Both default to 0.</p>
|
|
<p>This is a property of your <em>printer</em>, not of the label sheet, which is why it is a global setting rather than part of a layout definition — the same correction applies whichever sheet layout you print.</p>
|
|
<p>To calibrate, print one sheet on plain paper at 100% scaling (scaling must be off, or the measurement is meaningless), hold it against a real label sheet, and measure the offset. If the labels land 2mm too high, set <code>Printer offset Y</code> to <code>2</code>.</p>
|
|
<h2 id="common-issues">Common Issues<a class="headerlink" href="#common-issues" title="Permanent link">¶</a></h2>
|
|
<h3 id="no-matching-distributionfound-could-not-find-a-version-that-satisfies-the-requirement">"No matching distributionfound" / "Could not find a version that satisfies the requirement"<a class="headerlink" href="#no-matching-distributionfound-could-not-find-a-version-that-satisfies-the-requirement" title="Permanent link">¶</a></h3>
|
|
<p>This means that the Python version installed on the InvenTree host is too old for the plugin. This error may occur when trying to install plugin versions up to <code>1.2.2</code> on an InvenTree instance installed bare-metal or via the package installer on a system with Python 3.9. This is because the plugin used to require Python >= 3.11, which is the version used in the containers, therefore working for most setups. As of plugin version <code>1.3.0</code>, the version requirement has been reduced, and this should no longer occur.</p>
|
|
<h2 id="contribution">Contribution<a class="headerlink" href="#contribution" title="Permanent link">¶</a></h2>
|
|
<p>If you have ideas for new features, found typos, have encountered a bug or want to add more sheet layouts, feel free to contribute to this plugin by <a href="https://github.com/melektron/inventree-adv-sheet-label/issues/new/choose">filing an Issue</a> or <a href="https://github.com/melektron/inventree-adv-sheet-label/compare">creating a Pull Request</a>. See <a href="#plugin-development-setup">Plugin development setup</a> to learn how you can set up your development environment to test your modifications.</p>
|
|
<p>See the below information and instructions for common contribution types.</p>
|
|
<h3 id="reporting-and-fixing-bugs">Reporting and fixing bugs<a class="headerlink" href="#reporting-and-fixing-bugs" title="Permanent link">¶</a></h3>
|
|
<p>If you have encountered a problem or a bug with the plugin, please file an <a href="https://github.com/melektron/inventree-adv-sheet-label/issues/new?assignees=melektron&labels=bug&projects=&template=bug-report.md&title=">Issue with the Bug Report template</a>. </p>
|
|
<p>The template requires you to provide a screenshot of your label template configuration. You can get this by going to <a href="https://your.inventree.url/web/settings/admin/labels">https://your.inventree.url/web/settings/admin/labels</a> and <code>Edit</code>ing the template in question. You need administrator privileges to do this. If you don't have them, ask your administrator. This page might look something like this:</p>
|
|
<p><img alt="Example template configuration screenshot" src="https://raw.githubusercontent.com/melektron/inventree-adv-sheet-label/main/images/template_config_example.png" /></p>
|
|
<p>In addition to this screenshot, you will be asked to attach the label template file which can be downloaded by clicking on the Template in the list and copying the code. Please make sure this file doesn't contain any confidential data and remove it if it does.</p>
|
|
<p>You will also be asked to provide some other information about when and how the bug ocurred which is described in the template.</p>
|
|
<h4 id="prs">PRs<a class="headerlink" href="#prs" title="Permanent link">¶</a></h4>
|
|
<p>If you know how to fix a bug, feel free to <a href="https://github.com/melektron/inventree-adv-sheet-label/compare">create a Pull Request</a> with the solution.</p>
|
|
<h3 id="adding-new-layouts">Adding new layouts<a class="headerlink" href="#adding-new-layouts" title="Permanent link">¶</a></h3>
|
|
<p>If you have a label paper layout that is not yet supported by this plugin, please <a href="https://github.com/melektron/inventree-adv-sheet-label/issues/new?assignees=melektron&labels=sheet+layout&projects=&template=sheet-layout.md&title=New+Sheet+layout%3A+%5Blayout+name%5D">file an Issue with the Sheet Layout template</a></p>
|
|
<p>In the template you will be asked to provide some basic information about the sheet layout such as possible manufacturers/suppliers and where the product can be purchased.</p>
|
|
<p>Then, you will be presented with a code template of a layout configuration which you must fill out with your values. The options are commented and mostly self-explanatory.</p>
|
|
<p>If your layout uses a page size that has never been used before, you will also be asked to define the paper format with a name and its dimensions. Otherwise you can simply reference an existing format and omit that part of the issue template.</p>
|
|
<h4 id="adding-sheet-layouts-yourself">Adding sheet layouts yourself<a class="headerlink" href="#adding-sheet-layouts-yourself" title="Permanent link">¶</a></h4>
|
|
<p>We will review your layout and add it to the main plugin distribution as soon as possible. However, if you need the layout immediately and cannot wait for it to be added officially, you can fork the repository and include it yourself.</p>
|
|
<p>To do so, you can edit the <a href="https://github.com/melektron/inventree-adv-sheet-label/blob/main/advanced_sheet_label/layouts.py">advanced_sheet_label/layouts.py</a> file. In there you will find a dictionary of all defined paper sizes and a dictionary of all defined sheet layouts. After filling out the code in the Issue template, you can simply append the new definitions at the end of the dictionaries.</p>
|
|
<div class="highlight"><pre><span></span><code><span class="c1"># ... more file content</span>
|
|
|
|
<span class="n">PAPER_SIZES</span> <span class="o">=</span> <span class="p">{</span>
|
|
<span class="s2">"A4"</span><span class="p">:</span> <span class="n">PaperSize</span><span class="p">(</span><span class="s2">"A4"</span><span class="p">,</span> <span class="mi">210</span><span class="p">,</span> <span class="mi">297</span><span class="p">)</span>
|
|
<span class="c1"># ... possibly more paper sizes</span>
|
|
<span class="c1"># add your new paper size here if required</span>
|
|
<span class="p">}</span>
|
|
|
|
<span class="n">LAYOUTS</span> <span class="o">=</span> <span class="p">{</span>
|
|
<span class="s2">"4780"</span><span class="p">:</span> <span class="n">SheetLayout</span><span class="p">(</span>
|
|
<span class="n">display_name</span><span class="o">=</span><span class="s2">"4780"</span><span class="p">,</span>
|
|
<span class="n">page_size</span><span class="o">=</span><span class="n">PAPER_SIZES</span><span class="p">[</span><span class="s2">"A4"</span><span class="p">],</span>
|
|
<span class="n">label_width</span><span class="o">=</span><span class="mf">48.5</span><span class="p">,</span>
|
|
<span class="n">label_height</span><span class="o">=</span><span class="mf">25.4</span><span class="p">,</span>
|
|
<span class="n">columns</span><span class="o">=</span><span class="mi">4</span><span class="p">,</span>
|
|
<span class="n">rows</span><span class="o">=</span><span class="mi">10</span><span class="p">,</span>
|
|
<span class="n">column_spacing</span><span class="o">=</span><span class="mi">0</span><span class="p">,</span>
|
|
<span class="n">row_spacing</span><span class="o">=</span><span class="mi">0</span><span class="p">,</span>
|
|
<span class="n">corner_radius</span><span class="o">=</span><span class="mi">0</span>
|
|
<span class="p">),</span>
|
|
<span class="c1"># ... more sheet layouts</span>
|
|
<span class="c1"># add your new sheet layout here</span>
|
|
<span class="p">}</span>
|
|
|
|
<span class="c1"># ... more file content</span>
|
|
</code></pre></div>
|
|
<p>Make sure that the layout codes (the strings before the colon) are UNIQUE, otherwise the plugin will not work.</p>
|
|
<p>To install the modified plugin in your InvenTree instance, simply enter <strong>YOUR</strong> repository link instead of the package name in the installation modal. Example with this repository:</p>
|
|
<p><img alt="Install plugin from VCS" src="https://raw.githubusercontent.com/melektron/inventree-adv-sheet-label/main/images/install_from_vcs.png" /></p>
|
|
<blockquote>
|
|
<p>Make sure to uninstall the official plugin before you install your fork, otherwise they will conflict!</p>
|
|
<p>Plugins installed in this way seem to not be added to plugins.txt file properly in InvenTree version <code>1.0.5+</code>. For me, I have been able to install the plugin directly from GitHub by stopping the InvenTree server, adding the URL to the plugins.txt file and then running <code>invoke plugins</code>.
|
|
Alternatively, you can install it directly using pip:
|
|
<div class="highlight"><pre><span></span><code>pip<span class="w"> </span>uninstall<span class="w"> </span>inventree-adv-sheet-label<span class="w"> </span><span class="c1"># uninstall normal package</span>
|
|
pip<span class="w"> </span>install<span class="w"> </span>git+https://github.com/melektron/inventree-adv-sheet-label.git
|
|
</code></pre></div>
|
|
You have to adjust the link to your repo. </p>
|
|
</blockquote>
|
|
<p>If you have added a sheet layout yourself, you are still encouraged to <a href="https://github.com/melektron/inventree-adv-sheet-label/compare">create a Pull Request</a> with your changes so the changes can be added to the mainline plugin for everyone to benefit.</p>
|
|
<h2 id="plugin-development-setup">Plugin development setup<a class="headerlink" href="#plugin-development-setup" title="Permanent link">¶</a></h2>
|
|
<p>When making bigger changes than just adding layouts, it is recommended to set up a proper development environment.</p>
|
|
<p>To develop the plugin, setup an InvenTree development instance using devcontainers according to this <a href="https://docs.inventree.org/en/stable/develop/devcontainer/">this</a> official documentation. It is also recommended to setup the example dataset for experimenting.</p>
|
|
<p>Then clone this repo (or your fork) separately on your host computer and link it to the devserver according to <a href="https://docs.inventree.org/en/stable/develop/devcontainer/#plugin-development">the documentation</a>.</p>
|
|
<p>It is also recommended to save the workspace as a file (maybe somewhere in inventree repo but don't commit it) and include the intellisenseconfig as well as editor layout there.</p>
|
|
<p>The InvenTree intellisense path might be something like <code>/home/inventree/src/backend/InvenTree</code> instead of the path from the documentation.</p>
|
|
<p>After that, start the InvenTree server with the debugger and the plugin should now be usable and debugable.</p>
|
|
|
|
</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 © 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> |