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

[17.0][MIG] account_invoice_fiscal_position_update: Migration to 17.0 #1935

Conversation

juancarlosonate-tecnativa
Copy link

@juancarlosonate-tecnativa juancarlosonate-tecnativa commented Mar 4, 2025

alexis-via and others added 30 commits March 4, 2025 09:27
Currently translated at 100,0% (4 of 4 strings)

Translation: account-invoicing-11.0/account-invoicing-11.0-account_invoice_fiscal_position_update
Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-11-0/account-invoicing-11-0-account_invoice_fiscal_position_update/nl_NL/
Currently translated at 100,0% (4 of 4 strings)

Translation: account-invoicing-11.0/account-invoicing-11.0-account_invoice_fiscal_position_update
Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-11-0/account-invoicing-11-0-account_invoice_fiscal_position_update/de/
Currently translated at 100.0% (4 of 4 strings)

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

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

Translation: account-invoicing-13.0/account-invoicing-13.0-account_invoice_fiscal_position_update
Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-13-0/account-invoicing-13-0-account_invoice_fiscal_position_update/nl/
Currently translated at 100.0% (4 of 4 strings)

Translation: account-invoicing-13.0/account-invoicing-13.0-account_invoice_fiscal_position_update
Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-13-0/account-invoicing-13-0-account_invoice_fiscal_position_update/es/
… taxes when this was changed.

Otherwise the taxes are not changed when change the fpos.
Don't create new variant, just use the default one.
Currently translated at 100.0% (6 of 6 strings)

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

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

Translation: account-invoicing-16.0/account-invoicing-16.0-account_invoice_fiscal_position_update
Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-16-0/account-invoicing-16-0-account_invoice_fiscal_position_update/pt_BR/
…fiscal position with a line without product and description
StefanRijnhart and others added 7 commits March 4, 2025 09:27
Fixes OCA#1896

This change causes the subtotal amount to remain the same when a fiscal position
change triggers a tax update from tax included in price to tax excluded from
price.

Tests are added for conversion between tax excluded to tax included as well, but
in this case the behaviour is not 'fixed'. The standard behaviour of Odoo in
case of tax excl. to tax incl. is to adjust the subtotal amount. The same
behaviour is present in the function that this module provides. It might not
be what users expect, but it seems that Odoo does not support to preserve the
subtotal amount in this case.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: account-invoicing-18.0/account-invoicing-18.0-account_invoice_fiscal_position_update
Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-18-0/account-invoicing-18-0-account_invoice_fiscal_position_update/
Currently translated at 100.0% (6 of 6 strings)

Translation: account-invoicing-18.0/account-invoicing-18.0-account_invoice_fiscal_position_update
Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-18-0/account-invoicing-18-0-account_invoice_fiscal_position_update/it/
Copy link
Contributor

@CarlosRoca13 CarlosRoca13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review 👍

@pedrobaeza
Copy link
Member

/ocabot migration account_invoice_fiscal_position_update
/ocabot merge nobump

@OCA-git-bot OCA-git-bot added this to the 17.0 milestone Mar 6, 2025
@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 17.0-ocabot-merge-pr-1935-by-pedrobaeza-bump-nobump, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Mar 6, 2025
Signed-off-by pedrobaeza
@OCA-git-bot OCA-git-bot mentioned this pull request Mar 6, 2025
47 tasks
@OCA-git-bot
Copy link
Contributor

@pedrobaeza your merge command was aborted due to failed check(s), which you can inspect on this commit of 17.0-ocabot-merge-pr-1935-by-pedrobaeza-bump-nobump.

After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red.

@pedrobaeza
Copy link
Member

pedrobaeza commented Mar 6, 2025

Hey, wait, have you considered the new button for doing that?:

imagen

I think this module is no longer needed. Do you agree, @StefanRijnhart ?

@juancarlosonate-tecnativa
Copy link
Author

juancarlosonate-tecnativa commented Mar 6, 2025

@pedrobaeza i dont know how i overlooked this... i think this module is obsolete odoo/odoo@c54851b

@pedrobaeza
Copy link
Member

Then you should mark this module as merged in OpenUpgrade in this file:

https://github.com/OCA/OpenUpgrade/blob/17.0/openupgrade_scripts/apriori.py#L17

I close this PR and comment in the migration issue.

@pedrobaeza pedrobaeza closed this Mar 7, 2025
@pedrobaeza pedrobaeza deleted the 17.0-mig-account_invoice_fiscal_position_update branch March 7, 2025 07:55
@juancarlosonate-tecnativa
Copy link
Author

Then you should mark this module as merged in OpenUpgrade in this file:

https://github.com/OCA/OpenUpgrade/blob/17.0/openupgrade_scripts/apriori.py#L17

I close this PR and comment in the migration issue.

@pedrobaeza Should i simply open a PR towards that file? what are the conventions or documentation for this procedure? i can't find an example

@pedrobaeza
Copy link
Member

Example: OCA/OpenUpgrade#4752

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.