Ir al contenido
Menú
Se marcó esta pregunta

I did a commit to a staging branch in Odoo SH with Odoo version 18, and I'm getting this warning in translation. does anyone know what I'm doing wrong?


Warning:

_logger.log(log_level, 'no translation language detected, skipping translation %s', frame, stack_info=True)

Python code:

from odoo import models, fields, api, _
from odoo.exceptions import ValidationError


class InvoiceServiceTypeDetail(models.Model):
    _name = 'invoice.service.type.detail'
    _description = "Invoice Service Type Detail"

    name = fields.Char()
    code = fields.Char(size=2)
    parent_code = fields.Char()

    @api.constrains('code')
    def _check_unique_code(self):
        for rec in self:
            if rec.code:
                existing = self.env['invoice.service.type.detail'].search_count(
                    [('code', '=', rec.code), ('id', '!=', rec.id)]
                )
                if existing:
                    raise ValidationError(_("Code must be unique"))

es_DO.po:

#. module: dgii_reports
#: model:ir.model.constraint,message:dgii_reports.constraint_invoice_service_type_detail_code_unique
msgid "Code must be unique"
msgstr "El código debe ser único"
Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
3
mar 19
3839
0
nov 16
318
2
jul 22
8223
4
jul 24
6647
2
jul 24
2578