Thursday, October 11, 2018
1 change · master
Enhancements to existing features
Odoo now handles which user and settings are used when loading XML setup and demo data more consistently. This reduces manual cleanup around records created during installation or testing and removes obsolete import options that were no longer used.
Original PR description
Linked to task 1887993, related to the de-magic-ification of the "admin" user: currently data files are "executed" as the root user, re-linking relevant records to the admin user is a PITA (e.g. 97b82ff7c1e2987d9b21e0c0f85ba1aa48b89dbb). Just executing all demo files as the admin is not feasible (some things a regular user literally can't do), but the ability to execute entire data files as a specified user or with specific context keys set, and furthermore override that at the function/record level, is useful. This: * refactors some of convert_xml to prep for the rest * cleans up and fixes the handling of uid/context to use them in record and function tags and properly inherit them from data parents * cleans up some of the rng & conversion code (unused features, dead code, broken features, …)