From af7e7923d13fdce59b58e344b85a5cb4c462cb3a Mon Sep 17 00:00:00 2001 From: SchrodingersGat Date: Mon, 22 Jul 2024 01:47:26 +0000 Subject: [PATCH] deploy: f79f7fa8da1e486e266bb46364fe5d45b80d73e3 --- LavissaWoW.html | 4 +- LavissaWoW/inventree-ipn-generator.html | 4 +- SchrodingersGat/inventree-brother-plugin.html | 4 +- SchrodingersGat/inventree-wireviz.html | 4 +- SergeoLacruz.html | 4 +- SergeoLacruz/inventree-supplier-panel.html | 4 +- SergeoLacruz/inventree-zebra-plugin.html | 4 +- afkiwers/inventree-kicad.html | 4 +- afwkiers.html | 4 +- blog/feed.atom | 2 +- lippoliv.html | 4 +- .../inventree-default-salesorder-items.html | 4 +- matmair.html | 4 +- matmair/inventree-apprise.html | 4 +- matmair/inventree-rapidoc.html | 4 +- matmair/inventree-zapier.html | 4 +- melektron.html | 209 ++++++ melektron/inventree-adv-sheet-label.html | 615 ++++++++++++++++++ news/feed.atom | 2 +- plugins.html | 38 ++ plugins/categories/index.html | 179 +++++ plugins/tags/index.html | 497 ++++++++++++++ publishers.html | 8 + schrodingersgat.html | 4 +- sitemap.xml | 48 +- wolflu05.html | 4 +- wolflu05/inventree-bulk-plugin.html | 4 +- wolflu05/inventree-cups-plugin.html | 4 +- wolflu05/inventree-dymo-plugin.html | 4 +- 29 files changed, 1616 insertions(+), 62 deletions(-) create mode 100644 melektron.html create mode 100644 melektron/inventree-adv-sheet-label.html diff --git a/LavissaWoW.html b/LavissaWoW.html index 4f7fb778..2d24b7a0 100644 --- a/LavissaWoW.html +++ b/LavissaWoW.html @@ -30,11 +30,11 @@ - + +{"@context":"https://schema.org","@type":"BlogPosting","dateModified":"2024-07-22T01:47:16+00:00","datePublished":"2024-07-22T01:47:16+00:00","description":"Yes, WoW is for World of Warcraft","headline":"Lavissawow","mainEntityOfPage":{"@type":"WebPage","@id":"/LavissaWoW"},"url":"/LavissaWoW"} diff --git a/LavissaWoW/inventree-ipn-generator.html b/LavissaWoW/inventree-ipn-generator.html index f4a6979e..2af5b904 100644 --- a/LavissaWoW/inventree-ipn-generator.html +++ b/LavissaWoW/inventree-ipn-generator.html @@ -31,11 +31,11 @@ - + +{"@context":"https://schema.org","@type":"BlogPosting","author":{"@type":"Person","name":"LavissaWoW"},"dateModified":"2024-07-22T01:47:16+00:00","datePublished":"2024-07-22T01:47:16+00:00","description":"Introduction Installing this plugin enables the automatic generation if Internal Part Numbers (IPN) for parts.","headline":"Inventree Ipn Generator","mainEntityOfPage":{"@type":"WebPage","@id":"/LavissaWoW/inventree-ipn-generator"},"url":"/LavissaWoW/inventree-ipn-generator"} diff --git a/SchrodingersGat/inventree-brother-plugin.html b/SchrodingersGat/inventree-brother-plugin.html index 286ddf3a..44329527 100644 --- a/SchrodingersGat/inventree-brother-plugin.html +++ b/SchrodingersGat/inventree-brother-plugin.html @@ -31,11 +31,11 @@ - + +{"@context":"https://schema.org","@type":"BlogPosting","author":{"@type":"Person","name":"SchrodingersGat"},"dateModified":"2024-07-22T01:47:16+00:00","datePublished":"2024-07-22T01:47:16+00:00","description":"Brother label printer plugin for InvenTree","headline":"Inventree Brother Plugin","mainEntityOfPage":{"@type":"WebPage","@id":"/SchrodingersGat/inventree-brother-plugin"},"url":"/SchrodingersGat/inventree-brother-plugin"} diff --git a/SchrodingersGat/inventree-wireviz.html b/SchrodingersGat/inventree-wireviz.html index 13dbb49e..3db20cd5 100644 --- a/SchrodingersGat/inventree-wireviz.html +++ b/SchrodingersGat/inventree-wireviz.html @@ -31,11 +31,11 @@ - + +{"@context":"https://schema.org","@type":"BlogPosting","author":{"@type":"Person","name":"SchrodingersGat"},"dateModified":"2024-07-22T01:47:16+00:00","datePublished":"2024-07-22T01:47:16+00:00","description":"Wireviz Extension for InvenTree","headline":"Inventree Wireviz","mainEntityOfPage":{"@type":"WebPage","@id":"/SchrodingersGat/inventree-wireviz"},"url":"/SchrodingersGat/inventree-wireviz"} diff --git a/SergeoLacruz.html b/SergeoLacruz.html index f55de2b8..edb54bd2 100644 --- a/SergeoLacruz.html +++ b/SergeoLacruz.html @@ -30,11 +30,11 @@ - + +{"@context":"https://schema.org","@type":"BlogPosting","dateModified":"2024-07-22T01:47:16+00:00","datePublished":"2024-07-22T01:47:16+00:00","description":"Hardware engineer in Germany and vintage fan.","headline":"Sergeolacruz","mainEntityOfPage":{"@type":"WebPage","@id":"/SergeoLacruz"},"url":"/SergeoLacruz"} diff --git a/SergeoLacruz/inventree-supplier-panel.html b/SergeoLacruz/inventree-supplier-panel.html index 2ddede1d..f6a60c1a 100644 --- a/SergeoLacruz/inventree-supplier-panel.html +++ b/SergeoLacruz/inventree-supplier-panel.html @@ -31,11 +31,11 @@ - + +{"@context":"https://schema.org","@type":"BlogPosting","author":{"@type":"Person","name":"SergeoLacruz"},"dateModified":"2024-07-22T01:47:16+00:00","datePublished":"2024-07-22T01:47:16+00:00","description":"The InvenTree-supplier-panel","headline":"Inventree Supplier Panel","mainEntityOfPage":{"@type":"WebPage","@id":"/SergeoLacruz/inventree-supplier-panel"},"url":"/SergeoLacruz/inventree-supplier-panel"} diff --git a/SergeoLacruz/inventree-zebra-plugin.html b/SergeoLacruz/inventree-zebra-plugin.html index 11264b88..98ebc0f8 100644 --- a/SergeoLacruz/inventree-zebra-plugin.html +++ b/SergeoLacruz/inventree-zebra-plugin.html @@ -31,11 +31,11 @@ - + +{"@context":"https://schema.org","@type":"BlogPosting","author":{"@type":"Person","name":"SergeoLacruz"},"dateModified":"2024-07-22T01:47:16+00:00","datePublished":"2024-07-22T01:47:16+00:00","description":"Zebra Label Printer Plugin for Inventree","headline":"Inventree Zebra Plugin","mainEntityOfPage":{"@type":"WebPage","@id":"/SergeoLacruz/inventree-zebra-plugin"},"url":"/SergeoLacruz/inventree-zebra-plugin"} diff --git a/afkiwers/inventree-kicad.html b/afkiwers/inventree-kicad.html index 1c1e41d1..15f62869 100644 --- a/afkiwers/inventree-kicad.html +++ b/afkiwers/inventree-kicad.html @@ -31,11 +31,11 @@ - + +{"@context":"https://schema.org","@type":"BlogPosting","author":{"@type":"Person","name":"afkiwers"},"dateModified":"2024-07-22T01:47:16+00:00","datePublished":"2024-07-22T01:47:16+00:00","description":"KiCad Integration for InvenTree","headline":"Inventree Kicad","mainEntityOfPage":{"@type":"WebPage","@id":"/afkiwers/inventree-kicad"},"url":"/afkiwers/inventree-kicad"} diff --git a/afwkiers.html b/afwkiers.html index 754e9cfa..ea66baab 100644 --- a/afwkiers.html +++ b/afwkiers.html @@ -30,11 +30,11 @@ - + +{"@context":"https://schema.org","@type":"BlogPosting","dateModified":"2024-07-22T01:47:16+00:00","datePublished":"2024-07-22T01:47:16+00:00","description":"InvenTree is an open-source inventory management system which provides intuitive parts management and stock control. It is at the center of an ecosystem of addins for EDA tools, API wrapper, deeply integrated plugins and 3rd party tools.","headline":"Afwkiers","mainEntityOfPage":{"@type":"WebPage","@id":"/afwkiers"},"url":"/afwkiers"} diff --git a/blog/feed.atom b/blog/feed.atom index f587a2dd..e0a64622 100644 --- a/blog/feed.atom +++ b/blog/feed.atom @@ -1,4 +1,4 @@ -Jekyll2024-07-22T01:45:54+00:00/blog/feed.atomInvenTreeInvenTree is an open-source inventory management system which provides intuitive parts management and stock control. It is at the center of an ecosystem of addins for EDA tools, API wrapper, deeply integrated plugins and 3rd party tools.0.15.0 Bugfix Release2024-05-26T00:00:00+00:002024-05-26T00:00:00+00:00/blog/2024/05/26/0.15.2The InvenTree team has just released version 0.15.2 which includes a patch for a critical security vulnerability.

+Jekyll2024-07-22T01:47:16+00:00/blog/feed.atomInvenTreeInvenTree is an open-source inventory management system which provides intuitive parts management and stock control. It is at the center of an ecosystem of addins for EDA tools, API wrapper, deeply integrated plugins and 3rd party tools.0.15.0 Bugfix Release2024-05-26T00:00:00+00:002024-05-26T00:00:00+00:00/blog/2024/05/26/0.15.2The InvenTree team has just released version 0.15.2 which includes a patch for a critical security vulnerability.

Security Patch

diff --git a/lippoliv.html b/lippoliv.html index 274dfb28..351f43f5 100644 --- a/lippoliv.html +++ b/lippoliv.html @@ -30,11 +30,11 @@ - + +{"@context":"https://schema.org","@type":"BlogPosting","dateModified":"2024-07-22T01:47:16+00:00","datePublished":"2024-07-22T01:47:16+00:00","description":"With over 15 years of experience and big big passion I learned to take care about the details. They build up to the big picture we have in mind. I’m planning ahead & act early to prevent a big bang.","headline":"Lippoliv","mainEntityOfPage":{"@type":"WebPage","@id":"/lippoliv"},"url":"/lippoliv"} diff --git a/lippoliv/inventree-default-salesorder-items.html b/lippoliv/inventree-default-salesorder-items.html index 8a198383..cd56481d 100644 --- a/lippoliv/inventree-default-salesorder-items.html +++ b/lippoliv/inventree-default-salesorder-items.html @@ -31,11 +31,11 @@ - + +{"@context":"https://schema.org","@type":"BlogPosting","author":{"@type":"Person","name":"lippoliv"},"dateModified":"2024-07-22T01:47:16+00:00","datePublished":"2024-07-22T01:47:16+00:00","description":"Add default parts (configurable) to every newly created sales order automatically.","headline":"Inventree Default Salesorder Items","mainEntityOfPage":{"@type":"WebPage","@id":"/lippoliv/inventree-default-salesorder-items"},"url":"/lippoliv/inventree-default-salesorder-items"} diff --git a/matmair.html b/matmair.html index b3f9ce48..77e19159 100644 --- a/matmair.html +++ b/matmair.html @@ -30,11 +30,11 @@ - + +{"@context":"https://schema.org","@type":"BlogPosting","dateModified":"2024-07-22T01:47:16+00:00","datePublished":"2024-07-22T01:47:16+00:00","description":"I try to build an ecosystem of reusable plugins and integrations for InvenTree. Code once and KISS!","headline":"Matmair","mainEntityOfPage":{"@type":"WebPage","@id":"/matmair"},"url":"/matmair"} diff --git a/matmair/inventree-apprise.html b/matmair/inventree-apprise.html index 3f1a0dcc..34105123 100644 --- a/matmair/inventree-apprise.html +++ b/matmair/inventree-apprise.html @@ -31,11 +31,11 @@ - + +{"@context":"https://schema.org","@type":"BlogPosting","author":{"@type":"Person","name":"matmair"},"dateModified":"2024-07-22T01:47:16+00:00","datePublished":"2024-07-22T01:47:16+00:00","description":"Send notifications from InvenTree via Apprise","headline":"Inventree Apprise","mainEntityOfPage":{"@type":"WebPage","@id":"/matmair/inventree-apprise"},"url":"/matmair/inventree-apprise"} diff --git a/matmair/inventree-rapidoc.html b/matmair/inventree-rapidoc.html index 47d91cfc..671304fd 100644 --- a/matmair/inventree-rapidoc.html +++ b/matmair/inventree-rapidoc.html @@ -31,11 +31,11 @@ - + +{"@context":"https://schema.org","@type":"BlogPosting","author":{"@type":"Person","name":"matmair"},"dateModified":"2024-07-22T01:47:16+00:00","datePublished":"2024-07-22T01:47:16+00:00","description":"Use RapiDoc for Inventree API docs.","headline":"Inventree Rapidoc","mainEntityOfPage":{"@type":"WebPage","@id":"/matmair/inventree-rapidoc"},"url":"/matmair/inventree-rapidoc"} diff --git a/matmair/inventree-zapier.html b/matmair/inventree-zapier.html index 5ced6cf3..fa55e8fa 100644 --- a/matmair/inventree-zapier.html +++ b/matmair/inventree-zapier.html @@ -31,11 +31,11 @@ - + +{"@context":"https://schema.org","@type":"BlogPosting","author":{"@type":"Person","name":"matmair"},"dateModified":"2024-07-22T01:47:16+00:00","datePublished":"2024-07-22T01:47:16+00:00","description":"Integrate Zapier into InvenTree","headline":"Inventree Zapier","mainEntityOfPage":{"@type":"WebPage","@id":"/matmair/inventree-zapier"},"url":"/matmair/inventree-zapier"} diff --git a/melektron.html b/melektron.html new file mode 100644 index 00000000..08855c7f --- /dev/null +++ b/melektron.html @@ -0,0 +1,209 @@ + + + + + + + + + + + + + + + + + +InvenTree - Melektron + + + +Melektron | InvenTree + + + + + + + + + + + + + + + + + + +
+
+
+ + logo + InvenTree + + +
+ + + + +
+
+ +

