Skip to content
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

[18.0][MIG] purchase_stock_picking_return_invoicing: Migration to version 18.0 #1904

Open
wants to merge 40 commits into
base: 18.0
Choose a base branch
from

Conversation

carlos-lopez-tecnativa
Copy link

TT54254
@Tecnativa @pedrobaeza @sergio-teruel @victoralmau could you please review this?

JordiBForgeFlow and others added 30 commits February 7, 2025 08:50
Remove purchase_open_qty dependency and cleanup module and tests.
…eturned field

This field is computed very slow with previous code. I have improved the speed through
several techniques like read_group and shared prefetching. It might be less readable,
but incredibly faster compared with the previous code.
Currently translated at 100,0% (7 of 7 strings)

Translation: account-invoicing-11.0/account-invoicing-11.0-purchase_stock_picking_return_invoicing
Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-11-0/account-invoicing-11-0-purchase_stock_picking_return_invoicing/de/
Updated by Update PO files to match POT (msgmerge) hook in Weblate.
…pute code

We don't need to add dependencies to the method `_get_invoiced`, as the qty_received
field is touched when returning a picking with the option `to_refund` marked

We need also to touch the computation method, as we were not using float_compare
method nor taking into account products with purchase invoicing policy as
"ordered quantities".
Currently translated at 100.0% (8 of 8 strings)

Translation: account-invoicing-12.0/account-invoicing-12.0-purchase_stock_picking_return_invoicing
Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-12-0/account-invoicing-12-0-purchase_stock_picking_return_invoicing/de/
Currently translated at 100.0% (9 of 9 strings)

Translation: account-invoicing-12.0/account-invoicing-12.0-purchase_stock_picking_return_invoicing
Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-12-0/account-invoicing-12-0-purchase_stock_picking_return_invoicing/pt_BR/
- Show "Auto-Complete" field in supplier refunds to allow refunding
multiple orders.
Currently translated at 100.0% (10 of 10 strings)

Translation: account-invoicing-12.0/account-invoicing-12.0-purchase_stock_picking_return_invoicing
Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-12-0/account-invoicing-12-0-purchase_stock_picking_return_invoicing/pt_BR/
Currently translated at 100.0% (10 of 10 strings)

Translation: account-invoicing-13.0/account-invoicing-13.0-purchase_stock_picking_return_invoicing
Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-13-0/account-invoicing-13-0-purchase_stock_picking_return_invoicing/es/
…counter

We should hide the view refunds button when there are no refunds, not
when there aren't invoices.

It hasn't been detected till now, because you usually have an invoice
before doing a refund, but in case you include this purchase order
in a vendor refund, you won't get any vendor bill.

TT32388
…s for refund auto-complet

Previous attrs was showing the auto-complete field on customer invoices
and refunds as well.

This commit also simplifies the expression, as the copied version from
upstream contains a non-sense domain (`purchase` state doesn't exist).

TT33192
Currently translated at 100.0% (10 of 10 strings)

Translation: account-invoicing-14.0/account-invoicing-14.0-purchase_stock_picking_return_invoicing
Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-14-0/account-invoicing-14-0-purchase_stock_picking_return_invoicing/pt_BR/
Currently translated at 30.0% (3 of 10 strings)

Translation: account-invoicing-15.0/account-invoicing-15.0-purchase_stock_picking_return_invoicing
Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-15-0/account-invoicing-15-0-purchase_stock_picking_return_invoicing/it/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: account-invoicing-16.0/account-invoicing-16.0-purchase_stock_picking_return_invoicing
Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-16-0/account-invoicing-16-0-purchase_stock_picking_return_invoicing/
adrianojprado and others added 10 commits February 7, 2025 09:16
Currently translated at 100.0% (11 of 11 strings)

Translation: account-invoicing-16.0/account-invoicing-16.0-purchase_stock_picking_return_invoicing
Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-16-0/account-invoicing-16-0-purchase_stock_picking_return_invoicing/pt_BR/
Currently translated at 100.0% (11 of 11 strings)

Translation: account-invoicing-16.0/account-invoicing-16.0-purchase_stock_picking_return_invoicing
Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-16-0/account-invoicing-16-0-purchase_stock_picking_return_invoicing/es/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: account-invoicing-16.0/account-invoicing-16.0-purchase_stock_picking_return_invoicing
Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-16-0/account-invoicing-16-0-purchase_stock_picking_return_invoicing/
…vement

- Include context keys for avoiding mail operations overhead.
Currently translated at 100.0% (11 of 11 strings)

Translation: account-invoicing-16.0/account-invoicing-16.0-purchase_stock_picking_return_invoicing
Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-16-0/account-invoicing-16-0-purchase_stock_picking_return_invoicing/pt_BR/
Currently translated at 100.0% (11 of 11 strings)

Translation: account-invoicing-16.0/account-invoicing-16.0-purchase_stock_picking_return_invoicing
Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-16-0/account-invoicing-16-0-purchase_stock_picking_return_invoicing/sv/
…it of Measure" to qty_refunded + qty_returned fields

TT50034
Currently translated at 100.0% (11 of 11 strings)

Translation: account-invoicing-16.0/account-invoicing-16.0-purchase_stock_picking_return_invoicing
Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-16-0/account-invoicing-16-0-purchase_stock_picking_return_invoicing/it/
@pedrobaeza
Copy link
Member

/ocabot migration purchase_stock_picking_return_invoicing

@OCA-git-bot OCA-git-bot added this to the 18.0 milestone Feb 7, 2025
@OCA-git-bot OCA-git-bot mentioned this pull request Feb 7, 2025
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.