-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[change] Delivery address #12056
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
SchrodingersGat
wants to merge
24
commits into
inventree:master
Choose a base branch
from
SchrodingersGat:delivery-address
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+634
−48
Open
[change] Delivery address #12056
Changes from 13 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
ba32138
Allow 'company' field of Address model to be null
SchrodingersGat 2384a99
Add API filtering
SchrodingersGat bb39b19
Migrate address fields for order models
SchrodingersGat 2b917d0
Adjust UI forms
SchrodingersGat cb4113b
Refactor address table
SchrodingersGat 3b77c41
Admin table for internal addresses
SchrodingersGat 97caa20
New unit tests for order addresses
SchrodingersGat a92e2f7
Adjust admin interface
SchrodingersGat 28ef786
Documentation updates
SchrodingersGat 6f4312d
Tweak text
SchrodingersGat 8afae9d
Add fallback for primary address
SchrodingersGat 801d244
Update CHANGELOG
SchrodingersGat 22f94d3
lazy load address table
SchrodingersGat 10b93d2
Display address on PurchaseOrderDetail page
SchrodingersGat 296ee10
Bump API version
SchrodingersGat e1acec9
only staff users can manipulate internal addresses
SchrodingersGat 755a724
Fix CHANGELOG
SchrodingersGat 3b1ba84
Test for new API filter
SchrodingersGat 4a7ba6a
docs fix
SchrodingersGat 2730775
Adjust address fallback
SchrodingersGat 27767bb
Merge branch 'master' into delivery-address
SchrodingersGat 90fba96
Update migration
SchrodingersGat 95b8202
Merge commit 'd38af61ba2fb3c87143da57ddd92bc4845f85a7c' into delivery…
SchrodingersGat 2c8d511
Merge branch 'delivery-address' of github.com:SchrodingersGat/InvenTr…
SchrodingersGat File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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
27 changes: 27 additions & 0 deletions
27
src/backend/InvenTree/company/migrations/0080_alter_address_company.py
This file contains hidden or 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,27 @@ | ||
| # Generated by Django 5.2.14 on 2026-05-31 03:39 | ||
|
|
||
| import django.db.models.deletion | ||
| from django.db import migrations, models | ||
|
|
||
|
|
||
| class Migration(migrations.Migration): | ||
|
|
||
| dependencies = [ | ||
| ("company", "0079_auto_20260212_1054"), | ||
| ] | ||
|
|
||
| operations = [ | ||
| migrations.AlterField( | ||
| model_name="address", | ||
| name="company", | ||
| field=models.ForeignKey( | ||
| blank=True, | ||
| help_text="Select company", | ||
| null=True, | ||
| on_delete=django.db.models.deletion.CASCADE, | ||
| related_name="addresses", | ||
| to="company.company", | ||
| verbose_name="Company", | ||
| ), | ||
| ), | ||
| ] |
This file contains hidden or 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
67 changes: 67 additions & 0 deletions
67
src/backend/InvenTree/order/migrations/0120_alter_purchaseorder_address_and_more.py
This file contains hidden or 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,67 @@ | ||
| # Generated by Django 5.2.14 on 2026-05-31 04:14 | ||
|
|
||
| import django.db.models.deletion | ||
| from django.db import migrations, models | ||
|
|
||
|
|
||
| class Migration(migrations.Migration): | ||
|
|
||
| dependencies = [ | ||
| ("company", "0080_alter_address_company"), | ||
| ("order", "0119_transferorderlineitem_line_int"), | ||
| ] | ||
|
|
||
| operations = [ | ||
| migrations.AlterField( | ||
| model_name="purchaseorder", | ||
| name="address", | ||
| field=models.ForeignKey( | ||
| blank=True, | ||
| help_text="Address for this order", | ||
| null=True, | ||
| on_delete=django.db.models.deletion.SET_NULL, | ||
| related_name="+", | ||
| to="company.address", | ||
| verbose_name="Address", | ||
| ), | ||
| ), | ||
| migrations.AlterField( | ||
| model_name="returnorder", | ||
| name="address", | ||
| field=models.ForeignKey( | ||
| blank=True, | ||
| help_text="Address for this order", | ||
| null=True, | ||
| on_delete=django.db.models.deletion.SET_NULL, | ||
| related_name="+", | ||
| to="company.address", | ||
| verbose_name="Address", | ||
| ), | ||
| ), | ||
| migrations.AlterField( | ||
| model_name="salesorder", | ||
| name="address", | ||
| field=models.ForeignKey( | ||
| blank=True, | ||
| help_text="Address for this order", | ||
| null=True, | ||
| on_delete=django.db.models.deletion.SET_NULL, | ||
| related_name="+", | ||
| to="company.address", | ||
| verbose_name="Address", | ||
| ), | ||
| ), | ||
| migrations.AlterField( | ||
| model_name="transferorder", | ||
| name="address", | ||
| field=models.ForeignKey( | ||
| blank=True, | ||
| help_text="Address for this order", | ||
| null=True, | ||
| on_delete=django.db.models.deletion.SET_NULL, | ||
| related_name="+", | ||
| to="company.address", | ||
| verbose_name="Address", | ||
| ), | ||
| ), | ||
| ] |
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.