The important role of the quality function in the management and optimization of business performance is undeniable, but today these traditional tools are no longer able to provide real-time information to managers. This weakness is mainly due to the uncertainty and complexity of the environment, it is becoming increasingly important to digitize quality processes. Digital transformation, also known as industry 4.0 or the fourth industrial revolution is disrupting business and bringing radical changes not only to systems and processes, but also to management methods, business models and the workforce. The effects of this transformation will have to be mastered through a global vision, a digital strategy, a redefinition of professions, as well as integration and optimal use of digital tools. This transformation of manufacturing is a real opportunity for the development of the manufacturing sector and economic growth in Morocco. Our study consists in showing the impact of quality 4.0 on the performance of the production function through the benefits of costs. The first part of the article describes the interest of Quality 4.0 and shows the previous research concerning Industry 4.0. The second presents our methodology. The third part is the subject of an application of our new methodology to a practical case in the automotive sector. We end with a conclusion and research perspectives.