Commit Graph

51 Commits

Author SHA1 Message Date
Oliver 9927b597c3 PEP fixes 2021-07-02 11:26:48 +10:00
Oliver 51ebe30754 Merge remote-tracking branch 'inventree/master' into drf-api-forms
# Conflicts:
#	InvenTree/company/forms.py
2021-07-02 11:26:09 +10:00
Oliver 870542e4c1 Refactor forms for ManufacturerPartParameter 2021-07-01 16:05:23 +10:00
Matthias fcdefc4f83 removing default_currency in fields 2021-07-01 00:40:26 +02:00
Matthias 3a57093b4e replace MoneyFields with inherited classes 2021-07-01 00:13:38 +02:00
Oliver c425f36a35 Remove dead class 2021-06-30 00:24:27 +10:00
Oliver 33ec91acc7 Add "default" from serializer field (if present)
- Overrides model default
- Set choices for currency serializer field
- Adds some unit testing
2021-06-29 23:14:39 +10:00
Oliver 8b3a497554 Remove unused Form 2021-06-29 23:05:37 +10:00
Oliver e0e560352e Add forms / views for ManufacturerPartParameter CRUD 2021-06-21 16:14:58 +10:00
Matthias 0bac7ebf3e styling 2021-06-05 17:18:46 +02:00
Matthias d87592aedb use the default currency in forms 2021-06-05 13:22:11 +02:00
Matthias f2b0717d10 removes all lines consisting only of spaces
this really bothers me for some reason - nothing technical
2021-05-06 12:11:38 +02:00
eeintech f39928368e Merge branch 'master' of github.com:inventree/InvenTree into manufacturer_part 2021-04-07 10:33:55 -04:00
eeintech 76fe535ef9 Improved delete form to show supplier parts deletion 2021-04-06 09:32:59 -04:00
Matthias 446bc06c1b switched translation methode to lazy 2021-04-03 04:01:40 +02:00
Matthias 2de6fcbfa4 added missing translation fields #753 2021-04-03 03:59:09 +02:00
eeintech 9e56bf90c5 More web testing, looks ready 2021-03-31 13:53:55 -04:00
eeintech 0b1f22c7fd Almost there, needs some interface testing and tweaking 2021-03-30 18:08:33 -04:00
eeintech a4d098194b New SupplierPart manufacturer_part field
New migration file with database update to manufacturer parts
Removed SourceItem model
2021-03-30 13:14:30 -04:00
eeintech 50adb2ac61 SourceItem only for SupplierPart, added logic to templates 2021-03-29 15:39:25 -04:00
eeintech e897864396 Added ManufacturerPart model, form and views 2021-03-23 17:01:54 -04:00
Oliver Walters 9c91ba4692 Add image download functionality for company 2021-03-18 09:20:24 +11:00
Oliver Walters 47cbf3071d Add option to add a single-quantity price-break when creating a new SupplierPart object
- Add unit testing!
2020-11-12 21:36:32 +11:00
Oliver Walters fd79f1ea0e Fixes for 'single pricing' for SupplierPart 2020-11-12 19:46:19 +11:00
Oliver Walters 51d2d85c26 When creating a new price break for a supplier part, default to using the currency code specified for the supplier company 2020-11-12 11:14:50 +11:00
Oliver Walters 1532be9c1e Add 'currency' option for company
- e.g. an external supplier might have a default currency
- Adds a form input which only allows selection of allowed currency codes
- Add unit testing for currency validation
2020-11-12 11:02:10 +11:00
Oliver Walters ebac06ebee Add 'single_pricing' form to the EditSupplierPartForm
- Idea here is to automatically create a unit-pricing price-break when a new SupplierPart is created
2020-11-11 13:55:25 +11:00
Oliver Walters 4dff18e4a6 Remove common_currency model entirely
- A lot of views / pages / etc needed to be updated too
- Now uses django-money fields entirely
- Create a manual rate exchange backend (needs more work!)
2020-11-11 00:21:06 +11:00
Oliver Walters 4cb97b1340 Add some more form candy 2020-05-16 11:55:10 +10:00
Oliver Walters 9c7813992d Remove old 'manufacturer_name' field 2020-04-13 20:26:24 +10:00
Oliver Walters 8b366fc4a0 Rename "manufacturer" to "manufacturer_name"
(cherry picked from commit e9e734acce)
2020-04-13 20:19:59 +10:00
Oliver Walters 906ed7f64d Add "is_manufacturer" field to company model
(cherry picked from commit fd45db9e22)
2020-04-13 20:19:03 +10:00
Oliver Walters a306ad0bc3 Alter "URL" to "link" for Company models 2020-04-06 11:36:25 +10:00
Oliver Walters 6731bc1b06 Implement auto-rounding decimal field
Ref: https://stackoverflow.com/questions/37958130/automatically-round-djangos-decimalfield-according-to-the-max-digits-and-decima
2020-03-18 22:22:40 +11:00
Oliver Walters 51fab36074 Display / editing for Company notes field
- Also includes some translation updates
2020-02-01 23:45:28 +11:00
Oliver Walters 91453094aa Remove lead-time field 2019-09-12 22:37:09 +10:00
Oliver Walters af8a96e080 Add option to edit currency 2019-09-03 09:55:15 +10:00
Oliver Walters 6f73c379c2 Remove 'minimum' order from SupplierPart
- This can be handled using the 'PriceBreak' set
2019-05-21 13:51:43 +10:00
Oliver Walters 0cfb243eb3 Move SupplierPart and SupplierPriceBreak to the 'Company' app
- https://docs.djangoproject.com/en/2.2/ref/models/options/#django.db.models.Options.db_table
- https://stackoverflow.com/questions/3519143/django-how-to-specify-a-database-for-a-model
- And others, presumably
2019-05-18 23:08:34 +10:00
Oliver Walters a03027ec9b Add makefile option for quick backup 2019-05-07 07:46:29 +10:00
Oliver Walters a499fd325e Docstring for Stock app 2019-04-27 22:49:16 +10:00
Oliver Walters c3f0570926 Add docstring to Company app 2019-04-27 20:43:27 +10:00
Oliver Walters ac3a4e3de4 PEP fixes for /company 2019-04-14 09:30:45 +10:00
Oliver 17e6147c47 Click on company image to edit it 2018-05-03 23:57:00 +10:00
Oliver bee760d184 Deleted extraneous form code 2018-04-30 00:59:36 +10:00
Oliver bc597d7c21 Style fixes 2018-04-28 01:16:47 +10:00
Oliver 36cf946a78 Modal for company create
- Ajax modals now return the URL of the item they are operating on
- passing {follow: true} to the modal caller will go to that URL on success
- footable'd company list
2018-04-27 21:58:22 +10:00
Oliver 08ed128bea PEP style fixes 2018-04-23 21:18:35 +10:00
Oliver ee2f262e19 Company index / detail / edit pages working 2018-04-22 22:21:50 +10:00
Oliver 4bedf0ed4c Finally got migrations working together 2018-04-22 21:54:12 +10:00