Part duplicate bug fix (#4370)

* Make 'copy_category_parameters' part of actual serializer

* Parameter copying is now handled by the API serializer

* Make field not required

* linting fixes

* pre commit fix

* Fix unit tests

* Further fix for unit test

* Unit tests for category parameter duplication
This commit is contained in:
Oliver authored and GitHub committed 2023-02-20 18:48:55 +11:00
1 parent 95ecd0cd32
commit 782ae133b7
6 files changed
+92 -84

No files matched your search

@@ -209,9 +209,6 @@ function partFields(options={}) {
delete fields['default_supplier'];
fields.copy_category_parameters = {
type: 'boolean',
label: '{% trans "Copy Category Parameters" %}',
help_text: '{% trans "Copy parameter templates from selected part category" %}',
value: global_settings.PART_CATEGORY_PARAMETERS,
group: 'create',
};