I want to add analytic to link project to RFQ but i get the following error : odoo 16
OwlError: An error occured in the owl lifecycle (see this Error's "cause" property) at handleError (http://localhost:8069/web/assets/1342-8b03be1/web.assets_common.min.js:1212:101) at owl.App.handleError (http://localhost:8069/web/assets/1342-8b03be1/web.assets_common.min.js:2039:29) at RootFiber.complete (http://localhost:8069/web/assets/1342-8b03be1/web.assets_common.min.js:1450:37) at Scheduler.processFiber (http://localhost:8069/web/assets/1342-8b03be1/web.assets_common.min.js:2016:43) at http://localhost:8069/web/assets/1342-8b03be1/web.assets_common.min.js:2012:109 at Set.forEach () at http://localhost:8069/web/assets/1342-8b03be1/web.assets_common.min.js:2012:87 Caused by: NotFoundError: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node. at VMulti.patch (http://localhost:8069/web/assets/1342-8b03be1/web.assets_common.min.js:1266:116) at B.patch (http://localhost:8069/web/assets/1342-8b03be1/web.assets_common.min.js:1350:178) at VMulti.patch (http://localhost:8069/web/assets/1342-8b03be1/web.assets_common.min.js:1265:224) at VList.patch (http://localhost:8069/web/assets/1342-8b03be1/web.assets_common.min.js:1371:88) at B.patch (http://localhost:8069/web/assets/1342-8b03be1/web.assets_common.min.js:1350:178) at VToggler.patch (http://localhost:8069/web/assets/1342-8b03be1/web.assets_common.min.js:1197:78) at VList.patch (http://localhost:8069/web/assets/1342-8b03be1/web.assets_common.min.js:1371:88) at VMulti.patch (http://localhost:8069/web/assets/1342-8b03be1/web.assets_common.min.js:1265:224) at VMulti.patch (http://localhost:8069/web/assets/1342-8b03be1/web.assets_common.min.js:1265:224) at VToggler.patch (http://localhost:8069/web/assets/1342-8b03be1/web.assets_common.min.js:1197:78)
Analytic has been changed in Odoo 16 and you can inherit analytic.mixin in RFQ to be able to use the new analytic widget. and you can use Analytic Distribution Model
Check the below video for the