Please help me. I have the same problem in creating customer credit note and here is the error message:
Traceback: TypeError: Cannot read property 'type' of undefined at compareRecords (http://***:8069/web/content/3897-95fdc96/web.assets_backend.js:1339:246) at stableCompare (http://***:8069/web/content/3143-8d30c6f/web.assets_common.js:4087:737) at Array.sort () at Object.stableSort (http://******:8069/web/content/3143-8d30c6f/web.assets_common.js:4087:694) at Class._sortList (http://***:8069/web/content/3897-95fdc96/web.assets_backend.js:1342:54) at http://***:8069/web/content/3897-95fdc96/web.assets_backend.js:1310:113 at async Promise.all (index 0) at async Promise.all (index 0) at async Promise.all (index 0)I don't have Field Called **Type** in credit note!
try in a fresh db and see whether you have error there, also cross check the custom codes /modules that you have added, also make sure that you are using the latest of odoo source code