+
+ +
+ mdo +
+ + melektron +
+

+ +
+ +GitHub + + + +Website + + + + +
+ +
+

Juggling with bits and bytes for fun and profit ;) (and also electrons if I feel like it)

+ +
+ + + + + + +

Plugins

+ + +
+ +
+ +
+
+ + +
+ + + diff --git a/melektron/inventree-adv-sheet-label.html b/melektron/inventree-adv-sheet-label.html new file mode 100644 index 00000000..6b8514af --- /dev/null +++ b/melektron/inventree-adv-sheet-label.html @@ -0,0 +1,615 @@ + + + + + + + + + + + + + + + + + +InvenTree - Inventree Adv Sheet Label + + + +Inventree Adv Sheet Label | InvenTree + + + + + + + + + + + + + + + + + + + +
+
+
+ + logo + InvenTree + + +
+ + + + +
+
+ +

InvenTree Advanced Sheet Label + + + + mdo +

 melektron

+
+
+last modified: 22 Jul 2024 +

+ +
+
+

A label printing plugin for InvenTree 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.

+ +

Index

+ +
    +
  1. Installation
  2. +
  3. +Usage and Features +
      +
    1. Sheet layout
    2. +
    3. Number of labels
    4. +
    5. Skip label positions
    6. +
    7. Ignore label size mismatch
    8. +
    9. Print border
    10. +
    11. Label fill color
    12. +
    +
  4. +
  5. Errors
  6. +
  7. +Settings +
      +
    1. Default sheet layout
    2. +
    +
  8. +
  9. +Contribution +
      +
    1. Reporting and fixing bugs
    2. +
    3. Adding new layouts
    4. +
    +
  10. +
  11. Plugin development setup
  12. +
