Wednesday, October 30, 2019
6 changes · master
Enhancements to existing features
Point of Sale now warns cashiers when a serial or lot number may block delivery, helping teams catch traceability issues earlier. If related delivery operations still cannot be confirmed, the system creates an exception activity on the POS session with links to the affected deliveries so responsible staff can follow up quickly.
Original PR description
**Task**: https://www.odoo.com/web#id=1906359&model=project.task&menu_id=4720 **Pad**: https://pad.odoo.com/p/r.4743e005b9bcb7d415399d5f1c055be6 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Point of Sale now warns users when a scanned or entered serial or lot number may no longer be available for delivery, helping prevent fulfillment mistakes. If related delivery operations cannot be confirmed, the system creates a follow-up exception activity on the PoS session so the responsible person can review and resolve them.
Original PR description
1. ONLINE
- Raise a warning when encoding the SN/LN to inform the user if this
SN/LN cannot be delivered
"This Serial number has already been delivered and is not available
anymore, are you sure you have encoded the right number ?"
(+ see if other mistakes are possible)
2. OFFLINE
- No change
3. GENERAL
- Log a next activity of type exception the PoS Session if some
delivery orders could not be confirmed + with link to the pickings
Responsible = PoS Session responsible
"Some operations could not be confirmed due to exceptions :
- WH/OUT/xxxx (clickable link)
- WH/OUT/yyyy (clickable link)
Task #1906359This update helps prevent browser-based tests from running too early during installation, which can cause false failures when required components are not yet loaded. It also cleans up older deprecated test helpers and fixes a related routing setup issue, making test results more reliable for teams maintaining Odoo.
Original PR description
When an HttpCase is used at install time, all modules are not yest installed. If the tour/test needs data from a not yet installed module, it will crash. While at it, remove deprecated at_install and post_install helpers and remove the deprecated phantom_js alias.
Several older internal helper functions are now marked as deprecated because modern Python tools already provide equivalent functionality. This reduces long-term maintenance work without changing normal user-facing behavior.
Original PR description
* walksymlinks is useless, os.walk got followlinks in 2.6 * tempdir is redundant with tempfile.TemporaryDirectory added in 3.2 * listdir(recursive=False) is just os.listdir. listdir(recursive=True) is untouched but only used in one place so seems fairly low-value versus just using os.walk there
Test tools now capture and display logged error objects more completely, not just plain text messages. This helps developers diagnose issues from newer interface components more reliably, reducing time spent investigating failed automated tests.
Original PR description
Before this commit, console.error were catched by browser_js in order to log them but only value was used on received object, which is correct only when the received object is text. With owl arrival, error object may be logged. This commit add the ability to manage logged object, fallbacking on a complete representation of object if object is not an error or description is empty.
This update adjusts automated browser-based tests so they run after installation, improving confidence that key workflows keep working correctly. It also removes older testing shortcuts, helping maintain a cleaner and more dependable test suite without changing user-facing features.
Original PR description
And while at it, remove deprecated usage of phantom_js alias, post_install and at_install helpers.