InvenTree/InvenTree/company
Oliver d2ab6b012d
Refactor template helpers for displaying uploaded images (#3377)
* Refactor template helpers for displaying uploaded images

* Unit test for asset tag

* Unit tests for 'uploaded_image' tag

* Add simple tests for part_image and company_image functions

* Unit test for barcode constructor

* Unit tests for qrcode

* Refactor the 'company_logo.png' to be a new template tag

- Add unit tests

* Adds a new field to the report asset model

- Unique key which can be used to identify particular assets
- e.g. company logo

* Refactor logo image tags

- Make use of existing CUSTOM_LOGO setting
- Adds a "logo_image" template tag for reports

* Remove previous migration - strategy no longer required
2022-07-22 12:01:56 +10:00
..
fixtures fix endline 2022-05-20 13:35:07 +02:00
migrations Update requirements (#3228) 2022-06-28 22:12:00 +10:00
templates/company Virtual part fix (#3265) 2022-06-28 13:39:27 +10:00
__init__.py Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
admin.py Merge pull request from GHSA-7rq4-qcpw-74gq 2022-06-15 18:32:35 +10:00
api.py Annotate "in_stock" quantity to SupplierPart API (#3335) 2022-07-15 17:37:02 +10:00
apps.py Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
forms.py Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
models.py Refactor template helpers for displaying uploaded images (#3377) 2022-07-22 12:01:56 +10:00
serializers.py Bug fix for recent SupplierPart API annotation (#3336) 2022-07-15 20:30:26 +10:00
test_api.py SupplierPart availability (#3148) 2022-06-08 21:49:07 +10:00
test_migrations.py Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
test_views.py Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
tests.py Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
urls.py Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
views.py Add more checks to pre-commit (#3132) 2022-06-06 08:56:52 +10:00