Daily updates from Odoo
Tuesday, February 19, 2019
8 changes · master
Resolved issues and error corrections
The website opportunity form now uses the same “Expected Closing” wording as the backend instead of calling the field “Deadline.” This reduces confusion for users moving between the website and internal CRM screens.
Original PR description
In the backend interface, lead/opportunity date_deadline is named "Expected Closing" or sometime "Expected Closing Date" but on the frontend it was named "Deadline" for opportunity. opw-1941273
This fixes an issue where users could only open the link editor by double-clicking directly on a link itself. Double-clicking text inside linked buttons, such as call-to-action snippets, now opens the link editor as expected while media items still open their own editor.
Original PR description
The link modal only opened on double-click directly on an anchor, meaning that double-clicking text in a span node within the button (as is the case in the call-to-action snippet for instance) wouldn't open the modal. Now it opens as long as we have an ancestor that is an anchor, unless the double-click occurs on a media (eg: a pictogram), in which case it should open the media's modal. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update improves the website editor so blog and website content editing responds faster and avoids editing areas that should stay protected. It also prevents duplicate edit sessions, cleans up editor controls, and makes save/edit menu behavior clearer for users.
Original PR description
Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fixes a visual issue in the product configurator where the grey image editing handle did not stay correctly positioned when users scrolled. The change helps keep image editing controls predictable and avoids confusion during product configuration.
Original PR description
The image handle (grey overlay over the image) was not properly repositioning on scroll in the product configurator (a side effect of not having a popover). -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fix prevents selected text inside links from being incorrectly wrapped as a new paragraph when deleted or replaced. It improves editing behavior in the website editor, especially for accordion titles where typing could appear to add an unwanted newline.
Original PR description
This notably fixes a bug with the accordion snippet (website) where selecting a title and typing seemed to add a newline. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The website editor now avoids adding hidden spacing characters around media in areas that are not meant to be directly edited, such as navigation bars. This prevents unwanted invisible content from appearing in protected layout areas while keeping media replacement behavior intact.
Original PR description
The web editor inserts zero-width characters (unicode 200B) around media when inserting them in the DOM so as to be able to edit before and after said media (contenteditable caveat). It should however not do so in fake not-editable nodes - such as the navbar - given that we do not expect to edit in them but only to replace the media. This ensures that behaviour. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The eLearning publish and unpublish controls are now hidden from users who do not have permission to manage publication for a course or slide. This prevents confusion and makes the website editing experience match the user's actual access rights.
Original PR description
Purpose ======= The "publish/unpublish" widget is always shown on slide.channel/slide.slide for a website_publisher user even if he's not allowed to manage the publishing of the channel (see slide.channel.can_publish field). This commit will hide the widget on both the slide.channel and the slide.slide frontend pages if the user doesn't have the right to publish/unpublish. A generic solution implemented directly in the publish mixin has been chosen to ease understanding and allow easy reuse in other applications. Commit linked to task ID 1902304 (main elearning task).
This update fixes issues that caused documentation builds to fail or show confusing warnings. It also improves how the documentation system loads matching source code, helping keep published developer documentation accurate and reliable.