Skip to content

Syncing from upstream odoo/odoo (tmp.16.0) #34176

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jul 8, 2025
Merged

Conversation

bt-admin
Copy link
Collaborator

@bt-admin bt-admin commented Jul 8, 2025

bt_gitbot

C3POdoo and others added 8 commits July 5, 2025 05:02
Keep the original session id that initialised the http request.

task-4922056
closes #217341

Signed-off-by: Ruben Gomes (rugo) <[email protected]>
Currently, a user needs to be time off, expense and timesheet approver
of an employee for those links to be removed by the departure wizard.
If not all the approver fields are the same user, that link will not be
removed.

Steps to reproduce:
- Set Marc Demo as only Time Off approver on an employee.
- Archive Marc Demo's employee (This does not remove time off approver
from the previous employee)

To rectify this issue, we correctly group the `user_domain` so that
their contents are properly OR'd.

closes #213513

Signed-off-by: Bertrand Dossogne (bedo) <[email protected]>
Versions
--------
- 16.0+

Steps
-----
1. Have a fiscal position with a country-based tax mapping;
2. go to `/shop` as a public user,
3. create a new account;
4. add a product to your cart;
5. go to user settings & add an address that matches the fiscal position;
6. go to checkout & pay for the cart.

Issue
-----
The fiscal position's taxes aren't applied to the order.

Cause
-----
The `_compute_fiscal_position_id` method is triggered when changing the
`partner_id` or `partner_shipping_id` of an order. It does not trigger
when modifying the address of the order's current partner.

There is logic in place to recompute fiscal position & taxes when an
address gets entered via checkout, but not via any other route.

Solution
--------
Adding address fields to the `api.depends` of the compute method could
introduce the unintended behavior of changing taxes & fiscal position of
confirmed sale orders. Instead, we can check for fields relevant to
fiscal position in `write`, then search for unconfirmed website orders,
and recompute their fiscal position & taxes if need be.

opw-4844132

closes #214588

Signed-off-by: Levi Siuzdak <[email protected]>
Steps to Reproduce:

- Set the Odoo backend language to Spanish.
- Enter edit mode.
- Drag and drop the "Text-Image" snippet.
- Click on the image within the dropped snippet.
Bug: The "Layout" menu in the sidebar overflows, causing a horizontal
scrollbar.

Issue:
The width of the `we-button` elements within the `we-button-group`
was not handled correctly. In the Spanish translation, the text in the
"Layout" options was too long, resulting in overflow and a horizontal
scrollbar in the sidebar.

Solution:
This commit addresses the layout issue specifically for DOM structure
involving `we-button-group` and `we-select`. Without affecting other
styles, it applies a grid template to equally divide the available space
among the buttons, preventing overflow.

task-4378522

closes #189856

Signed-off-by: Benjamin Vray (bvr) <[email protected]>
Issue:
Printing the BOM crashes when one of the byproduct quantity is set to 0

Steps to reproduce:
- Open the manufactoring app
- Go to settings and activate by-product settings
- Go to Products > Bills of Materials
- Open a BOM
- Put the quantity of one the by-product by 0
- Click on overview
- Click on the print button

Cause:
In the `mrp_report_bom_structure.xml` template, there is this division:
- `<td class="text-end" t-esc="byproduct['bom_cost'] / byproduct['quantity']" t-options='{"widget": "monetary", "display_currency": currency}'/>`

without checking if `byproduct['quantity']` is different than 0.

Solution:
Added the check on `byproduct['quantity']` in the foreach

Additional notes:
Since it makes no real sense to have a non-zero BoM cost associated with a byproduct whose quantity is zero, the cost is set to 0 when the quantity is 0.

opw-4853525

closes #213936

Signed-off-by: Tiffany Chang (tic) <[email protected]>
@bt-admin bt-admin merged commit 8670025 into brain-tec:tmp.16.0 Jul 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants