Monday, March 18, 2019
3 changes · master
Enhancements to existing features
The Point of Sale app now prevents fiscal year or period lock dates from being set when open POS sessions would be affected. It also stops new POS sessions from being created before a lock date, helping businesses avoid sessions that cannot be closed or posted to accounting.
Original PR description
Without that, it is impossible to close these sessions, as the lock date forbids posting accounting entries for them.
Images and other attachment previews in chat now expand to the full available message width. This makes shared pictures, PDFs, and videos easier to view directly in conversations without extra opening or zooming.
Original PR description
Task Link: https://www.odoo.com/web#id=1941601&action=333&active_id=131&model=project.task&view_type=form&menu_id=4720 Pad Link: https://pad.odoo.com/p/r.393faf958ee09a5d0062ca416709cfa1 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Resolved issues and error corrections
This fix corrects promise handling issues introduced during the move to jQuery 3 in the Website app. It helps restore reliable website editor and theme behavior, reducing unexpected failures for users managing website content.
Original PR description
Since the switch to jQuery 3, Odoo uses native promises in its JS. Some mistakes were made in the website app during conversion from old jQuery deferred to native promises. - `this` -> `self` when wrapping in a promise - `.always(fct)` -> `.then(fct).guardedCatch(fct)` - a function returned sometimes a jQuery deferred, sometimes a native promise. This made the caller fail when using `always` or fail when using `guardedCatch`