+ +

Installation

+ +
+

Note: +This plugin currently supports InvenTree versions 0.15.x. As of writing, version 0.16.x is under development and its new API is partially supported. However, since that might still change at any time, compatibility is not yet guaranteed.

+
+ +

The simplest way of installing is by using the Install Plugin button on the InvenTree Plugin Settings page and then entering the package name:

+ +

Plugin installation via UI: The "Install Plugin" modal window

+ +

Alternatively, you can install this plugin manually in the InvenTree container as follows:

+ +
pip install inventree-adv-sheet-label
+
+ +

Or, add the package name to your plugins.txt file (this is automatically done when using the UI method) to install automatically when using the invoke install command:

+ +
inventree-adv-sheet-label
+
+ +

In any case, after installation, the plugin needs to be enabled in the above mentioned plugin settings page:

+ +

Plugin list with mouse cursor over "Enable Plugin" button

+ +

Usage and Features

+ +

This plugin adds the “AdvancedLabelSheet” printing option to the label printing dialog:

+ +

Printing dialog with plugin selection open

+ +

Sheet layout

+ +

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.

+ +

You can select the layout corresponding your paper in the Sheet layout dropdown:

+ +

"Sheet layout" dropdown in open state, with various layout options shown

+ +

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.

+ +

The dropdown list also shows some additional information about the layout for orientation:

+ +
    +
  • Paper size (e.g. A4)
  • +
  • Dimensions of the individual labels
  • +
  • How many rows and columns are on one page
  • +
  • Whether the labels have rounded corners
  • +
+ +

Currently supported layouts:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Layout IdentifierPaper sizeLabel dimensionsLabel layoutCorner style
4780A448.5mm x 25.4mm4 columns x 10 rowssharp
4737A463.5mm x 29.6mm3 columns x 9 rowsround
4201A445.7mm x 16.9mm4 columns x 16 rowsround
7160-10A463.5mm x 38.1mm3 columns x 7 rowsround
4360A470.0mm x 36.0mm3 columns x 8 rowssharp
+ +

As of right now, this selection is limited to whatever layouts I personally own and use. If the paper layout you need is not included, please file an Issue with the “Sheet Layout” template. See the Adding new layouts for details.

+ +

You can also select one of the two Auto 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:

+
    +
  • If you have a specific layout that’s always used for a specific template, you can add the {"sheet_layout": "..."} 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 here what the identifier is). This is the cleanest way configure the correct layout for your templates.
  • +
  • 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.
  • +
  • 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 ‘Ignore label size mismatch’ switch.
  • +
+ +

Number of labels

+ +

The Number of labels 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:

+ +

Top of a page with one label printed on it +(The label template is only an example and this is only part of a page)

+ +

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:

+ +

Top of a page with two identical labels printed on it

+ +

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:

+ +

Selection of multiple items to print labels for +Configuration for multi label print

+ +

This results in a printout looking like this:

+ +

Top of a page with two labels each for four parts into total

+ +

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.

+ +

Skip label positions

+ +

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 Skip label positions 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.

+ +

For example, let’s assume the first two labels are already used up and we want to start printing at the third one:

+ +

Settings for printing two labels, skipping the first two positions

+ +

This results in the following output:

+ +

Page with two labels printed and the first two positions skipped

+ +

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 Skip label positions 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:

+ +

Skip label positions field pre-populated with correct skip amount

+ +

When an entire page or more is used up, this counter automatically wraps around to the correct value for the next page.

+ +

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.

+ +

Ignore label size mismatch

+ +

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.

+ +

If that is not the case, the user is presented with an error message. This can happen in a few different scenarios:

