Saturday, February 15, 2025
5 changes · master
Resolved issues and error corrections
The Documents app now correctly opens the information and tags side panel when users choose that option from the Actions menu. This restores expected access to document details and collaboration information after selecting a document.
Original PR description
This commit restores the missing "documents-toggle-chatter" bus handler. Steps to reproduce: open Documents select a document (kanban or list, same) next to the selection box, open Actions menu click « info & tags » => nothing happens instead of opening the chatter (on the right) task-4318322
Miscellaneous changes
This commits brings the following changes to Documents. Mostly UI improvements: Keep image preview aspect ratio ============================== Currently, images are distorted because the aspect ratio is not respected. Images must retain their original proportions, with the addition of horizontal or vertical spacing if necessary, so that each so that each preview frame has the same dimensions. Also, we want the background of the image wrapper being the same as the body. Add toolt
Original PR description
This commits brings the following changes to Documents. Mostly UI improvements: Keep image preview aspect ratio ============================== Currently, images are distorted because the aspect ratio…
This commits brings the following changes to Documents. Mostly UI improvements: Keep image preview aspect ratio ============================== Currently, images are distorted because the aspect ratio is not respected. Images must retain their original proportions, with the addition of horizontal or vertical spacing if necessary, so that each so that each preview frame has the same dimensions. Also, we want the background of the image wrapper being the same as the body. Add tooltip to toggle chatter btn ================================= Add the following tooltip to the toggle chatter button: "Info & tags". Display existing email alias in help content =========================================== When an email alias has been configured for a given folder, and a search on this folder returns 0 record, the helper content displayed should include the email alias. In case of a search on 'Home' or 'Company': no message about alias, like for 'My Drive' or 'Shared with me'. Also, in 'documents_details_panel': Change labels Email Alias for Email, and Alias Tags for Tags. Enhance Home kanban view style ============================== Enhance the style of the file / folder group titles by turning their h3 element into a h4*, and removing the border-bottom class. * actually we keep the elements as they are, to avoid conflicting with potential customizations, and reduce the police size. Avoid scrollbar on topbar Chatter ================================ Limit the display, on large devices, of the horizontal scrollbar in the Chatter topbar by adding 20px to the Chatter container width, and showing the scrollbar only when the cursor is over that area. Scroll to selected record when info panel on =========================================== When toggling the information panel on, the space available to display documents/folders is significantly reduced. Sometimes, the selected document moves further down the screen and disappears from the view. This commit makes it so the view instantly scroll to the selected document when the info panel is toggled on. Improve email aliases display ============================ We remove the 'Email Aliases' menu item from the 'Configuration' menu and add an optional column in the list view to display the email aliases (widget=email). Also we hide the Alias Name and Domain columns. We keep the fields in the view as they are needed for the details panel. Hide member invite instead of disabling it ========================================= We currently disable the member invite component in the permission panel for users with insufficient rights (not editor) or for inactive documents/folders. But the restriction is not really obvious (visually) for users. We decided to hide the invitation to members to limit their confusion. Add database creator to highest security group ============================================== Generally the user who creates the database receives the highest permissions for each application, except for specific cases. This commits follows the general logic and links 'base.user_admin' to the 'System Administrator' group. Fix spacing in control panel ============================ This commit aims to limit the vertical spacing between the control panel and the menu section. The minimum height applied to breadcrumbs to prevent vertical shift of the view when the breadcrumbs changes dimension has been modified. This height is defined in 'rem' rather than 'vh' to avoid affecting the height of the control panel, particularly on high-resolution screens. Finally, this FW port fixes a bug introduced in https://github.com/odoo/enterprise/commit/0d904521645b7001233545bab1569f1b1869ef63 using an obsolete handler for toggling the chatter from the documents actions. task-4444059 Forward-Port-Of: odoo/enterprise#79400 Forward-Port-Of: odoo/enterprise#77554
… on company parts Forward-Port-Of: odoo/enterprise#79363
Original PR description
… on company parts Forward-Port-Of: odoo/enterprise#79363
Steps to reproduce: 1. Install `delivery_ups_rest` module 2. Create a user having only the group `sales_team.group_sale_salesman` 3. Log in with that user 4. Create a sale order and attempt to save it This will lead to an access error as creation of sale order will try to update `property_ups_carrier_account` in `res.partner`. Error: `You are not allowed to modify 'Contact' (res.partner) records.` Runbot Errors: + https://runbot.odoo.com/odoo/runbot.build.error/110813 + https://r
Original PR description
Steps to reproduce: 1. Install `delivery_ups_rest` module 2. Create a user having only the group `sales_team.group_sale_salesman` 3. Log in with that user 4. Create a sale order and attempt to save it This will lead to an access error as creation of sale order will try to update `property_ups_carrier_account` in `res.partner`. Error: `You are not allowed to modify 'Contact' (res.partner) records.` Runbot Errors: + https://runbot.odoo.com/odoo/runbot.build.error/110813 + https://runbot.odoo.com/odoo/runbot.build.error/110814 Forward-Port-Of: odoo/enterprise#77999
This PR fix an issue we encountered when trying to create a credit note from an electronic journal without any token created yet (for example because any electronic invoice was created yet). At that time, an error like the following was raised: `binascii.Error: Invalid base64-encoded string: number of data characters (5) cannot be 1 more than a multiple of 4` In previous versions we already had this fix: https://github.com/odoo/enterprise/commit/01ff42bd7c5e69cca9b63b1f027f566aa589a845. So w
Original PR description
This PR fix an issue we encountered when trying to create a credit note from an electronic journal without any token created yet (for example because any electronic invoice was created yet). At that time, an error like the following was raised: `binascii.Error: Invalid base64-encoded string: number of data characters (5) cannot be 1 more than a multiple of 4` In previous versions we already had this fix: https://github.com/odoo/enterprise/commit/01ff42bd7c5e69cca9b63b1f027f566aa589a845. So we follow the same approach. After this PR, the certificate should be generated if it did not exists, and the credit note should be created as expected. **Steps to reproduce the error:** - Install l10n_ar_edi - Check that there is no connection to AFIP on "AFIP/Connections" menu. - Select an invoice, and create a credit note. - Change the journal to "Electronic Invoice" on the CN wizard. - Click on "Reverse" button. The error should appear. Forward-Port-Of: odoo/enterprise#79037