Commit Graph

6200 Commits

Author SHA1 Message Date
Oliver
8861ffad81 PEP fixes 2021-08-15 12:06:31 +10:00
Oliver
cef09acd54 Partial reversion of some stuff 2021-08-15 12:05:53 +10:00
Oliver
faab1f2464 Provide global_settings and user_settings as context objects
- Adds a new context middleware
- Refactor the way that settings are provided to the javascript layer
2021-08-15 11:57:05 +10:00
Oliver
28bccea57b Cleanup 2021-08-14 13:43:38 +10:00
Oliver
32fafc76d7 css tweaks 2021-08-14 13:42:50 +10:00
Oliver
f753e11f10 Improve error notification for modal forms
- Scroll to error
- Add red border and background to the form
2021-08-14 13:41:19 +10:00
Oliver
f72eb4266a remove old debug message 2021-08-14 12:31:22 +10:00
Oliver
2b13512145 Check that supplier and manufacturer parts are created 2021-08-14 10:43:45 +10:00
Oliver
6fa4e33062 Unit testing for new API form features 2021-08-14 10:39:05 +10:00
Oliver
26c07961cb Bug fix for API 2021-08-14 10:23:57 +10:00
Oliver
6eb4709658 Adds initial stock quantity 2021-08-14 10:23:42 +10:00
Matthias
00d4efb920
PEP fix 2021-08-13 17:54:17 +02:00
Matthias
f0325fe30f
view BOMpricing range
Closes #1889
2021-08-13 17:50:41 +02:00
Matthias
a2ffd06abf
calculate purchase price for part 2021-08-13 17:49:58 +02:00
Oliver Walters
2be9399d2c CSS style fixes 2021-08-14 01:15:43 +10:00
Oliver Walters
ad844c4393 Simplify rendering of checkboxes in forms
- Display "inline" so they take up much less vertical space
2021-08-14 01:05:06 +10:00
Oliver Walters
ba1ba67f87 Only add company data if part is purchaseable 2021-08-14 00:46:30 +10:00
Oliver Walters
78340a71a9 Adds support for creation of ManufacturerPart and SupplierPart via the Part creation API 2021-08-14 00:38:08 +10:00
Oliver Walters
6218f1c7e6 Add form elements for initializing a part with supplier data 2021-08-14 00:26:22 +10:00
Oliver Walters
5cbb67b91c Add options to show / hide form groups 2021-08-14 00:20:34 +10:00
Oliver Walters
cb11df4dba Improve error checking for initial stock creation when creating a new part
- Use @transaction.atomic
- Raise proper field errors
2021-08-14 00:09:08 +10:00
Oliver Walters
1396c349c8 Refactor form field definition copying 2021-08-14 00:08:26 +10:00
Oliver Walters
5b42ab7332 Add "groups" to API forms 2021-08-13 21:48:48 +10:00
Oliver
cd4a797e71
Merge pull request #1954 from eeintech/upload_po_file
Improved creation of purchase order line items from file upload
2021-08-13 09:31:22 +10:00
eeintech
9205d6d67c Improved creation of purchase order line items from file upload 2021-08-12 14:27:00 -04:00
Oliver
26ddd36666 PEP fixes 2021-08-12 23:47:42 +10:00
Oliver
537573d0e3 Add extra unit testing for BOM export 2021-08-12 23:40:07 +10:00
Oliver
fcff8d4825
Merge pull request #1944 from SchrodingersGat/report-unit-tests
Unit testing for report framework
2021-08-12 16:05:49 +10:00
Oliver
f59ed27cf9 Remove reliance on hard-coded PK values 2021-08-12 15:14:13 +10:00
Oliver
e36b1e6c70 PEP fixes 2021-08-12 14:51:18 +10:00
Oliver
6748f37405 Unit tests for report printing 2021-08-12 14:43:04 +10:00
Oliver
96ec8c4eb6 Copy report templates across as part of test setUp 2021-08-12 13:40:08 +10:00
Oliver
032057c93a PEP fixes 2021-08-12 13:18:10 +10:00
eeintech
91e314ddb5 Only connect ManufacturerPart if a. it exists b. SupplierPart is not yet connected 2021-08-11 17:08:46 -04:00
eeintech
a2590f1a3b Merged master 2021-08-11 16:16:20 -04:00
Oliver
44818ca0c5 Some simple API unit tests 2021-08-11 17:40:00 +10:00
Oliver
3cdcdd0535 Create report templates when testing 2021-08-11 11:07:30 +10:00
Oliver
2cf7592198
Merge pull request #1941 from SchrodingersGat/lazy-loading
Adds one-shot function when a panel is displayed
2021-08-11 00:29:06 +10:00
Oliver
46fa60953d Refactor part page 2021-08-11 00:12:55 +10:00
Oliver
68282c93f4 Start API calls before the panel has finished loading 2021-08-11 00:12:48 +10:00
Oliver
a1922bff81 Adds one-shot function when a panel is displayed 2021-08-11 00:09:01 +10:00
Oliver
b94104f7ab
Merge pull request #1940 from SchrodingersGat/stock-table-fix
Bug fix for stock table
2021-08-10 23:52:55 +10:00
Oliver
bfc489a35b
Merge pull request #1939 from SchrodingersGat/transfer-stock-bug
Bug fix for stock transfer form
2021-08-10 23:39:31 +10:00
Oliver
535c36b75e Bug fix for stock table
- Use the provided table name, rather than hard-coded value