+
    +
  • Manually selecting a sheet layout that doesn’t match the label template: Error selected layout size does not match +
  • +
  • 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: Error template metadata layout does not have the expected size +
  • +
  • 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: Error no metadata and no exact size match found +
  • +
+ +

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 Ignore label size mismatch 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:

+ +

Label printed on larger label sheet layout

+ + + +

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 Debug: Print border 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.

+ +

When skipping labels, the skipped positions also have a border.

+ +

The result looks something like this:

+ +

Label sheet with border

+ +

Label fill color

+ +

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 Debug: Label fill color 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.

+ +

The result might look something like this with color “lightgreen”:

+ +

Labels with lightgreen fill colo +(White lines between rows are just rendering defects of my browser)

+ +

You can also combine this option with the border.

+ +

Errors

+ +

In addition to the errors covered in section Ignore label size mismatch you might encounter the following error messages when printing:

+ +
    +
  • +Sheet layout ‘[sheet_layout_code]’ does not exist.: 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.
  • +
  • +No labels were generated: 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.
  • +
  • +Error printing label: 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: Unintentional plugin errorIf you see this, feel free to file a bug report. See Reporting and fixing bugs on how to do so.
  • +
+ +

Settings

+ +

This section describes the settings available in the plugins settings page.

+ +

Default sheet layout

+ +

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 Auto option or to the layout you are using the most. The default is Auto (round), which is probably fine for most use-cases.

+ +

Contribution

+ +

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 filing an Issue or creating a Pull Request. See Plugin development setup to learn how you can set up your development environment to test your modifications.

+ +

See the below information and instructions for common contribution types.

+ +

Reporting and fixing bugs

+ +

If you have encountered a problem or a bug with the plugin, please file an Issue with the Bug Report template.

+ +

The template requires you to provide a screenshot of your label template configuration. You can get this by going to https://your.inventree.url/admin/label/ for InvenTree 0.15.x or https://your.inventree.url/admin/report/labeltemplate/ for InvenTree 0.16.x and selecting the template you were trying to print when the problem ocurred. You need administrator privileges to do this. If you don’t have them, ask your administrator. This page might look something like this:

+ +

Example template configuration screenshot

+ +

In addition to this screenshot, you will be asked to attach the label template file which can be downloaded by clicking on the link next to “Currently:” in the above shown page. Please make sure this file doesn’t contain any confidential data and remove it if it does.

+ +

You will also be asked to provide some other information about when and how the bug ocurred which is described in the template.

+ +

PRs

+ +

If you know how to fix a bug, feel free to create a Pull Request with the solution.

+ +

Adding new layouts

+ +

If you have a label paper layout that is not yet supported by this plugin, please file an Issue with the Sheet Layout template

+ +

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.

+ +

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.

+ +

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.

+ +

Adding sheet layouts yourself

+ +

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.

+ +

To do so, you can edit the advanced_sheet_label/layouts.py 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.

+ +
# ... more file content
+
+PAPER_SIZES = {
+    "A4": PaperSize("A4", 210, 297)
+    # ... possibly more paper sizes
+    # add your new paper size here if required
+}
+
+LAYOUTS = {
+    "4780": SheetLayout(
+        display_name="4780",
+        page_size=PAPER_SIZES["A4"],
+        label_width=48.5,
+        label_height=25.4,
+        columns=4,
+        rows=10,
+        column_spacing=0,
+        row_spacing=0,
+        corner_radius=0
+    ),
+    # ... more sheet layouts
+    # add your new sheet layout here
+}
+
+# ... more file content
+
+ +

Make sure that the layout codes (the strings before the colon) are UNIQUE, otherwise the plugin will not work.

+ +

To install the modified plugin in your InvenTree instance, simply enter YOUR repository link instead of the package name in the installation modal. Example with this repository:

+ +

Install plugin from VCS

+ +
+

Make sure to uninstall the official plugin before you install your fork, otherwise they will conflict!

+
+ +
+

It appears that this doesn’t work. It also didn’t seem to work when placing the “git+…” URL in package field in the UI. For me, I have been able to install the plugin directly from GitHub by stopping the InvenTree server and then installing directly using pip:

+
+
pip uninstall inventree-adv-sheet-label # uninstall normal package
+pip install git+https://github.com/melektron/inventree-adv-sheet-label.git
+
+

You have to adjust the link to your repo.

+
+ +

If you have added a sheet layout yourself, you are still encouraged to create a Pull Request with your changes so the changes can be added to the mainline plugin for everyone to benefit.

+ +

Plugin development setup

+ +

When making bigger changes than just adding layouts, it is recommended to set up a proper development environment.

+ +

To develop the plugin, setup an InvenTree development instance using devcontainers according to this this official documentation. It is also recommended to setup the example dataset for experimenting.

+ +

Then clone this repo (or your fork) separately on your host computer and link it to the devserver according to the documentation.

+ +

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.

+ +

The InvenTree intellisense path might be something like /home/inventree/src/backend/InvenTree instead of the path from the documentation.

+ +

After that, start the InvenTree server with the debugger and the plugin should now be usable and debugable.

