[FIX] repair, sale, stock: translatable string and typo

currently the returned warning from the sale, stock and repair apps are not translatable to user languages.

this pr makes the string's translatable and correct the grammer of the warning.

closes odoo/odoo#108379

X-original-commit: 217115e68d117d7cf1eeb94794118819d6082547
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
This commit is contained in:
niyasraphy
2022-12-22 12:45:48 +01:00
committed by Victor Feyens
parent 1f3cbfd7ca
commit f9ec85614b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -196,7 +196,7 @@ class Repair(models.Model):
picking_warehouse = self.picking_id.location_dest_id.warehouse_id
if location_warehouse and picking_warehouse and location_warehouse != picking_warehouse:
return {
'warning': {'title': "Warning", 'message': "Note that the warehouse of the return and repair locations don't match!"},
'warning': {'title': _("Warning"), 'message': _("Note that the warehouses of the return and repair locations don't match!")},
}
@api.depends('product_id')
+1 -1
View File
@@ -1093,7 +1093,7 @@ Please change the quantity done or the rounding precision of your unit of measur
if self.product_uom.factor > self.product_id.uom_id.factor:
return {
'warning': {
'title': "Unsafe unit of measure",
'title': _("Unsafe unit of measure"),
'message': _("You are using a unit of measure smaller than the one you are using in "
"order to stock your product. This can lead to rounding problem on reserved quantity. "
"You should use the smaller unit of measure possible in order to valuate your stock or "