(cherry picked from commit b3a52dd6c65a83f2f330c0275b443e9acbcbdf73)
2021-08-10 23:31:20 +10:00
Oliver
4c8eaf3942 Bug fix for stock transfer form 2021-08-10 23:23:02 +10:00
Oliver
799f17ef50 Bypass custom token auth for /api/ endpoint 2021-08-10 23:09:54 +10:00
Oliver
7ef5c0058e Fix bug when using token based auth 2021-08-10 22:50:49 +10:00
markdedeugeQBE
641233b140 use django timezone'd datetime to squash timezone warnings from worker heartbeat 2021-08-10 14:37:05 +10:00
Oliver
c32b6b2272 Hide the "part" field when editing manufacturer part and supplier part objects 2021-08-10 11:01:17 +10:00
Oliver
e03afce335 Add "instance_filters" for SupplierPart model
- Restrict the "manufacturer_part" query based on the current part
2021-08-10 11:00:27 +10:00
Oliver
7117c33379 Raise validation error if the manufacturer part does not point to the correct part 2021-08-10 10:58:11 +10:00
Oliver
6620d34f25
Merge pull request #1913 from eeintech/bom_upload
BOM upload templates fixes
2021-08-10 09:11:25 +10:00
eeintech
69d1c3cea2 Improved task import to support global 2021-08-09 11:55:56 -04:00
eeintech
372d252333 Merge branch 'master' of github.com:inventree/InvenTree into exchange_rate_task 2021-08-09 10:47:35 -04:00
Erkut Alakuş
c564896355
Localization of item.quantity removed
Localization of quantity for different cultures(turkish in my case) using comma(,) instead of dot(.) leads syntax error in javascript code and prevents stock item history to load.
2021-08-09 12:11:53 +03:00
Oliver
bb8b9dfcec Bump API version to from 8 -> 9
(Also moved the API version info from version.py to
2021-08-09 14:54:07 +10:00
Oliver
90d753001f
Merge pull request #1925 from matmair/fix-price-breaksfilters
Fix for missing part filter
2021-08-09 14:49:49 +10:00
Matthias
ad656b7ca7
extending API to supply price wihtout formatting 2021-08-09 01:49:55 +02:00
Oliver
9565b3004d
L10 (#1924)
* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* updated translation base

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* updated translation base

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* updated translation base

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* updated translation base

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* updated translation base

* updated translation base

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* updated translation base

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* updated translation base

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* updated translation base

* updated translation base

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* updated translation base

* updated translation base

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* updated translation base

* updated translation base

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* updated translation base

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* updated translation base

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2021-08-09 09:44:32 +10:00
Matthias
c58ed5a07e
Fixes #1915 2021-08-09 01:43:50 +02:00
Oliver
681f285aa3
Merge pull request #1923 from SchrodingersGat/secondary-modals
Secondary modals
2021-08-08 01:13:42 +10:00
Oliver Walters
e3efd12184 secondary for purcahse order 2021-08-08 00:50:59 +10:00
Oliver Walters
52ba2201b2 secondary for creating sales order customers 2021-08-08 00:49:16 +10:00
Oliver Walters
4e6c8c45ee secondary modal for part form 2021-08-08 00:44:46 +10:00
Oliver Walters
1dc5682767 bug fix 2021-08-08 00:44:30 +10:00
Oliver
0ad206d9eb
Merge pull request #1922 from SchrodingersGat/secondary-modals
Secondary modals
2021-08-08 00:06:45 +10:00
Oliver Walters
720b332f71 Adds secondary to manufacturerpart form 2021-08-07 23:49:50 +10:00
Oliver Walters
94c1ed882f Add secondary field options for "Create Supplier Part" form
- Supplier
- Manufacturer Part
2021-08-07 23:42:42 +10:00
Oliver Walters
b960ce839a remove debug statement 2021-08-07 23:31:21 +10:00
Oliver Walters
fd917b2e41 Simple refactoring 2021-08-07 23:30:53 +10:00
Oliver Walters
25af8559ba Back-fill newly created model data into the parent modal form 2021-08-07 23:27:31 +10:00
Oliver Walters
759a3724b5 Add function to extract all data from a displayed form 2021-08-07 23:09:56 +10:00
Oliver
0d80ae9f93
Merge pull request #1921 from SchrodingersGat/label-print-options
Add inline option for reports, too
2021-08-07 22:49:55 +10:00
Oliver Walters
e583d1a159 Actually use the variable, I suppose 2021-08-07 22:30:51 +10:00
Oliver Walters
f405e4b701 Add inline option for reports, too 2021-08-07 22:28:48 +10:00
Oliver
5448165ef3
Merge pull request #1920 from SchrodingersGat/label-print-options
Label print options
2021-08-07 22:27:34 +10:00
Oliver Walters
ca9536f687 Implement option to display labels "inline" in the browser 2021-08-07 22:09:15 +10:00
Oliver Walters
d77b99c0ca Add user settings for report and labels 2021-08-07 21:57:41 +10:00
Oliver Walters
174ac64235 Allow downloaded files to be inline or attachments 2021-08-07 21:45:18 +10:00
Oliver Walters
24638a7229 Add migration file 2021-08-07 21:41:45 +10:00
Oliver Walters
6d42cfab75 Add model validator to prevent illegal names for PartParameterTemplate
(cherry picked from commit 93805a87e0)
2021-08-07 21:23:52 +10:00
Oliver Walters
2e5d5bcc84 Fix part settings page 2021-08-07 20:50:32 +10:00
eeintech
6280ed1ade Moved enableNavbar to part_base template 2021-08-06 11:15:16 -04:00
eeintech
1eb8a9f310 BOM upload templates fixes 2021-08-05 17:39:08 -04:00
eeintech
1bf49a1458 Re-added ability to link manufacturer part to supplier part via API 2021-08-05 14:06:31 -04:00
Matthias Mair
96378cb556
Merge branch 'inventree:master' into trans-improv 2021-08-05 08:17:21 +02:00
Oliver
00ffab472c Fix for build report template 2021-08-05 10:44:47 +10:00
Matthias
d6c6cb96ba
make keyvalue non-existing key tolerant 2021-08-05 01:24:49 +02:00
Matthias
58f2dce18d
show translation level in ui 2021-08-05 01:23:11 +02:00
Matthias
d6672372a5
script to save the locale stats 2021-08-05 00:44:02 +02:00
Oliver
be67832821
Merge pull request #1908 from eeintech/fix_typo
Fixed typo for build responsible column header
2021-08-05 08:14:51 +10:00
eeintech
c0ccb8f588 Fixed typo for build responsible column header 2021-08-04 17:11:35 -04:00
Matthias
3ecb1e6577
cleaner structure 2021-08-04 19:44:01 +02:00
eeintech
fbdf11e6e7 Merged run_task code into offload_task function
Added option to force synchronous operation
Use that option for update_exchange_rates
2021-08-04 11:23:52 -04:00
Oliver Walters
c7712d4235 even more unit tests 2021-08-05 01:13:48 +10:00
Oliver Walters
655e5692e9 More unit test fixes 2021-08-05 00:58:07 +10:00
Oliver Walters
6acff2a26e Fixes unit test 2021-08-05 00:40:02 +10:00
Oliver Walters
aaf394ca7a PEP fixes 2021-08-05 00:26:21 +10:00
Oliver Walters
dd78464a74 remove unused function 2021-08-05 00:25:47 +10:00
Oliver Walters
aa4ed9feb0 Refactor MakeVariant form
- Now is essentially identical to the DuplicatePart form
- Uses the API form structure
2021-08-05 00:24:38 +10:00