diff --git a/account_fiscal_position_vat_check/i18n/account_fiscal_position_vat_check.pot b/account_fiscal_position_vat_check/i18n/account_fiscal_position_vat_check.pot index 697fe5fb..178f1ef5 100644 --- a/account_fiscal_position_vat_check/i18n/account_fiscal_position_vat_check.pot +++ b/account_fiscal_position_vat_check/i18n/account_fiscal_position_vat_check.pot @@ -56,10 +56,13 @@ msgstr "" #: code:addons/account_fiscal_position_vat_check/models/account_move.py:0 #, python-format msgid "" -"You are trying to validate a customer invoice/refund with the fiscal " -"position '%s' that require the customer to have a VAT number. But the " -"Customer '%s' doesn't have a VAT number in Odoo. Please add the VAT number " -"of this Customer in Odoo and try to validate again." +"You are trying to validate a customer " +"invoice/refund with the fiscal position '%(fp)s' " +"that require the customer to have a VAT number. " +"But the Customer '%(rp)s' " +"doesn't have a VAT number in Odoo. " +"Please add the VAT number of this Customer in Odoo " +"and try to validate again." msgstr "" #. module: account_fiscal_position_vat_check diff --git a/account_fiscal_position_vat_check/i18n/de.po b/account_fiscal_position_vat_check/i18n/de.po index 7fd703e6..bb0a0aab 100644 --- a/account_fiscal_position_vat_check/i18n/de.po +++ b/account_fiscal_position_vat_check/i18n/de.po @@ -63,14 +63,17 @@ msgstr "" #: code:addons/account_fiscal_position_vat_check/models/account_move.py:0 #, python-format msgid "" -"You are trying to validate a customer invoice/refund with the fiscal " -"position '%s' that require the customer to have a VAT number. But the " -"Customer '%s' doesn't have a VAT number in Odoo. Please add the VAT number " -"of this Customer in Odoo and try to validate again." +"You are trying to validate a customer " +"invoice/refund with the fiscal position '%(fp)s' " +"that require the customer to have a VAT number. " +"But the Customer '%(rp)s' " +"doesn't have a VAT number in Odoo. " +"Please add the VAT number of this Customer in Odoo " +"and try to validate again." msgstr "" "Sie versuchen, eine Ausgangsrechnung/-gutschrift mit der Steuerzuordnung " -"'%s' zu genehmigen, für die der Kunde eine Umsatzsteuernummer benötigt. Der " -"Kunde '%s' hat aber keine USt-ID in Odoo. Bitte geben Sie die USt-ID des " +"'%(fp)s' zu genehmigen, für die der Kunde eine Umsatzsteuernummer benötigt. Der " +"Kunde '%(rp)s' hat aber keine USt-ID in Odoo. Bitte geben Sie die USt-ID des " "Kunden in Odoo an und starten Sie die Prüfung erneut." #. module: account_fiscal_position_vat_check diff --git a/account_fiscal_position_vat_check/i18n/es.po b/account_fiscal_position_vat_check/i18n/es.po index a816f1c0..c72aff9f 100644 --- a/account_fiscal_position_vat_check/i18n/es.po +++ b/account_fiscal_position_vat_check/i18n/es.po @@ -63,13 +63,16 @@ msgstr "" #: code:addons/account_fiscal_position_vat_check/models/account_move.py:0 #, python-format msgid "" -"You are trying to validate a customer invoice/refund with the fiscal " -"position '%s' that require the customer to have a VAT number. But the " -"Customer '%s' doesn't have a VAT number in Odoo. Please add the VAT number " -"of this Customer in Odoo and try to validate again." +"You are trying to validate a customer " +"invoice/refund with the fiscal position '%(fp)s' " +"that require the customer to have a VAT number. " +"But the Customer '%(rp)s' " +"doesn't have a VAT number in Odoo. " +"Please add the VAT number of this Customer in Odoo " +"and try to validate again." msgstr "" "Está tratando de validar una factura/factura rectificativa con la posición " -"fiscal '%s' que requiere que el cliente tenga un NIF. Pero el cliente '%s' " +"fiscal '%(fp)s' que requiere que el cliente tenga un NIF. Pero el cliente '%(rp)s' " "no tiene un NIF en sus datos. Añada por favor el NIF de este cliente e " "intente validarla otra vez." diff --git a/account_fiscal_position_vat_check/i18n/fr.po b/account_fiscal_position_vat_check/i18n/fr.po index 8d363987..df410645 100644 --- a/account_fiscal_position_vat_check/i18n/fr.po +++ b/account_fiscal_position_vat_check/i18n/fr.po @@ -62,14 +62,17 @@ msgstr "" #: code:addons/account_fiscal_position_vat_check/models/account_move.py:0 #, python-format msgid "" -"You are trying to validate a customer invoice/refund with the fiscal " -"position '%s' that require the customer to have a VAT number. But the " -"Customer '%s' doesn't have a VAT number in Odoo. Please add the VAT number " -"of this Customer in Odoo and try to validate again." +"You are trying to validate a customer " +"invoice/refund with the fiscal position '%(fp)s' " +"that require the customer to have a VAT number. " +"But the Customer '%(rp)s' " +"doesn't have a VAT number in Odoo. " +"Please add the VAT number of this Customer in Odoo " +"and try to validate again." msgstr "" "Vous essayez de valider une facture/remboursement client avec la position " -"fiscale '%s' qui exige que le client ait un numéro de TVA. Mais le client " -"'%s' n'a pas de numéro de TVA dans Odoo. Veuillez ajouter le numéro de TVA " +"fiscale '%(fp)s' qui exige que le client ait un numéro de TVA. Mais le client " +"'%(rp)s' n'a pas de numéro de TVA dans Odoo. Veuillez ajouter le numéro de TVA " "de ce client dans Odoo et essayer de valider à nouveau." #. module: account_fiscal_position_vat_check diff --git a/account_fiscal_position_vat_check/i18n/fr_FR.po b/account_fiscal_position_vat_check/i18n/fr_FR.po index 8d25015d..a56680b0 100644 --- a/account_fiscal_position_vat_check/i18n/fr_FR.po +++ b/account_fiscal_position_vat_check/i18n/fr_FR.po @@ -59,14 +59,17 @@ msgstr "" #: code:addons/account_fiscal_position_vat_check/models/account_move.py:0 #, python-format msgid "" -"You are trying to validate a customer invoice/refund with the fiscal " -"position '%s' that require the customer to have a VAT number. But the " -"Customer '%s' doesn't have a VAT number in Odoo. Please add the VAT number " -"of this Customer in Odoo and try to validate again." +"You are trying to validate a customer " +"invoice/refund with the fiscal position '%(fp)s' " +"that require the customer to have a VAT number. " +"But the Customer '%(rp)s' " +"doesn't have a VAT number in Odoo. " +"Please add the VAT number of this Customer in Odoo " +"and try to validate again." msgstr "" "Vous essayez de valider une facture/remboursement client avec la position " -"fiscale '%s' qui exige que le client ait un numéro de TVA. Mais le client " -"'%s' n'a pas de numéro de TVA dans Odoo. Veuillez ajouter le numéro de TVA " +"fiscale '%(fp)s' qui exige que le client ait un numéro de TVA. Mais le client " +"'%(rp)s' n'a pas de numéro de TVA dans Odoo. Veuillez ajouter le numéro de TVA " "de ce client dans Odoo et essayer de valider à nouveau." #. module: account_fiscal_position_vat_check diff --git a/account_fiscal_position_vat_check/i18n/hr.po b/account_fiscal_position_vat_check/i18n/hr.po index a989c199..9b951be8 100644 --- a/account_fiscal_position_vat_check/i18n/hr.po +++ b/account_fiscal_position_vat_check/i18n/hr.po @@ -64,13 +64,16 @@ msgstr "" #: code:addons/account_fiscal_position_vat_check/models/account_move.py:0 #, python-format msgid "" -"You are trying to validate a customer invoice/refund with the fiscal " -"position '%s' that require the customer to have a VAT number. But the " -"Customer '%s' doesn't have a VAT number in Odoo. Please add the VAT number " -"of this Customer in Odoo and try to validate again." +"You are trying to validate a customer " +"invoice/refund with the fiscal position '%(fp)s' " +"that require the customer to have a VAT number. " +"But the Customer '%(rp)s' " +"doesn't have a VAT number in Odoo. " +"Please add the VAT number of this Customer in Odoo " +"and try to validate again." msgstr "" -"Pokušavate potvrditi račun ili odobrenje sa fiskalnom pozicijom '%s' koja " -"zahtijeva da partner ima unešen porezni broj, ali partner '%s' nema porezni " +"Pokušavate potvrditi račun ili odobrenje sa fiskalnom pozicijom '%(fp)s' koja " +"zahtijeva da partner ima unešen porezni broj, ali partner '%(rp)s' nema porezni " "broj upisan u odoo. Molimo dodajte porezni broj ovog partnera i pokušajte " "ponoviti potvrđivanje." diff --git a/account_fiscal_position_vat_check/i18n/hr_HR.po b/account_fiscal_position_vat_check/i18n/hr_HR.po index 1bd195ee..f96a74ef 100644 --- a/account_fiscal_position_vat_check/i18n/hr_HR.po +++ b/account_fiscal_position_vat_check/i18n/hr_HR.po @@ -63,13 +63,16 @@ msgstr "" #: code:addons/account_fiscal_position_vat_check/models/account_move.py:0 #, python-format msgid "" -"You are trying to validate a customer invoice/refund with the fiscal " -"position '%s' that require the customer to have a VAT number. But the " -"Customer '%s' doesn't have a VAT number in Odoo. Please add the VAT number " -"of this Customer in Odoo and try to validate again." +"You are trying to validate a customer " +"invoice/refund with the fiscal position '%(fp)s' " +"that require the customer to have a VAT number. " +"But the Customer '%(rp)s' " +"doesn't have a VAT number in Odoo. " +"Please add the VAT number of this Customer in Odoo " +"and try to validate again." msgstr "" -"Pokušavate potvrditi račun ili povrat kupca sa fiskalnom pozivijom '%s' koja " -"zahtijva da partner ima unešen porezni broj. Kupac %s nema unešen porezni " +"Pokušavate potvrditi račun ili povrat kupca sa fiskalnom pozivijom '%(fp)s' koja " +"zahtijva da partner ima unešen porezni broj. Kupac '%(rp)s' nema unešen porezni " "broj u sustavu, molimo uinestie ga i pokušajte potvrditi račun ponovo." #. module: account_fiscal_position_vat_check diff --git a/account_fiscal_position_vat_check/i18n/nl.po b/account_fiscal_position_vat_check/i18n/nl.po index 2967e1ff..4d8436a0 100644 --- a/account_fiscal_position_vat_check/i18n/nl.po +++ b/account_fiscal_position_vat_check/i18n/nl.po @@ -62,14 +62,17 @@ msgstr "" #: code:addons/account_fiscal_position_vat_check/models/account_move.py:0 #, python-format msgid "" -"You are trying to validate a customer invoice/refund with the fiscal " -"position '%s' that require the customer to have a VAT number. But the " -"Customer '%s' doesn't have a VAT number in Odoo. Please add the VAT number " -"of this Customer in Odoo and try to validate again." +"You are trying to validate a customer " +"invoice/refund with the fiscal position '%(fp)s' " +"that require the customer to have a VAT number. " +"But the Customer '%(rp)s' " +"doesn't have a VAT number in Odoo. " +"Please add the VAT number of this Customer in Odoo " +"and try to validate again." msgstr "" "U probeert een verkoop factuur/credit factuur te valideren met de volgende " -"fiscale positie '%s' waarvoor het is verplicht dat er een BTW nummer is " -"ingevuld. Maar voor de klant '%s' is geen BTW nummer bekend. Voeg het BTW " +"fiscale positie '%(fp)s' waarvoor het is verplicht dat er een BTW nummer is " +"ingevuld. Maar voor de klant '%(rp)s' is geen BTW nummer bekend. Voeg het BTW " "nummer van deze klant toe en valideer opnieuw." #. module: account_fiscal_position_vat_check diff --git a/account_fiscal_position_vat_check/i18n/pt.po b/account_fiscal_position_vat_check/i18n/pt.po index 92624b4d..ac6e3178 100644 --- a/account_fiscal_position_vat_check/i18n/pt.po +++ b/account_fiscal_position_vat_check/i18n/pt.po @@ -62,14 +62,17 @@ msgstr "" #: code:addons/account_fiscal_position_vat_check/models/account_move.py:0 #, python-format msgid "" -"You are trying to validate a customer invoice/refund with the fiscal " -"position '%s' that require the customer to have a VAT number. But the " -"Customer '%s' doesn't have a VAT number in Odoo. Please add the VAT number " -"of this Customer in Odoo and try to validate again." +"You are trying to validate a customer " +"invoice/refund with the fiscal position '%(fp)s' " +"that require the customer to have a VAT number. " +"But the Customer '%(rp)s' " +"doesn't have a VAT number in Odoo. " +"Please add the VAT number of this Customer in Odoo " +"and try to validate again." msgstr "" -"Está a tentar validar uma fatura ou reembolso com a posição fiscal '%s', que " +"Está a tentar validar uma fatura ou reembolso com a posição fiscal '%(fp)s', que " "obriga a que o cliente tenha um NIFo que não acontece no caso do cliente " -"'%s'. Por favor, adicione um e tente validar novamente." +"'%(rp)s'. Por favor, adicione um e tente validar novamente." #. module: account_fiscal_position_vat_check #: model_terms:ir.ui.view,arch_db:account_fiscal_position_vat_check.view_partner_property_form diff --git a/account_fiscal_position_vat_check/i18n/pt_BR.po b/account_fiscal_position_vat_check/i18n/pt_BR.po index 17cb671e..da801f00 100644 --- a/account_fiscal_position_vat_check/i18n/pt_BR.po +++ b/account_fiscal_position_vat_check/i18n/pt_BR.po @@ -64,14 +64,17 @@ msgstr "" #: code:addons/account_fiscal_position_vat_check/models/account_move.py:0 #, python-format msgid "" -"You are trying to validate a customer invoice/refund with the fiscal " -"position '%s' that require the customer to have a VAT number. But the " -"Customer '%s' doesn't have a VAT number in Odoo. Please add the VAT number " -"of this Customer in Odoo and try to validate again." +"You are trying to validate a customer " +"invoice/refund with the fiscal position '%(fp)s' " +"that require the customer to have a VAT number. " +"But the Customer '%(rp)s' " +"doesn't have a VAT number in Odoo. " +"Please add the VAT number of this Customer in Odoo " +"and try to validate again." msgstr "" "Você está tentando validar uma fatura/reembolso de cliente com a posição " -"fiscal '%s' que requer que o cliente possua um número de Valor de Imposto " -"Atribuido. Mas o Cliente '%s' não possui este número no Odoo. Por favor " +"fiscal '%(fp)s' que requer que o cliente possua um número de Valor de Imposto " +"Atribuido. Mas o Cliente '%(rp)s' não possui este número no Odoo. Por favor " "adicione o número de VIA deste Cliente no Odoo e tente validar novamente." #. module: account_fiscal_position_vat_check diff --git a/account_fiscal_position_vat_check/models/account_move.py b/account_fiscal_position_vat_check/models/account_move.py index 726b10c3..f51d7946 100644 --- a/account_fiscal_position_vat_check/models/account_move.py +++ b/account_fiscal_position_vat_check/models/account_move.py @@ -20,15 +20,17 @@ class AccountMove(models.Model): ): raise UserError( _( - "You are trying to validate a customer invoice/refund " - "with the fiscal position '%s' that require the customer " - "to have a VAT number. But the Customer '%s' doesn't have " - "a VAT number in Odoo. Please add the VAT number of this " - "Customer in Odoo and try to validate again." - ) - % ( - move.fiscal_position_id.display_name, - move.commercial_partner_id.display_name, + "You are trying to validate a customer " + "invoice/refund with the fiscal position '%(fp)s' " + "that require the customer to have a VAT number. " + "But the Customer '%(rp)s' " + "doesn't have a VAT number in Odoo. " + "Please add the VAT number of this Customer in Odoo " + "and try to validate again." ) + % { + "fp": move.fiscal_position_id.display_name, + "rp": move.commercial_partner_id.display_name, + } ) return super()._post(soft=soft)