Skip to content

Commit

Permalink
Translated using Weblate (Italian)
Browse files Browse the repository at this point in the history
Currently translated at 100.0% (74 of 74 strings)

Translation: purchase-workflow-17.0/purchase-workflow-17.0-purchase_invoice_plan
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-17-0/purchase-workflow-17-0-purchase_invoice_plan/it/
  • Loading branch information
mymage authored and rlimaeco committed Feb 7, 2025
1 parent 0e41089 commit 06540b3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
12 changes: 5 additions & 7 deletions purchase_invoice_plan/i18n/it.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-08-20 09:58+0000\n"
"PO-Revision-Date: 2024-12-10 17:21+0000\n"
"Last-Translator: mymage <[email protected]>\n"
"Language-Team: none\n"
"Language: it\n"
Expand Down Expand Up @@ -272,12 +272,12 @@ msgstr "Numero di rate"
#: model:ir.model.fields,field_description:purchase_invoice_plan.field_purchase_order__ip_total_percent
#: model_terms:ir.ui.view,arch_db:purchase_invoice_plan.view_purchase_invoice_plan_tree_readonly
msgid "Percent"
msgstr "Percento"
msgstr "Percentuale"

#. module: purchase_invoice_plan
#: model:ir.model.fields,field_description:purchase_invoice_plan.field_purchase_invoice_plan__plan_date
msgid "Plan Date"
msgstr "Data pianificata"
msgstr "Pianifica data"

#. module: purchase_invoice_plan
#. odoo-python
Expand All @@ -287,17 +287,15 @@ msgid ""
"Plan quantity: %(plan)s, exceed invoiceable quantity: %(qty)s\n"
"Product should be delivered before invoice"
msgstr ""
"Quantità pianificata: %(plan)s, quantità in esubero fatturabile: %(qty)s\n"
"Pianifica quantità: %(plan)s, quantità in esubero fatturabile: %(qty)s\n"
"Il prodotto deve essere consegnato prima di essere fatturato"

#. module: purchase_invoice_plan
#. odoo-python
#: code:addons/purchase_invoice_plan/models/purchase.py:0
#, python-format
msgid "Please fill percentage for all invoice plan lines"
msgstr ""
"Per favore inserire la percentuale per tutte le righe del piano di "
"fatturazione"
msgstr "Inserire la percentuale per tutte le righe del piano di fatturazione"

#. module: purchase_invoice_plan
#: model:ir.actions.act_window,name:purchase_invoice_plan.action_purchase_invoice_plan
Expand Down
5 changes: 4 additions & 1 deletion purchase_invoice_plan/models/purchase.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,10 @@ def _update_new_quantity(self, line, percent):
"""Hook function"""
plan_qty = self._get_plan_qty(line.purchase_line_id, percent)
prec = line.purchase_line_id.product_uom.rounding
if float_compare(abs(plan_qty), abs(line.quantity), prec) == 1:
if (
float_compare(abs(plan_qty), abs(line.quantity), precision_rounding=prec)
== 1
):
raise ValidationError(
_(
"Plan quantity: %(plan)s, exceed invoiceable quantity: %(qty)s"
Expand Down
2 changes: 1 addition & 1 deletion purchase_invoice_plan/tests/test_purchase_invoice_plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from odoo import fields
from odoo.exceptions import UserError, ValidationError
from odoo.tests.common import Form, TransactionCase
from odoo.tests import Form, TransactionCase


class TestPurchaseInvoicePlan(TransactionCase):
Expand Down

0 comments on commit 06540b3

Please sign in to comment.