Commit Graph

74 Commits

Author SHA1 Message Date
Oliver Walters
0c91691ed2 Refactor SupplierPartEdit and SupplierPartDelete forms 2021-07-18 22:46:23 +10:00
Oliver Walters
56fa6c512b Refactor SupplierPartCreate form 2021-07-18 22:21:11 +10:00
Oliver
c1c0a262b2 Refactor Company detail view 2021-07-13 21:53:48 +10:00
Oliver
7c80767414 PEP fixes 2021-07-12 22:06:03 +10:00
Oliver
c3b0593aba Refactor ManufacturerPartCreate form 2021-07-12 21:32:09 +10:00
Oliver
298d870b44 Refactor CompanyDelete view 2021-07-02 21:55:59 +10:00
Oliver
206d7bd96a Refactor edit and delete forms for ManufacturerPart 2021-07-01 16:28:46 +10:00
Oliver
870542e4c1 Refactor forms for ManufacturerPartParameter 2021-07-01 16:05:23 +10:00
Oliver
a92fc7cf2c PEP fixes 2021-06-30 14:15:18 +10:00
Oliver
2b394174bc Refactor update and delete forms for SupplierPriceBreak 2021-06-30 14:14:31 +10:00
Oliver
09fff5b644 Refactor PriceBreakCreate form
- Handle non_field_errors
2021-06-30 14:07:15 +10:00
Oliver
c425f36a35 Remove dead class 2021-06-30 00:24:27 +10:00
Oliver
293b5d4c07 Allow file and image fields
- Use FormData class
- Replace existing Company image upload form
2021-06-30 00:13:53 +10:00
Oliver
8b3a497554 Remove unused Form 2021-06-29 23:05:37 +10:00
Oliver
170ed37d03 Delete CompanyCreate AJAX view 2021-06-29 21:20:53 +10:00
Oliver
c25967eff6 Replace CompanyCreate and CompanyEdit forms with AJAX form
- Adds the ability to specify an "icon" for each field
2021-06-29 21:17:48 +10:00
Oliver
cf0feffe26 Allow override of values from calling function 2021-06-29 20:44:44 +10:00
Adam Walsh
d1a2ed9af1
Fix supplier part view/edit without a manufacturer
Fixes the following issues when a supplier part was created with an MPN but no manufacturer was assigned:
- Viewing a supplier part stock item
- Editing a supplier part stock item
2021-06-21 11:20:43 -04:00
Oliver
e0e560352e Add forms / views for ManufacturerPartParameter CRUD 2021-06-21 16:14:58 +10:00
Matthias Mair
e59f467c79
Merge branch 'master' into spaces! 2021-05-08 12:27:19 +02:00
Matthias Mair
39d4129157
chery picked all fixed trans str from #1438 (#1554) 2021-05-06 20:29:58 +10: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
ccd35fc4b4 Fixed supplier part list bug and hide manufacturer fields in supplier part edit form 2021-04-07 11:50:11 -04:00
eeintech
f39928368e Merge branch 'master' of github.com:inventree/InvenTree into manufacturer_part 2021-04-07 10:33:55 -04:00
Matthias
efd14fca64 made translation lazy 2021-04-04 22:47:01 +02:00
eeintech
8c8b25a0d2 Validating API for SupplierPart, not able to spin-off ManufacturerPart from serialized data 2021-03-31 18:04:28 -04: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
fd4f33d45b More templates updates 2021-03-24 12:39:26 -04:00
eeintech
4abd8587ab Updated company templates 2021-03-24 12:08:45 -04:00
eeintech
afd2dacfc7 Can now create, view list of parts and view detail page 2021-03-24 11:44:51 -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
cd01bb0ad7 Refactor HTML view permission
- Introspect database model from View
- Automatically get the permission from the View class
2021-03-02 21:32:32 +11:00
Oliver Walters
607cc90ce0 Add extra context to SupplierPartCreate form
(cherry picked from commit 5f8f0232a9)
2020-11-27 11:18:23 +11:00
eeintech
11745ebd6c Removed one too many indent 2020-11-19 15:32:42 -05:00
eeintech
4768c9cbb3 Fixed validation of SupplierPart edit form by forcing the value of single_pricing field 2020-11-19 15:31:39 -05: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
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
eeintech
39eddc7203 Added user permissions on company views 2020-10-20 14:11:40 -05:00
Oliver Walters
ff7570aea4 VIews / forms / etc 2020-09-18 21:49:56 +10:00
Oliver Walters
598e15af46 Fix annotations for Company serializers 2020-09-05 23:03:38 +10:00
Oliver Walters
2c9b112562 PEP fixes 2020-04-23 21:48:39 +10:00
Oliver Walters
435c13cf7c Separate concept of "OrderStatus" into "SalesOrderStatus" and "PurchaseOrderStatus" 2020-04-23 20:38:09 +10:00
Oliver Walters
47530b7d2a Improvements for "SupplierPartCreate" form 2020-04-13 22:21:20 +10:00
Oliver Walters
307dd25f87 Fixes for unit testing
(cherry picked from commit eb3b5308ab)
2020-04-13 20:21:08 +10:00
Oliver Walters
f88d03db88 Fix "supplier parts" tab for Company display
Also PEP fixes

(cherry picked from commit a50ecb24c1)
2020-04-13 20:20:51 +10:00
Oliver Walters
d05ba9ee1a Customize "CompanyCreate" form based on calling url
(cherry picked from commit 8adc83b650)
2020-04-13 20:19:48 +10:00