InvenTree/InvenTree
Lavissa bf707766b6
[Feature] Company Addresses (#4732)
* Add initial model structure

* Initial Address model defined

* Add migration and unit tests

* Initial migration for Address model generated

* Unit tests for Address model added

* Move address field to new model

* Added migration to move address field to Address model

* Implement address feature to backend

* API endpoints for list and detail implemented

* Serializer class for Address implemented

* Final migration to delete old address field from company added

* Tests for API and migrations added

* Amend migration file names

* Fix migration names in test

* Add address property to company model

* Iinital view and JS code

* Fix indents

* Fix different things

* Pre-emptive change before merge

* Post-merge fixes

* dotdotdot...

* ...

* iDots

* .

* .

* .

* Add form functionality and model checks

* Forms require a confirmation slider to be checked to submit
  if address is selected as primary

* Backend resets primary address before saving if new address
  is designated as primary

* Fix pre-save logic to enforce primary uniqueness

* Fix typos

* Sort out migrations

* Forgot one

* Add admin entry and small fixes

* Fix migration file name and dependency

* Update InvenTree/company/models.py

Co-authored-by: Matthias Mair <code@mjmair.com>

* Update InvenTree/company/models.py

Co-authored-by: Matthias Mair <code@mjmair.com>

* Correct final issues

* .

---------

Co-authored-by: Matthias Mair <code@mjmair.com>
2023-06-17 21:55:25 +10:00
..
InvenTree Homepage Improvements (#5057) 2023-06-17 08:21:25 +10:00
build Add ProjectCode support to build orders (#4808) 2023-06-14 11:23:35 +10:00
common Homepage Improvements (#5057) 2023-06-17 08:21:25 +10:00
company [Feature] Company Addresses (#4732) 2023-06-17 21:55:25 +10:00
generic Refactor states/status (#4857) 2023-06-09 10:27:26 +10:00
label Build line labels (#5034) 2023-06-14 13:07:18 +10:00
locale New Crowdin updates (#4976) 2023-06-10 19:56:44 +10:00
order [Feature] Company Addresses (#4732) 2023-06-17 21:55:25 +10:00
part Homepage Improvements (#5057) 2023-06-17 08:21:25 +10:00
plugin custom panel fix (#5049) 2023-06-15 18:59:50 +10:00
plugins Update documentation URLs (#4325) 2023-02-10 10:39:57 +11:00
report Parameter by name (#5055) 2023-06-16 12:14:17 +10:00
script Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
stock Stock installed items (#5030) 2023-06-15 16:42:52 +10:00
templates [Feature] Company Addresses (#4732) 2023-06-17 21:55:25 +10:00
users [Feature] Company Addresses (#4732) 2023-06-17 21:55:25 +10:00
config_template.yaml [FR] Add Feature flags (#4982) 2023-06-12 13:13:53 +10:00
gunicorn.conf.py Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
manage.py Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00