[19.0][MIG] l10n_es_vat_book: Migration to 19.0 - #4884
Conversation
facturas "normales" como rectificativas.
* Translations * Terms homogeneization * README by fragments * Test reports
When a large amount of move lines are processed (hundreds of thousands) it can lead to a MemoryError when we try to calculate the VAT book
Steps to reproduce the problem: - Create an invoice with 0 amount, but any line. - Put in that line a tax "Recargo equivalencia X%". - Create a VAT book in the interval of the invoice. - Compute the book - We get the error File "/home/odoo/build/OCA/l10n-spain/l10n_es_vat_book/models/l10n_es_vat_book.py", line 265, in upsert_book_line_tax lambda l: not l['special_tax_group'], implied_lines)) StopIteration This is due to a reused dictionary in the loop, so we perform a copy of the original dictionary each time. Fixes OCA#1221
… wkhtmltopdf pueda imprimirlos correctamente
…with subsequent taxes base checked
It was not possible until the merge of odoo/odoo#55491
…p line includes an account In previous changes, if there was a mapping including it, it started to fail. Now it should work specifically, so, If you have some mapping, the exclusion is applied, otherwise, all lines are added.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: l10n-spain-18.0/l10n-spain-18.0-l10n_es_vat_book Translate-URL: https://translation.odoo-community.org/projects/l10n-spain-18-0/l10n-spain-18-0-l10n_es_vat_book/
…it is a harmless tax and does not need to be reflected.
Currently translated at 98.2% (164 of 167 strings) Translation: l10n-spain-18.0/l10n-spain-18.0-l10n_es_vat_book Translate-URL: https://translation.odoo-community.org/projects/l10n-spain-18-0/l10n-spain-18-0-l10n_es_vat_book/es/
|
/ocabot migration l10n_es_vat_book |
|
¿@AlvaroRamirez10 puedes revisar los fallos que están dando pre-commit y los tests? |
|
Hola @AlvaroRamirez10, ¿por favor puedes revisar los errores de los tests y el pre-commit para poder empezar a revisarlo? Muchas gracias |
|
En los OCA days se podría plantear esa refactorización de la que hablaba para tener una fuente común de información fiscal a nivel de |
Sería perfecto, sí. |
|
Al final se debatió esto en los OCA Days? |
|
No hubo ningún contribuidor allí que se dedicara a esto en concreto. |
|
Hola @AlvaroRamirez10 , ¿Vas a continuar con este PR? Muchas gracias! 😄 |
|
Se sigue en este PR, ya que no ha habido seguimiento #5049 |
Migration of l10n_es_vat_book module from 18.0 to 19.0