[MIG] account_tax_balance: Migration to 17.0
This commit is contained in:
@@ -7,7 +7,7 @@ Tax Balance
|
||||
!! This file is generated by oca-gen-addon-readme !!
|
||||
!! changes will be overwritten. !!
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! source digest: sha256:64232d765ed74980509787f10bef8fbcd09566844f7194b4dc53880a8e0a01e6
|
||||
!! source digest: sha256:4d5facdf6681a965b6e08ba419158ba2aeef8620a80b74a8b05225e74298acbd
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
|
||||
.. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
{
|
||||
"name": "Tax Balance",
|
||||
"summary": "Compute tax balances based on date range",
|
||||
"version": "16.0.1.1.1",
|
||||
"version": "17.0.1.0.0",
|
||||
"development_status": "Mature",
|
||||
"category": "Invoices & Payments",
|
||||
"website": "https://github.com/OCA/account-financial-reporting",
|
||||
|
||||
@@ -6,7 +6,7 @@ import logging
|
||||
from psycopg2 import sql
|
||||
|
||||
|
||||
def pre_init_hook(cr):
|
||||
def pre_init_hook(env):
|
||||
"""Precreate financial_type and fill with appropriate values to prevent
|
||||
a MemoryError when the ORM attempts to call its compute method on a large
|
||||
amount of preexisting moves. Note that the order of the mapping is
|
||||
@@ -14,7 +14,7 @@ def pre_init_hook(cr):
|
||||
and the move type is set in the order of precedence."""
|
||||
logger = logging.getLogger(__name__)
|
||||
logger.info("Add account_move.financial_type column if it does not yet exist")
|
||||
cr.execute(
|
||||
env.cr.execute(
|
||||
"ALTER TABLE account_move ADD COLUMN IF NOT EXISTS financial_type VARCHAR"
|
||||
)
|
||||
MAPPING = [
|
||||
@@ -43,5 +43,5 @@ def pre_init_hook(cr):
|
||||
query += sql.SQL("WHERE am.financial_type IS NULL")
|
||||
if extra_where:
|
||||
query += sql.SQL(extra_where)
|
||||
cr.execute(query, tuple(args))
|
||||
logger.info("%s move set to type %s", financial_type, cr.rowcount)
|
||||
env.cr.execute(query, tuple(args))
|
||||
logger.info("%s move set to type %s", financial_type, env.cr.rowcount)
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 16.0\n"
|
||||
"Project-Id-Version: Odoo Server 17.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
@@ -127,11 +127,6 @@ msgstr ""
|
||||
msgid "Journal Item"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_tax_balance
|
||||
#: model:ir.model.fields,field_description:account_tax_balance.field_wizard_open_tax_balances____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_tax_balance
|
||||
#: model:ir.model.fields,field_description:account_tax_balance.field_wizard_open_tax_balances__write_uid
|
||||
msgid "Last Updated by"
|
||||
|
||||
@@ -136,11 +136,6 @@ msgstr ""
|
||||
msgid "Journal Item"
|
||||
msgstr "Apunt comptable"
|
||||
|
||||
#. module: account_tax_balance
|
||||
#: model:ir.model.fields,field_description:account_tax_balance.field_wizard_open_tax_balances____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr "Última modificació a "
|
||||
|
||||
#. module: account_tax_balance
|
||||
#: model:ir.model.fields,field_description:account_tax_balance.field_wizard_open_tax_balances__write_uid
|
||||
msgid "Last Updated by"
|
||||
@@ -305,6 +300,9 @@ msgstr ""
|
||||
msgid "or"
|
||||
msgstr "o"
|
||||
|
||||
#~ msgid "Last Modified on"
|
||||
#~ msgstr "Última modificació a "
|
||||
|
||||
#~ msgid "Journal Entries"
|
||||
#~ msgstr "Apunts comptables"
|
||||
|
||||
|
||||
@@ -135,11 +135,6 @@ msgstr ""
|
||||
msgid "Journal Item"
|
||||
msgstr "Journalposten"
|
||||
|
||||
#. module: account_tax_balance
|
||||
#: model:ir.model.fields,field_description:account_tax_balance.field_wizard_open_tax_balances____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr "Zuletzt modifiziert am"
|
||||
|
||||
#. module: account_tax_balance
|
||||
#: model:ir.model.fields,field_description:account_tax_balance.field_wizard_open_tax_balances__write_uid
|
||||
msgid "Last Updated by"
|
||||
@@ -305,6 +300,9 @@ msgstr "wizard.open.tax.balances"
|
||||
msgid "or"
|
||||
msgstr "oder"
|
||||
|
||||
#~ msgid "Last Modified on"
|
||||
#~ msgstr "Zuletzt modifiziert am"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "Journal Entries"
|
||||
#~ msgstr "Journalposten"
|
||||
|
||||
@@ -133,11 +133,6 @@ msgstr "Asiento contable"
|
||||
msgid "Journal Item"
|
||||
msgstr "Diario"
|
||||
|
||||
#. module: account_tax_balance
|
||||
#: model:ir.model.fields,field_description:account_tax_balance.field_wizard_open_tax_balances____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr "Última modificación en"
|
||||
|
||||
#. module: account_tax_balance
|
||||
#: model:ir.model.fields,field_description:account_tax_balance.field_wizard_open_tax_balances__write_uid
|
||||
msgid "Last Updated by"
|
||||
@@ -302,6 +297,9 @@ msgstr "Asistente apertura balance de impuestos"
|
||||
msgid "or"
|
||||
msgstr "o"
|
||||
|
||||
#~ msgid "Last Modified on"
|
||||
#~ msgstr "Última modificación en"
|
||||
|
||||
#~ msgid "Journal Entries"
|
||||
#~ msgstr "Entradas diario"
|
||||
|
||||
|
||||
@@ -130,11 +130,6 @@ msgstr "Apunte Contable"
|
||||
msgid "Journal Item"
|
||||
msgstr "Asiento Contable"
|
||||
|
||||
#. module: account_tax_balance
|
||||
#: model:ir.model.fields,field_description:account_tax_balance.field_wizard_open_tax_balances____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr "Última modificación en"
|
||||
|
||||
#. module: account_tax_balance
|
||||
#: model:ir.model.fields,field_description:account_tax_balance.field_wizard_open_tax_balances__write_uid
|
||||
msgid "Last Updated by"
|
||||
@@ -299,6 +294,9 @@ msgstr "Asistente apertura balance de impuestos"
|
||||
msgid "or"
|
||||
msgstr "o"
|
||||
|
||||
#~ msgid "Last Modified on"
|
||||
#~ msgstr "Última modificación en"
|
||||
|
||||
#~ msgid "Journal Entries"
|
||||
#~ msgstr "Asientos Contables"
|
||||
|
||||
|
||||
@@ -136,11 +136,6 @@ msgstr ""
|
||||
msgid "Journal Item"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_tax_balance
|
||||
#: model:ir.model.fields,field_description:account_tax_balance.field_wizard_open_tax_balances____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr "Dernière modification le"
|
||||
|
||||
#. module: account_tax_balance
|
||||
#: model:ir.model.fields,field_description:account_tax_balance.field_wizard_open_tax_balances__write_uid
|
||||
msgid "Last Updated by"
|
||||
@@ -305,6 +300,9 @@ msgstr "Mage Soldes de Taxes Ouverts"
|
||||
msgid "or"
|
||||
msgstr "ou"
|
||||
|
||||
#~ msgid "Last Modified on"
|
||||
#~ msgstr "Dernière modification le"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "Journal Entries"
|
||||
#~ msgstr "Écritures comptabilisées + non-comptabilisées"
|
||||
|
||||
@@ -130,11 +130,6 @@ msgstr ""
|
||||
msgid "Journal Item"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_tax_balance
|
||||
#: model:ir.model.fields,field_description:account_tax_balance.field_wizard_open_tax_balances____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr "Dernière modification le"
|
||||
|
||||
#. module: account_tax_balance
|
||||
#: model:ir.model.fields,field_description:account_tax_balance.field_wizard_open_tax_balances__write_uid
|
||||
msgid "Last Updated by"
|
||||
@@ -298,3 +293,6 @@ msgstr "Mage Soldes de Taxes Ouverts"
|
||||
#: model_terms:ir.ui.view,arch_db:account_tax_balance.wizard_open_tax_balances
|
||||
msgid "or"
|
||||
msgstr "ou"
|
||||
|
||||
#~ msgid "Last Modified on"
|
||||
#~ msgstr "Dernière modification le"
|
||||
|
||||
@@ -137,11 +137,6 @@ msgstr ""
|
||||
msgid "Journal Item"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_tax_balance
|
||||
#: model:ir.model.fields,field_description:account_tax_balance.field_wizard_open_tax_balances____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_tax_balance
|
||||
#: model:ir.model.fields,field_description:account_tax_balance.field_wizard_open_tax_balances__write_uid
|
||||
msgid "Last Updated by"
|
||||
|
||||
@@ -133,11 +133,6 @@ msgstr ""
|
||||
msgid "Journal Item"
|
||||
msgstr "Movimento contabile"
|
||||
|
||||
#. module: account_tax_balance
|
||||
#: model:ir.model.fields,field_description:account_tax_balance.field_wizard_open_tax_balances____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr "Ultima modifica il"
|
||||
|
||||
#. module: account_tax_balance
|
||||
#: model:ir.model.fields,field_description:account_tax_balance.field_wizard_open_tax_balances__write_uid
|
||||
msgid "Last Updated by"
|
||||
@@ -309,6 +304,9 @@ msgstr "wizard.open.tax.balances"
|
||||
msgid "or"
|
||||
msgstr "o"
|
||||
|
||||
#~ msgid "Last Modified on"
|
||||
#~ msgstr "Ultima modifica il"
|
||||
|
||||
#~ msgid "Journal Entries"
|
||||
#~ msgstr "Registrazioni contabili"
|
||||
|
||||
|
||||
@@ -135,11 +135,6 @@ msgstr ""
|
||||
msgid "Journal Item"
|
||||
msgstr "Journaalpost"
|
||||
|
||||
#. module: account_tax_balance
|
||||
#: model:ir.model.fields,field_description:account_tax_balance.field_wizard_open_tax_balances____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr "Laatst Gewijzigd op"
|
||||
|
||||
#. module: account_tax_balance
|
||||
#: model:ir.model.fields,field_description:account_tax_balance.field_wizard_open_tax_balances__write_uid
|
||||
msgid "Last Updated by"
|
||||
@@ -304,6 +299,9 @@ msgstr ""
|
||||
msgid "or"
|
||||
msgstr "of"
|
||||
|
||||
#~ msgid "Last Modified on"
|
||||
#~ msgstr "Laatst Gewijzigd op"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "Journal Entries"
|
||||
#~ msgstr "Journaalpost"
|
||||
|
||||
@@ -137,11 +137,6 @@ msgstr ""
|
||||
msgid "Journal Item"
|
||||
msgstr "Boeking"
|
||||
|
||||
#. module: account_tax_balance
|
||||
#: model:ir.model.fields,field_description:account_tax_balance.field_wizard_open_tax_balances____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr "Laatst gewijzigd op"
|
||||
|
||||
#. module: account_tax_balance
|
||||
#: model:ir.model.fields,field_description:account_tax_balance.field_wizard_open_tax_balances__write_uid
|
||||
msgid "Last Updated by"
|
||||
@@ -306,6 +301,9 @@ msgstr ""
|
||||
msgid "or"
|
||||
msgstr ""
|
||||
|
||||
#~ msgid "Last Modified on"
|
||||
#~ msgstr "Laatst gewijzigd op"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "Journal Entries"
|
||||
#~ msgstr "Boeking"
|
||||
|
||||
@@ -133,11 +133,6 @@ msgstr ""
|
||||
msgid "Journal Item"
|
||||
msgstr "Item de Diário"
|
||||
|
||||
#. module: account_tax_balance
|
||||
#: model:ir.model.fields,field_description:account_tax_balance.field_wizard_open_tax_balances____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr "Última modificação em"
|
||||
|
||||
#. module: account_tax_balance
|
||||
#: model:ir.model.fields,field_description:account_tax_balance.field_wizard_open_tax_balances__write_uid
|
||||
msgid "Last Updated by"
|
||||
@@ -302,6 +297,9 @@ msgstr "Assistente de Saldos de Impostos Abertos"
|
||||
msgid "or"
|
||||
msgstr "ou"
|
||||
|
||||
#~ msgid "Last Modified on"
|
||||
#~ msgstr "Última modificação em"
|
||||
|
||||
#~ msgid "Journal Entries"
|
||||
#~ msgstr "Itens de Diários"
|
||||
|
||||
|
||||
@@ -130,11 +130,6 @@ msgstr "Entrada Diário"
|
||||
msgid "Journal Item"
|
||||
msgstr "Item Diário"
|
||||
|
||||
#. module: account_tax_balance
|
||||
#: model:ir.model.fields,field_description:account_tax_balance.field_wizard_open_tax_balances____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr "Última Modificação em"
|
||||
|
||||
#. module: account_tax_balance
|
||||
#: model:ir.model.fields,field_description:account_tax_balance.field_wizard_open_tax_balances__write_uid
|
||||
msgid "Last Updated by"
|
||||
@@ -298,3 +293,6 @@ msgstr "Assistente de Saldos Fiscais Abertos"
|
||||
#: model_terms:ir.ui.view,arch_db:account_tax_balance.wizard_open_tax_balances
|
||||
msgid "or"
|
||||
msgstr "ou"
|
||||
|
||||
#~ msgid "Last Modified on"
|
||||
#~ msgstr "Última Modificação em"
|
||||
|
||||
@@ -136,11 +136,6 @@ msgstr ""
|
||||
msgid "Journal Item"
|
||||
msgstr "Articol de jurnal"
|
||||
|
||||
#. module: account_tax_balance
|
||||
#: model:ir.model.fields,field_description:account_tax_balance.field_wizard_open_tax_balances____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr "Ultima dată modificat"
|
||||
|
||||
#. module: account_tax_balance
|
||||
#: model:ir.model.fields,field_description:account_tax_balance.field_wizard_open_tax_balances__write_uid
|
||||
msgid "Last Updated by"
|
||||
@@ -305,6 +300,9 @@ msgstr ""
|
||||
msgid "or"
|
||||
msgstr "sau"
|
||||
|
||||
#~ msgid "Last Modified on"
|
||||
#~ msgstr "Ultima dată modificat"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "Journal Entries"
|
||||
#~ msgstr "Toate înregistrările"
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
@@ -367,7 +366,7 @@ ul.auto-toc {
|
||||
!! This file is generated by oca-gen-addon-readme !!
|
||||
!! changes will be overwritten. !!
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! source digest: sha256:64232d765ed74980509787f10bef8fbcd09566844f7194b4dc53880a8e0a01e6
|
||||
!! source digest: sha256:4d5facdf6681a965b6e08ba419158ba2aeef8620a80b74a8b05225e74298acbd
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||||
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Mature" src="https://img.shields.io/badge/maturity-Mature-brightgreen.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/account-financial-reporting/tree/17.0/account_tax_balance"><img alt="OCA/account-financial-reporting" src="https://img.shields.io/badge/github-OCA%2Faccount--financial--reporting-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/account-financial-reporting-17-0/account-financial-reporting-17-0-account_tax_balance"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/account-financial-reporting&target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
||||
<p>This module allows to compute tax balances within a certain date range.
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
<field name="ref" position="after">
|
||||
<field
|
||||
name="financial_type"
|
||||
attrs="{'invisible': [('move_type', 'in', ['out_invoice','in_invoice','out_refund','in_refund'])]}"
|
||||
invisible="move_type in ['out_invoice','in_invoice','out_refund','in_refund']"
|
||||
/>
|
||||
</field>
|
||||
</field>
|
||||
|
||||
Reference in New Issue
Block a user