Skip to content

Commit

Permalink
[ADD] new field's translations
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoParadeda committed May 29, 2024
1 parent ff258fc commit 7d2b6d4
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 7 deletions.
17 changes: 17 additions & 0 deletions l10n_br_delivery_nfe/i18n/pt_BR.po
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 4.14.1\n"

#. module: l10n_br_delivery_nfe
#: model:ir.model.fields,field_description:l10n_br_delivery_nfe.field_product_product__product_nfe40_marca
#: model:ir.model.fields,field_description:l10n_br_delivery_nfe.field_product_template__product_nfe40_marca
msgid "Brand of transported volumes"
msgstr "Marca dos volumes transportados"

#. module: l10n_br_delivery_nfe
#: model:ir.model.fields,field_description:l10n_br_delivery_nfe.field_account_bank_statement_line__nfe40_transporta
#: model:ir.model.fields,field_description:l10n_br_delivery_nfe.field_account_move__nfe40_transporta
Expand Down Expand Up @@ -74,3 +80,14 @@ msgstr ""
#: model:ir.model.fields,help:l10n_br_delivery_nfe.field_l10n_br_fiscal_document__nfe40_transporta
msgid "The partner that is doing the delivery service."
msgstr "O parceiro que está realizando o serviço de entrega."

#. module: l10n_br_delivery_nfe
#: model:ir.model.fields,field_description:l10n_br_delivery_nfe.field_stock_invoice_onshipping__vol_ids
msgid "Volume IDs Data"
msgstr "Dados dos volumes"

#. module: l10n_br_delivery_nfe
#: model:ir.model.fields,field_description:l10n_br_delivery_nfe.field_product_product__product_nfe40_esp
#: model:ir.model.fields,field_description:l10n_br_delivery_nfe.field_product_template__product_nfe40_esp
msgid "Type of transported volumes"
msgstr "Espécie dos volumes transportados"
10 changes: 7 additions & 3 deletions l10n_br_delivery_nfe/models/product_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,15 @@
class ProductProduct(models.Model):
_inherit = "product.product"

product_nfe40_esp = fields.Char(string="Espécie dos volumes transportados")
product_nfe40_esp = fields.Char(
string="Type of transported volumes",
)

product_nfe40_marca = fields.Char(string="Marca dos volumes transportados")
product_nfe40_marca = fields.Char(
string="Brand of transported volumes",
)

# Manter compatibilidade com módulo: product_net_weight
# Preserve compatibility with module: product_net_weight
net_weight = fields.Float(
string="Net Weight",
help="Net Weight of the product, container excluded.",
Expand Down
6 changes: 3 additions & 3 deletions l10n_br_delivery_nfe/models/product_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ class ProductTemplate(models.Model):
_inherit = "product.template"

product_nfe40_esp = fields.Char(
string="Espécie dos volumes transportados",
string="Type of transported volumes",
related="product_variant_ids.product_nfe40_esp",
readonly=False,
)

product_nfe40_marca = fields.Char(
string="Marca dos volumes transportados",
string="Brand of transported volumes",
related="product_variant_ids.product_nfe40_marca",
readonly=False,
)

# Manter compatibilidade com módulo: product_net_weight
# Preserve compatibility with module: product_net_weight
net_weight = fields.Float(
string="Net Weight",
related="product_variant_ids.net_weight",
Expand Down
2 changes: 1 addition & 1 deletion l10n_br_delivery_nfe/wizards/stock_invoice_onshipping.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class StockInvoiceOnshipping(models.TransientModel):
_inherit = "stock.invoice.onshipping"

vol_ids = fields.One2many(
string="Dados dos volumes",
string="Volume IDs Data",
comodel_name="stock.invoice.onshipping.vol",
inverse_name="invoice_wizard_id",
)
Expand Down

0 comments on commit 7d2b6d4

Please sign in to comment.