Skip to content

Syncing from upstream odoo/odoo (staging.17.0) #34189

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 7 commits into from
Jul 9, 2025

Conversation

bt-admin
Copy link
Collaborator

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

bt_gitbot

daiduongnguyen-odoo and others added 7 commits July 8, 2025 05:54
The current validation uses stdnum.vn.mst.validate(), which only accepts
10- or 13-digit MST with legacy checksum logic. It does not support the
12-digit CCCD format now required for individuals from 01/07/2025
(per Circular 86/2024/TT-BTC).

* This patch introduces a separate format-level validator for:
  • 10-digit enterprise VAT
  • 13-digit branch VAT (10-digit + suffix)
  • 12-digit CCCD (from 01/07/2025)

* References:
  • Circular 86/2024/TT-BTC (tax registration & CCCD admin):
https://thuvienphapluat.vn/van-ban/Thue-Phi-Le-Phi/Thong-tu-86-2024-TT-BTC-dang-ky-thue-565309.aspx
  • CCCD replacing tax ID from 01 Jul 2025:
https://thuvienphapluat.vn/ma-so-thue/bai-viet/cach-doi-ma-so-thue-sang-ma-so-dinh-danh-ca-nhan-tu-0172025-200926.html
  • VAT ID structure 10/13 digits (Law, TT 105/2020):
https://thuvienphapluat.vn/phap-luat/cau-truc-ma-so-thue-la-10-chu-so-hay-13-chu-so-phan-loai-cau-truc-ma-so-thue-nhu-the-nao-theo-quy-d-796465-178397.html

closes #217456

X-original-commit: 623cbc8
Signed-off-by: Nicolas Viseur (vin) <[email protected]>
This commit will add the amount residual in text in the note of the xml we sent
to nilvera. The text need to be in uppercase.
If the invoice is in another currency than Turkish Lira, we have to add two
notes one for the amount in turkish lira and one in the other currency
Also when the integer part or fractional part is zero it should be zero in
turkish.

task-4518269

closes #195938

Signed-off-by: Florian Gilbert (flg) <[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 #217721

X-original-commit: 39b2bb3
Signed-off-by: Levi Siuzdak <[email protected]>
…thout packaging

Steps to reproduce:

- In the settings enable "Product Packagings"
- Create a product P with a kit bom: 1 x COMP
- Create and confirm a delivery for 1 unit of P
- Reserve 1 unit of COMP (put the quantity of the move to 1)
- Go to Inventory > Reporting > Moves history
- Add the field "Reserved Packaging Quantity" in the view (with studio)
- remove the "done" filter
> Traceback: ZeroDivisionError in _compute_product_packaging_qty

Cause of the issue:

The computation of the `product_packaging_qty` can not succeed for a
kit move line without `packaging_id` on its move since:
`move_line.move_id.product_packaging_id.qty` will be 0:
https://github.com/odoo/odoo/blob/b87c896969cc576a799ac63f03501be1e87b0e84/addons/mrp/models/stock_move.py#L107
By contrast since if the packaging is set, there should not be an issue
since the field is required and since there is a positive constraint:
https://github.com/odoo/odoo/blob/b87c896969cc576a799ac63f03501be1e87b0e84/addons/product/models/product_packaging.py#L21-L27

opw-4781180

closes #217877

Signed-off-by: Quentin Wolfs (quwo) <[email protected]>
…rch panel

Before this commit:
- Long dashboard names were truncated in the search panel.
- There was no way for the user to see the full name.

After this commit:
- A tooltip has been added to display the full dashboard name on hover.

closes #217881

Task: 4903713
X-original-commit: 1d9ef67
Signed-off-by: Pierre Rousseau (pro) <[email protected]>
This commit prevent direct write to history, also,
removes it from copy_data as it would fail anyway when trying to
write the history

closes #217167

Signed-off-by: David Monjoie (dmo) <[email protected]>
uniquifier: fUqi3M+pfvZF0NGL
For-Commit-Id: ca7de6b
@bt-admin bt-admin merged commit c5df5e0 into brain-tec:staging.17.0 Jul 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants