Skip to content

Commit

Permalink
[4214][11.0][ADD] product_name_translate_false #368
Browse files Browse the repository at this point in the history
  • Loading branch information
AungKoKoLin1997 authored Jan 19, 2024
1 parent 059197e commit 904868b
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions product_name_translate_false/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
12 changes: 12 additions & 0 deletions product_name_translate_false/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Copyright 2024 Quartile Limited
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Product Name Translate False",
"version": "11.0.1.0.0",
"author": "Quartile Limited",
"website": "https://www.quartile.co",
"category": "Product",
"license": "AGPL-3",
"depends": ["product"],
"installable": True,
}
1 change: 1 addition & 0 deletions product_name_translate_false/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import product_template
10 changes: 10 additions & 0 deletions product_name_translate_false/models/product_template.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright 2024 Quartile Limited
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from odoo import fields, models


class ProductTemplate(models.Model):
_inherit = "product.template"

name = fields.Char(translate=False)
2 changes: 2 additions & 0 deletions product_name_translate_false/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This module disables the product name field translation, as a workaround for the performance issue
described in https://github.com/odoo/odoo/issues/18679.

0 comments on commit 904868b

Please sign in to comment.