Daily updates from Odoo
Wednesday, August 21, 2024
13 changes
3 changes
Resolved issues and error corrections
This fixes a stock delivery form issue where an unnecessary serial/lot creation field appeared when both selecting existing lots and creating new lots were enabled. Users now see the appropriate field when choosing serial numbers, reducing confusion during delivery processing.
Original PR description
Steps to reproduce the bug:
- Go to the delivery operation type:
- set to True "use_existing_lots" and "use_create_lots"
- Create a storable product “P1” tracked by SN
- Create a delivery with one unit of P1
- Confirm it
- Click on the detailed operation to select the serial number
Problem:
The 'Lot_name' field is displayed, but since the operation type
has both `use_existing_lots` and `use_create_lots` set to True,
the 'Lot_name' field should not be displayed.
https://github.com/odoo/odoo/blob/4da8c6ebca024b31278a946aef55cc37f0210b33/addons/stock/models/stock_move.py#L606-L610
https://github.com/odoo/odoo/blob/4da8c6ebca024b31278a946aef55cc37f0210b33/addons/stock/views/stock_move_views.xml#L294-L297
|
|
|
|
|
FYI: https://github.com/odoo/odoo/commit/b771eadf8f6a70cbbb01481f362c89b41796d671#diff-55c6314416a6a400da6acd5018d161a55eeeb0e3008fec8828121e3dd12be0ebL550
opw-[4113887](https://www.odoo.com/web#id=4113887&view_type=form&model=project.task)Sales orders with down payments taken through Point of Sale can now be invoiced without errors. This ensures draft invoices are created correctly when settling quotations that include POS down payments.
Original PR description
Steps to reproduce: - Sale > Quotations > New - Set customer and product - POS > Quotation/Order > Apply down payment > Pay - Sale > Quotation > Create invoice > Create draft Error because the down payment line is missing an account_id, as a result of this commit 50ce3ce1d98958241667d1122273abccd59874b7 we would pass account_id = False in vals_list sometimes, causing the account_id not to be filled in or inferred later. opw-4064906 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The screen-sharing button is now hidden during mail calls on mobile devices because current mobile browsers do not support this feature. This avoids misleading users into trying to enable permissions for something that cannot work on their device.
Original PR description
This feature is not available in mobile OS at the time of this commit [1]: - Safari on iOS 17.5 - Chrome for Android 127 - Firefox for Android 127 Therefore the button should not be shown, otherwise it mistakenly gives the impression that user could make it work by enabling screen-sharing permission which is not possible on mobile OS. opw-4108833 [1]: https://caniuse.com/mdn-api_mediadevices_getdisplaymedia <img width="333" alt="Screenshot 2024-08-21 at 13 26 13" src="https://github.com/user-attachments/assets/ead3281d-2ef4-412e-8d4f-edab4a85b1e9">
2 changes
Resolved issues and error corrections
This fix ensures customer-facing text in the UrbanPiper point-of-sale order information popup can be translated properly. It helps businesses provide a more consistent localized experience for users working in different languages.
Original PR description
This commit fixes the props that pass strings to use `.translate` introduced in: [#174697](https://github.com/odoo/odoo/pull/174697) Community: https://github.com/odoo/odoo/pull/175568
Products created or updated from the Barcode Lookup service now use the first returned image as the main product image and show the remaining images in the online shop. This helps shoppers see more complete product visuals and reduces missing or incomplete product presentation.
Original PR description
This commit ensure the first image get from Barcode Lookup API is defined as the product image and all the next ones are displayed on the web shop.
8 changes
Resolved issues and error corrections
This update fixes a display issue in the Sign module where signature frames would be partially hidden when the signature box had an unusual aspect ratio (very wide or very short). The fix restores the proper container styling to ensure the signature frame and its hash remain fully visible regardless of the box dimensions.
Original PR description
Steps to reproduce: - Install Sign - Open Sign, add a document and put a signature box - Make the sign box have a weird aspect ratio (very short and super wide for example) Issues: When you sign with the frame, the frame will be partially hidden making the hash invisible. Solution: Put the container back just like in the 16.0, that way we don't have the weird CSS behavior that we had previously. opw-4042289
This update adds support for the FedEx International Connect Plus shipping service type, which was previously missing from the available delivery options. This enables businesses using Odoo's FedEx integration to offer this international shipping method to their customers, expanding their delivery service capabilities.
Original PR description
before this commit: Service type `FEDEX_INTERNATIONAL_CONNECT_PLUS` was not available the list 'fedex_service_type'. After this commit: Missing service type is added in the list. reference fedex doc: https://developer.fedex.com/api/en-us/guides/api-reference.html#servicetypes opw-4061797 Forward-Port-Of: odoo/enterprise#64250
This update removes the display of empty IS (insurance) lines in Swiss payroll processing. The change improves the clarity of payroll documents by eliminating unnecessary blank entries, making payroll statements cleaner and easier to read for employees and administrators.
Knowledge templates were not displaying correctly when exported or printed due to broken styling. This fix restores proper formatting and layout to ensure templates appear as intended when users export or print them. This improves the quality and usability of exported knowledge documents.
Original PR description
**Before this PR:** The style of some knowledge templates was broken when attempting to export or print, lacking proper formatting as per the templated structure. It seemed like there was an issue with the template's responsiveness. **After this PR:** Now, the issue has been addressed, and now the template is appropriately formatted and styled, ensuring correctness during export. **Task**-3664950
This update adjusts the Chart of Accounts report test in the Mexico localization module to account for a newly added account (173.01 Deferred expenses). The change ensures that the trial balance test continues to work correctly with the expanded chart of accounts structure.
Original PR description
Purpose of this PR: CoA Report trial balance test adjusted to accommodate for the new account, 173.01 Deferred expenses Community PR that adds new account: #176681 opw-4105993
Portal users who have access to a shared task but not the entire project can now properly view task documents. Previously, clicking the document button would redirect them back to the home menu because it tried to access project-level documents they weren't authorized to view. The fix ensures the button only appears when users have the appropriate access rights.
Original PR description
Steps to reproduce: - Create a project and a task - Attach a file to the task - Share the task with Joel Willis (portal user) - DO NOT share the project with him - Log in as Joel Willis (portal user) - Click Tasks > '1 Document' button next to project name This redirects back to portal home menu. This happens because the button leads to projects/id/documents, which Joel Willis has not been granted access to. The expectation would be a redirection to tasks/id/documents instead, as portal > projects handles this use case, and we curently do not have a way to share documents attached to a specific task through portal. opw-4009258
This fix resolves access errors that occurred when branch users tried to perform common tasks like creating products or accessing currency information. The solution adds a new permission rule allowing branch users to read their parent company's data, which is necessary for these operations to work correctly without granting excessive permissions.
Original PR description
This PR tries to solve 2 bugs related to branches: one from 17.4 and one from 17.0. Community PR: https://github.com/odoo/odoo/pull/176502 ### Steps to reproduce (in saas-17.4): - Add a branch to the…
This PR tries to solve 2 bugs related to branches: one from 17.4 and one from 17.0.
Community PR: https://github.com/odoo/odoo/pull/176502
### Steps to reproduce (in saas-17.4):
- Add a branch to the current company
- Create another user that only have the branch as "Allowed Companies"
- Give this user the right to create `product.template` for example by assigning him as administrator in Inventory or POS
- Switch to this user
- Go in Inventory > Products > Products
- Click on the "New" button
- An access error should pop up
### Steps to reproduce (in 17.0):
- Add a branch to the current company
- Create another user that only have the branch as "Allowed Companies"
- Switch to this user
- Go in Purchase app and create a new RFQ
- Click on the internal link of "Currency"
- An access error should pop up
### Cause:
- saas-17.4: When trying to find the tax values for the product, Odoo tries to read the values of `res.company.account_fiscal_country_id` and an error is raised.
- 17.0: To access the currency of the company, the user must have read access on the company.
### Solution:
Create a new rule that permits the branches to read the record of the parent company. Changing the rule "company rule employee" domain to `[('id','parent_of', company_ids)]` also works but it is giving a lot more rights to branches.
This change required changing performance tests.
opw-4088233This update fixes an issue where articles exported or printed from the Knowledge editor would have content cut off or display blank pages. The fix removes height constraints on article containers and disables scroll views during printing, allowing content to flow naturally across pages without clipping. Additional styling adjustments hide elements that shouldn't appear in printed documents.
Original PR description
Currently, when the user prints an article using the "export" button from the Knowledge editor, it happens that the page can be clipped. This commit will fix that issue by (1) unsetting the height constraints set on the containers of the article and by (2) de-activating the scroll views for the printing devices. The containers should now have a natural height and each block should follow the natural flow of the document which prevents clipping. This commit will also apply other minor CSS adjustments to hide elements that should not be printed. task-3664950