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] edi_voxel_account_invoice_oca: Migration to 17.0 #1019

Merged

Conversation

FernandoRomera
Copy link

No description provided.

sergio-teruel and others added 12 commits August 6, 2024 10:31
…a XML

Associate `queue job channels` with delayable methods via XML
and add migration script

fixup with edi_voxel_account_invoice_oca
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: edi-15.0/edi-15.0-edi_voxel_account_invoice_oca
Translate-URL: https://translation.odoo-community.org/projects/edi-15-0/edi-15-0-edi_voxel_account_invoice_oca/
- Include context keys for avoiding mail operations overhead.
Currently translated at 100.0% (32 of 32 strings)

Translation: edi-15.0/edi-15.0-edi_voxel_account_invoice_oca
Translate-URL: https://translation.odoo-community.org/projects/edi-15-0/edi-15-0-edi_voxel_account_invoice_oca/es/
Inheriting post instead of _post makes that certain roots followed to
post invoices didn't trigger the Voxel sending, which is incorrect.

Let's inherit the low level method then.

TT49512
@FernandoRomera FernandoRomera mentioned this pull request Aug 6, 2024
15 tasks
@FernandoRomera
Copy link
Author

@pedrobaeza
This is the first time this has happened to me, I have to downgrade this PR to Beta?.

Run manifestoo -d . check-dev-status --default-dev-status=Beta
edi_voxel_account_invoice_oca (Production/Stable) depends on stock_picking_invoice_link (Beta)
Error: Process completed with exit code 1.

@pedrobaeza
Copy link
Member

I think you should promote instead stock_picking_invoice_link to Mature. The problem is that this check was not done in previous versions, and the default one for all the modules is Beta.

@FernandoRomera
Copy link
Author

FernandoRomera commented Aug 6, 2024

@FernandoRomera
Copy link
Author

@pedrobaeza
Done, can you help me to merge it OCA/stock-logistics-workflow#1667?

@FernandoRomera FernandoRomera force-pushed the 17.0-mig-edi_voxel_account_invoice_oca branch 5 times, most recently from f607e23 to d5f6037 Compare August 6, 2024 12:06
@FernandoRomera
Copy link
Author

@pedrobaeza
Thank you for all your help.
I made a mistake in the previous PR #1020, pending merging.

@FernandoRomera FernandoRomera force-pushed the 17.0-mig-edi_voxel_account_invoice_oca branch 2 times, most recently from 16a931e to ec03bf3 Compare August 6, 2024 14:37
Copy link

@AntoniRomera AntoniRomera left a comment

Choose a reason for hiding this comment

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

LGTM

@FernandoRomera
Copy link
Author

@pedrobaeza
Done, can you review and merge?.

@@ -238,7 +251,7 @@ def _get_products_data(self):
"UP": "750.0",
"Total": "1500.0",
},
"taxes": [],
"taxes": [{"Type": False, "Rate": "15.0"}],
Copy link
Member

Choose a reason for hiding this comment

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

Why this change and the following one?

Copy link
Author

Choose a reason for hiding this comment

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

Simply compare the result with the expected result and match the values.
It seems to assign a default value to the tax_ids field in the invoice lines if it does not have one and therefore all values change. I can leave it like this or set tax_ids: False, as you prefer.

Copy link
Member

Choose a reason for hiding this comment

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

Yes, we should fix it and don't leave this to the "default behavior in some cases".

Copy link
Author

Choose a reason for hiding this comment

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

Done, set to 15% tax for lines without.

Copy link
Member

Choose a reason for hiding this comment

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

On contrary, what I say is to have it empty.

@pedrobaeza
Copy link
Member

/ocabot migration edi_voxel_account_invoice_oca

@OCA-git-bot OCA-git-bot added this to the 17.0 milestone Aug 6, 2024
@FernandoRomera FernandoRomera force-pushed the 17.0-mig-edi_voxel_account_invoice_oca branch 5 times, most recently from 8d6b14b to 9ebe399 Compare August 7, 2024 09:34
@@ -238,7 +251,7 @@ def _get_products_data(self):
"UP": "750.0",
"Total": "1500.0",
},
"taxes": [],
"taxes": [{"Type": False, "Rate": "15.0"}],
Copy link
Member

Choose a reason for hiding this comment

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

On contrary, what I say is to have it empty.

@FernandoRomera FernandoRomera force-pushed the 17.0-mig-edi_voxel_account_invoice_oca branch 3 times, most recently from 741b02a to 06ab8c2 Compare August 7, 2024 15:46
return []
return [
{
"SupplierClientID": "C01",
Copy link
Member

Choose a reason for hiding this comment

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

Why is this changing as well?

Copy link
Author

@FernandoRomera FernandoRomera Aug 7, 2024

Choose a reason for hiding this comment

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

Add another default value, field "partner_shipping_id": False,

@FernandoRomera FernandoRomera force-pushed the 17.0-mig-edi_voxel_account_invoice_oca branch from 06ab8c2 to ec4ab36 Compare August 7, 2024 16:07
@FernandoRomera FernandoRomera force-pushed the 17.0-mig-edi_voxel_account_invoice_oca branch from ec4ab36 to 136ddc3 Compare August 7, 2024 16:11
Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

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

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

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

@OCA-git-bot OCA-git-bot merged commit 996eb67 into OCA:17.0 Aug 8, 2024
6 of 7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 6da056c. Thanks a lot for contributing to OCA. ❤️

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