To get basic overview of quality management in D365FO please read this post. I have documented high level steps to get fast track understanding of setups required and finally creating a quality order and record results.
Overview:

Overview:
- Set Up Quality Management Components
- Create Tests
- Create Item Sampling
- Create Test Groups
- Create Quality Associations
- Automatic Quality Order Generation
- Create a Manual Quality Order
- Work with Non Conformances
- Create and Process a Non Conformance Order
- Manage Quality Reports and Certificates
- Set up quality management on Purchase items
I will cover only few topics from above list in this post.
- Setup Tests
- Quantitative e.g. Temperature
- Qualitative e.g. Appearance
- Test Variables e.g. Appearance
- Outcomes e.g. Faded (fail), match (pass)
- Item Sampling
Item sampling is the quantity of sample items checked during a
test. The quantity specified is either a fixed amount or a percentage.
Item samplings are used with test groups
and quality associations.
Name
|
Description
|
Specification
(Fixed or %)
|
Value
|
5pcs
|
Five
pieces
|
Fixed
|
5
|
- Test group
Test
group is mentioned on Quality order (refer point 5).
- Acceptable Quality level (AQL): Acceptable percentage e.g. 100% (percentage of tests passed, explained later).
- Select Item sampling for this test group. e.g. 5Pcs defined in previous step.
- Test group consists of tests.
- Quantitative tests e.g. Temperature.
Define
values for this test. Define standard, min, max fields (alternatively enter
min, max tolerance percentages which will automatically update min, max
fields).
Standard
|
Min
|
Min Tolerance
|
Max
|
Max Tolerance
|
100
|
90
|
10
|
105
|
5
|
- Qualitative tests
e.g.
Appearance and since it is qualitative measurement values are not applicable.
Test name
|
Test variable
|
Default outcome
|
Appearance
|
Appearance
|
match
|

- Quality association
A quality association must be defined for each variation in a business process that requires the automatic generation of a quality order. A quality order can be automatically generated for different business processes including purchase orders, quarantine orders, sales orders, and production orders. The quality associations form is used to create quality associations to automatically generate and track quality orders. The form also supports the multisite feature. If a site is specified, the trigger for the automatic quality order is limited to that site only. A quality group represents common testing requirements for items. After you define the test requirements on the test groups page, you can define the rules for automatically generating quality orders. To simplify the process, users don't need to define rules for individual items. Instead, they can define rules for groups of items by using the quality associations page.
- Reference type, conditions, process (refer details)
- Assign test group
- Specify sampling
- Specify Acceptable quality level
- Manual Quality order
- Reference type (refer details) e.g. inventory
- Test group e.g. Temp
- Enter quantity
- Enter item details
- Test results:
- Temperature: e.g. 101 - Pass.
- Appearance: e.g. match - Pass.
- Quality order level validation of all tests
- Accept error: yes
- Since all tests passed status of quality order is pass
For details refer links below: