-
-
Notifications
You must be signed in to change notification settings - Fork 763
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixup after moving printing logic to plugins
- Loading branch information
1 parent
4bb5e37
commit df99c31
Showing
3 changed files
with
93 additions
and
30 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
InvenTree/label/migrations/0013_add_multipage_to_buildlinelabel.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Generated by Django 3.2.20 on 2023-07-13 08:31 | ||
|
||
import django.core.validators | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('label', '0012_labeloutput'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='buildlinelabel', | ||
name='multipage', | ||
field=models.BooleanField(default=False, verbose_name='Print multiple labels to a single page'), | ||
), | ||
migrations.AddField( | ||
model_name='buildlinelabel', | ||
name='multipage_border', | ||
field=models.CharField(blank=True, choices=[('0.5mm solid #000', 'Solid'), ('0.5mm dotted #000', 'Dotted'), ('', 'No border')], default='0.5mm solid #000', max_length=250, verbose_name='Border style'), | ||
), | ||
migrations.AddField( | ||
model_name='buildlinelabel', | ||
name='page_height', | ||
field=models.FloatField(default=297, help_text="The number of label rows per page will be automatically calculated from the label's height", validators=[django.core.validators.MinValueValidator(2)], verbose_name='Height of one page [mm]'), | ||
), | ||
migrations.AddField( | ||
model_name='buildlinelabel', | ||
name='page_width', | ||
field=models.FloatField(default=210, help_text="The number of label columns per page will be automatically calculated from the label's width", validators=[django.core.validators.MinValueValidator(2)], verbose_name='Width of one page [mm]'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters