Daily updates from Odoo
Monday, November 4, 2019
5 changes · master
Resolved issues and error corrections
The stock app now allows module-related inventory records to be removed during uninstall, even when inventory adjustments are no longer in draft. This helps reinstall related apps with demo data and ensures databases can cleanly remove stock-related tables and records.
Original PR description
Business cases should not prevent the unlink of module-related records during an uninstall. This commit allows the reinstallation of sale_stock with demo data and also allows the proper removal of tables and records if a db has any non-draft inventory adjustments. Backportable (?)
Down payment lines are now placed at the end of sales orders instead of being mixed into long order lists. This makes them easier for sales teams and customers to find and review.
Original PR description
Task : https://www.odoo.com/web?#id=2025709&action=327&model=project.task&view_type=form&menu_id=4720 Pad : https://pad.odoo.com/p/r.7a2fcaa42e03926acc2ccd2491044a40 I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
A test for the Website Slides app was adjusted so it runs after installation rather than during setup. This prevents installation-time test issues and helps keep automated checks aligned with the expected process.
Original PR description
Since odoo/odoo@8d5da6e4be05 HttpCase should not be started at install.
This fix restores access to internal system utility functions that some parts of Odoo expected to be available automatically. It prevents failures during specific operations that could otherwise break only when those features are used.
Original PR description
Turns out almost no user of odoo.tools.osutil actually imports it. Following odoo/odoo#39573 (355e3609732bdc1ef0563edadb8634a322d7d5af) removing what were apparently the only two users of the submodule properly importing it, other calls to osutil features now blow up, which went unnoticed as these calls are lazy (so don't prevent starting the server) and only happen for very specific operations. The smallest change there is to simply re-enable the old behaviour by explicitly importing osutil from tools.__init__.
The WinBooks import tool now uses a supported temporary file method instead of a deprecated one. This keeps the import process compatible with recent Odoo platform changes and reduces the risk of future maintenance issues.
Original PR description
The function `odoo.tools.osutil.tempdir` has been deprecated with odoo/odoo@355e360973, the standard module `tempfile` can be used as a drop-in replacement.