+ +
+ +
+

Detail section

+
+

License: + + + MIT
+
+

+
+ Status:
+
+ + + Stable + + +
+
+ + + Maintained + + +
+
+ Package on PyPI:
inventree-adv-sheet-label
+ + + + +
+ +

https://elektron.work

+
+
+ + + + +
+ +
+
+ + + + +
+ +

melektron/inventree-adv-sheet-label/

+
+
+ + + + +
+ +
+ + Label + + Settings + +
+
+ +
+ +
+ + Sheet layout + + Office + + Printing + + Label + +
+
+
+
+
+ +
+ +
+ +
+
+ + +
+ + + diff --git a/news/feed.atom b/news/feed.atom index 0e1a0fad..8766db5a 100644 --- a/news/feed.atom +++ b/news/feed.atom @@ -1,4 +1,4 @@ -Jekyll2024-07-22T01:45:54+00:00/news/feed.atomInvenTree | NewsInvenTree is an open-source inventory management system which provides intuitive parts management and stock control. It is at the center of an ecosystem of addins for EDA tools, API wrapper, deeply integrated plugins and 3rd party tools.0.15.2 Release2024-05-26T00:00:00+00:002024-05-26T00:00:00+00:00/news/2024/05/26/0.15.20.15.2 Release +Jekyll2024-07-22T01:47:16+00:00/news/feed.atomInvenTree | NewsInvenTree is an open-source inventory management system which provides intuitive parts management and stock control. It is at the center of an ecosystem of addins for EDA tools, API wrapper, deeply integrated plugins and 3rd party tools.0.15.2 Release2024-05-26T00:00:00+00:002024-05-26T00:00:00+00:00/news/2024/05/26/0.15.20.15.2 Release

We have just released version 0.15.2 which includes a patch for a critical security vulnerability.

diff --git a/plugins.html b/plugins.html index 2b5b56c8..d8c02b10 100644 --- a/plugins.html +++ b/plugins.html @@ -67,6 +67,44 @@

+
+ +
+
+
+ + Label + + Settings + + + Sheet layout + + Office + + Printing + + Label + +
+

InvenTree Advanced Sheet Label

+
+

A label printing plugin for InvenTree 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. +

+
+
+ +
+
diff --git a/plugins/categories/index.html b/plugins/categories/index.html index b99249d9..f212f254 100644 --- a/plugins/categories/index.html +++ b/plugins/categories/index.html @@ -101,6 +101,12 @@ + + Label + + + + Notifications @@ -164,6 +170,10 @@ + + + + @@ -234,6 +244,10 @@ + + + + + + + +
+

Label

+ +
+ + + + +
+
+
+
+ + Label + + Settings + + + Sheet layout + + Office + + Printing + + Label + +
+

InvenTree Advanced Sheet Label

+
+

A label printing plugin for InvenTree 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. +

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -664,6 +791,10 @@ Installing this plugin enables the automatic generation if Internal Part Numbers + + + +
@@ -771,6 +902,10 @@ Installing this plugin enables the automatic generation if Internal Part Numbers + + + +
@@ -960,6 +1095,46 @@ Installing this plugin enables the automatic generation if Internal Part Numbers +
+
+
+
+ + Label + + Settings + + + Sheet layout + + Office + + Printing + + Label + +
+

InvenTree Advanced Sheet Label

+
+

A label printing plugin for InvenTree 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. +

+
+
+
+ + + + + @@ -1086,6 +1261,10 @@ Installing this plugin enables the automatic generation if Internal Part Numbers + + + + diff --git a/plugins/tags/index.html b/plugins/tags/index.html index c8997fe7..ff9cb7f0 100644 --- a/plugins/tags/index.html +++ b/plugins/tags/index.html @@ -179,6 +179,12 @@ + + Office + + + + Part @@ -197,6 +203,12 @@ + + Printing + + + + RapiDoc @@ -209,6 +221,12 @@ + + Sheet layout + + + + Slack @@ -293,6 +311,10 @@ + + + +
@@ -396,6 +418,10 @@ + + + +
@@ -511,6 +537,10 @@ + + + + @@ -629,6 +659,10 @@ + + + + @@ -691,6 +725,10 @@ + + + +
@@ -815,6 +853,10 @@ + + + + @@ -881,6 +923,10 @@ + + + +
@@ -980,6 +1026,10 @@ + + + +
@@ -1075,6 +1125,10 @@ + + + +
@@ -1158,6 +1212,10 @@ + + + +
@@ -1276,6 +1334,10 @@ + + + + @@ -1373,6 +1435,10 @@ + + + + @@ -1449,6 +1515,10 @@ Installing this plugin enables the automatic generation if Internal Part Numbers + + + +
@@ -1571,6 +1641,10 @@ Installing this plugin enables the automatic generation if Internal Part Numbers + + + + @@ -1647,6 +1721,46 @@ Installing this plugin enables the automatic generation if Internal Part Numbers +
+
+
+
+ + Label + + Settings + + + Sheet layout + + Office + + Printing + + Label + +
+

InvenTree Advanced Sheet Label

+
+

A label printing plugin for InvenTree 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. +

+
+
+
+ + + + + @@ -1848,6 +1962,10 @@ Installing this plugin enables the automatic generation if Internal Part Numbers + + + +
@@ -1935,6 +2053,10 @@ Installing this plugin enables the automatic generation if Internal Part Numbers + + + +
@@ -2038,6 +2160,10 @@ Installing this plugin enables the automatic generation if Internal Part Numbers + + + +
@@ -2108,6 +2234,107 @@ Installing this plugin enables the automatic generation if Internal Part Numbers + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+

Office

+ +
+ + + + +
+
+
+
+ + Label + + Settings + + + Sheet layout + + Office + + Printing + + Label + +
+

InvenTree Advanced Sheet Label

+
+

A label printing plugin for InvenTree 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. +

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2149,6 +2376,10 @@ Installing this plugin enables the automatic generation if Internal Part Numbers + + + +
+ + + +
+

Printing

+ +
+ + + + +
+
+
+
+ + Label + + Settings + + + Sheet layout + + Office + + Printing + + Label + +
+

InvenTree Advanced Sheet Label

+
+

A label printing plugin for InvenTree 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. +

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
@@ -2617,6 +2957,10 @@ Installing this plugin enables the automatic generation if Internal Part Numbers + + + + @@ -2691,6 +3035,10 @@ Installing this plugin enables the automatic generation if Internal Part Numbers + + + + @@ -2741,6 +3089,107 @@ Installing this plugin enables the automatic generation if Internal Part Numbers + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+

Sheet layout

+ +
+ + + + +
+
+
+
+ + Label + + Settings + + + Sheet layout + + Office + + Printing + + Label + +
+

InvenTree Advanced Sheet Label

+
+

