Friday, September 1, 2023
1 change · master
Code cleanup and technical improvements
The shop floor manufacturing app now uses one shared data model instead of several separate ones, reducing repeated data loading and making screens more reliable. The update also removes an unused tablet view and fixes demo data and small workflow issues, such as undoing a completed stock move.
Original PR description
Currently the shop floor app is working with 4 differents relationalModel. It's an issue for the following points: - It requires 4 rpc to load the server's data. Now with the unity read, other views only require one for all differents model - Inside the app we have to do the match between x2m objects. We created multiple function to get the sub records base on a lot of array browsing. With the new related key in the params, it could be done automaticaly. - There are reload everywhere in the code and sometimes, they forgot to load a related object (e.g. following a public method) This PR create a single model and clean all the reload. Using only a single one on mrp.display (and propagate it by the env) It also aim to have all the information on the model in a single function. (relation, domain, order) Minor fix on demo data, the operation are activated while the workorders settings has been removed by default