A label printing plugin for InvenTree 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. +

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2774,6 +3223,10 @@ Installing this plugin enables the automatic generation if Internal Part Numbers + + + +
@@ -2885,6 +3338,10 @@ Installing this plugin enables the automatic generation if Internal Part Numbers + + + +
@@ -2972,6 +3429,10 @@ Installing this plugin enables the automatic generation if Internal Part Numbers + + + +
@@ -3118,6 +3579,10 @@ Installing this plugin enables the automatic generation if Internal Part Numbers + + + + @@ -3209,6 +3674,10 @@ Installing this plugin enables the automatic generation if Internal Part Numbers + + + + @@ -3302,6 +3771,10 @@ Installing this plugin enables the automatic generation if Internal Part Numbers + + + + @@ -3377,6 +3850,10 @@ Installing this plugin enables the automatic generation if Internal Part Numbers + + + + @@ -3478,6 +3955,10 @@ Installing this plugin enables the automatic generation if Internal Part Numbers + + + + @@ -3564,6 +4045,10 @@ Installing this plugin enables the automatic generation if Internal Part Numbers + + + + @@ -3665,6 +4150,10 @@ Installing this plugin enables the automatic generation if Internal Part Numbers + + + + @@ -3751,6 +4240,10 @@ Installing this plugin enables the automatic generation if Internal Part Numbers + + + + @@ -3852,6 +4345,10 @@ Installing this plugin enables the automatic generation if Internal Part Numbers + + + + diff --git a/publishers.html b/publishers.html index 79768b71..3fc6abb1 100644 --- a/publishers.html +++ b/publishers.html @@ -100,6 +100,14 @@ +
  • +

    melektron

    +

    +

    +

    Juggling with bits and bytes for fun and profit ;) (and also electrons if I feel like it)

    + +
  • +
  • Oliver

    diff --git a/schrodingersgat.html b/schrodingersgat.html index 9b53ee6d..a2492c63 100644 --- a/schrodingersgat.html +++ b/schrodingersgat.html @@ -30,11 +30,11 @@ - + +{"@context":"https://schema.org","@type":"BlogPosting","dateModified":"2024-07-22T01:47:16+00:00","datePublished":"2024-07-22T01:47:16+00:00","description":"Maintainer of InvenTree.","headline":"Schrodingersgat","mainEntityOfPage":{"@type":"WebPage","@id":"/schrodingersgat"},"url":"/schrodingersgat"} diff --git a/sitemap.xml b/sitemap.xml index 27d18f9f..2d6b70d3 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -134,83 +134,91 @@ /LavissaWoW -2024-07-22T01:45:54+00:00 +2024-07-22T01:47:16+00:00 /SergeoLacruz -2024-07-22T01:45:54+00:00 +2024-07-22T01:47:16+00:00 /afwkiers -2024-07-22T01:45:54+00:00 +2024-07-22T01:47:16+00:00 /lippoliv -2024-07-22T01:45:54+00:00 +2024-07-22T01:47:16+00:00 /matmair -2024-07-22T01:45:54+00:00 +2024-07-22T01:47:16+00:00 + + +/melektron +2024-07-22T01:47:16+00:00 /schrodingersgat -2024-07-22T01:45:54+00:00 +2024-07-22T01:47:16+00:00 /wolflu05 -2024-07-22T01:45:54+00:00 +2024-07-22T01:47:16+00:00 + + +/melektron/inventree-adv-sheet-label +2024-07-22T01:47:16+00:00 /matmair/inventree-apprise -2024-07-22T01:45:54+00:00 +2024-07-22T01:47:16+00:00 /SchrodingersGat/inventree-brother-plugin -2024-07-22T01:45:54+00:00 +2024-07-22T01:47:16+00:00 /wolflu05/inventree-bulk-plugin -2024-07-22T01:45:54+00:00 +2024-07-22T01:47:16+00:00 /wolflu05/inventree-cups-plugin -2024-07-22T01:45:54+00:00 +2024-07-22T01:47:16+00:00 /lippoliv/inventree-default-salesorder-items -2024-07-22T01:45:54+00:00 +2024-07-22T01:47:16+00:00 /wolflu05/inventree-dymo-plugin -2024-07-22T01:45:54+00:00 +2024-07-22T01:47:16+00:00 /LavissaWoW/inventree-ipn-generator -2024-07-22T01:45:54+00:00 +2024-07-22T01:47:16+00:00 /afkiwers/inventree-kicad -2024-07-22T01:45:54+00:00 +2024-07-22T01:47:16+00:00 /matmair/inventree-rapidoc -2024-07-22T01:45:54+00:00 +2024-07-22T01:47:16+00:00 /SergeoLacruz/inventree-supplier-panel -2024-07-22T01:45:54+00:00 +2024-07-22T01:47:16+00:00 /SchrodingersGat/inventree-wireviz -2024-07-22T01:45:54+00:00 +2024-07-22T01:47:16+00:00 /matmair/inventree-zapier -2024-07-22T01:45:54+00:00 +2024-07-22T01:47:16+00:00 /SergeoLacruz/inventree-zebra-plugin -2024-07-22T01:45:54+00:00 +2024-07-22T01:47:16+00:00 /404 diff --git a/wolflu05.html b/wolflu05.html index a48ab2d8..0636443e 100644 --- a/wolflu05.html +++ b/wolflu05.html @@ -30,11 +30,11 @@ - + +{"@context":"https://schema.org","@type":"BlogPosting","dateModified":"2024-07-22T01:47:16+00:00","datePublished":"2024-07-22T01:47:16+00:00","description":"InvenTree is an open-source inventory management system which provides intuitive parts management and stock control. It is at the center of an ecosystem of addins for EDA tools, API wrapper, deeply integrated plugins and 3rd party tools.","headline":"Wolflu05","mainEntityOfPage":{"@type":"WebPage","@id":"/wolflu05"},"url":"/wolflu05"} diff --git a/wolflu05/inventree-bulk-plugin.html b/wolflu05/inventree-bulk-plugin.html index 42460830..0697b0e1 100644 --- a/wolflu05/inventree-bulk-plugin.html +++ b/wolflu05/inventree-bulk-plugin.html @@ -31,11 +31,11 @@ - + +{"@context":"https://schema.org","@type":"BlogPosting","author":{"@type":"Person","name":"wolflu05"},"dateModified":"2024-07-22T01:47:16+00:00","datePublished":"2024-07-22T01:47:16+00:00","description":"Bulk creation plugin for InvenTree","headline":"Inventree Bulk Plugin","mainEntityOfPage":{"@type":"WebPage","@id":"/wolflu05/inventree-bulk-plugin"},"url":"/wolflu05/inventree-bulk-plugin"} diff --git a/wolflu05/inventree-cups-plugin.html b/wolflu05/inventree-cups-plugin.html index d7e768e3..fff9a186 100644 --- a/wolflu05/inventree-cups-plugin.html +++ b/wolflu05/inventree-cups-plugin.html @@ -31,11 +31,11 @@ - + +{"@context":"https://schema.org","@type":"BlogPosting","author":{"@type":"Person","name":"wolflu05"},"dateModified":"2024-07-22T01:47:16+00:00","datePublished":"2024-07-22T01:47:16+00:00","description":"Label printing plugin for generic cups printers","headline":"Inventree Cups Plugin","mainEntityOfPage":{"@type":"WebPage","@id":"/wolflu05/inventree-cups-plugin"},"url":"/wolflu05/inventree-cups-plugin"} diff --git a/wolflu05/inventree-dymo-plugin.html b/wolflu05/inventree-dymo-plugin.html index 975f99eb..3ea88a02 100644 --- a/wolflu05/inventree-dymo-plugin.html +++ b/wolflu05/inventree-dymo-plugin.html @@ -31,11 +31,11 @@ - + +{"@context":"https://schema.org","@type":"BlogPosting","author":{"@type":"Person","name":"wolflu05"},"dateModified":"2024-07-22T01:47:16+00:00","datePublished":"2024-07-22T01:47:16+00:00","description":"Dymo label printer driver plugin for InvenTree","headline":"Inventree Dymo Plugin","mainEntityOfPage":{"@type":"WebPage","@id":"/wolflu05/inventree-dymo-plugin"},"url":"/wolflu05/inventree-dymo-plugin"}