From 492a7275c2112bbf513ad4639e66f837d102dbf8 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Sat, 17 Dec 2022 18:51:14 +0100 Subject: [PATCH] Remove translate=False fixes bug #190 --- base_usability/models/__init__.py | 2 - base_usability/models/ir_actions_report.py | 15 ----- base_usability/models/res_partner_category.py | 11 ---- product_no_translation/__init__.py | 23 -------- product_no_translation/__manifest__.py | 41 ------------- product_no_translation/product.py | 55 ------------------ .../static/description/icon.png | Bin 9167 -> 0 bytes sales_team_usability/models/__init__.py | 1 - sales_team_usability/models/crm_tag.py | 11 ---- stock_usability/models/__init__.py | 1 - .../models/stock_location_route.py | 11 ---- stock_usability/models/stock_picking.py | 6 -- 12 files changed, 177 deletions(-) delete mode 100644 base_usability/models/ir_actions_report.py delete mode 100644 base_usability/models/res_partner_category.py delete mode 100644 product_no_translation/__init__.py delete mode 100644 product_no_translation/__manifest__.py delete mode 100644 product_no_translation/product.py delete mode 100644 product_no_translation/static/description/icon.png delete mode 100644 sales_team_usability/models/crm_tag.py delete mode 100644 stock_usability/models/stock_location_route.py diff --git a/base_usability/models/__init__.py b/base_usability/models/__init__.py index 3b15f76..79e7843 100644 --- a/base_usability/models/__init__.py +++ b/base_usability/models/__init__.py @@ -1,8 +1,6 @@ from . import res_users from . import res_partner from . import res_partner_bank -from . import res_partner_category from . import res_company from . import ir_mail_server -from . import ir_actions_report from . import ir_model diff --git a/base_usability/models/ir_actions_report.py b/base_usability/models/ir_actions_report.py deleted file mode 100644 index 6d5621b..0000000 --- a/base_usability/models/ir_actions_report.py +++ /dev/null @@ -1,15 +0,0 @@ -# Copyright 2022 Akretion France (http://www.akretion.com/) -# @author: Alexis de Lattre -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). - -from odoo import fields, models - - -class IrActionsReport(models.Model): - _inherit = "ir.actions.report" - - # since v13, print_report_name is a translatable field - # It means that you can't set the value via an inherit of - # ir.actions.report as XML - # I think it was easier when this field was not translatable - print_report_name = fields.Char(translate=False) diff --git a/base_usability/models/res_partner_category.py b/base_usability/models/res_partner_category.py deleted file mode 100644 index 966167c..0000000 --- a/base_usability/models/res_partner_category.py +++ /dev/null @@ -1,11 +0,0 @@ -# Copyright 2015-2022 Akretion France (http://www.akretion.com/) -# @author: Alexis de Lattre -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). - -from odoo import fields, models - - -class ResPartnerCategory(models.Model): - _inherit = 'res.partner.category' - - name = fields.Char(translate=False) diff --git a/product_no_translation/__init__.py b/product_no_translation/__init__.py deleted file mode 100644 index 936b9d4..0000000 --- a/product_no_translation/__init__.py +++ /dev/null @@ -1,23 +0,0 @@ -# -*- encoding: utf-8 -*- -############################################################################## -# -# Product No Translation module for Odoo -# Copyright (C) 2014 Akretion (http://www.akretion.com) -# @author Alexis de Lattre -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -############################################################################## - -from . import product diff --git a/product_no_translation/__manifest__.py b/product_no_translation/__manifest__.py deleted file mode 100644 index 9bcc18a..0000000 --- a/product_no_translation/__manifest__.py +++ /dev/null @@ -1,41 +0,0 @@ -# -*- encoding: utf-8 -*- -############################################################################## -# -# Product No Translation module for Odoo -# Copyright (C) 2014 Akretion (http://www.akretion.com) -# @author Alexis de Lattre -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -############################################################################## - - -{ - 'name': 'Product no Translation', - 'version': '14.0.1.0.0', - 'category': 'Sales Management', - 'license': 'AGPL-3', - 'summary': 'For companies that work with only one language', - 'description': """ -This module sets the translatable fields of the product object (name, -descriptions) to non-translatable fields. - -This change is usefull for companies that work with only one language. -And it reduces the start time of the Point of Sale ! - """, - 'author': 'Akretion', - 'website': 'http://www.akretion.com', - 'depends': ['product'], - 'installable': False, -} diff --git a/product_no_translation/product.py b/product_no_translation/product.py deleted file mode 100644 index 30136c7..0000000 --- a/product_no_translation/product.py +++ /dev/null @@ -1,55 +0,0 @@ -# -*- encoding: utf-8 -*- -############################################################################## -# -# Product No Translation module for Odoo -# Copyright (C) 2014 Akretion (http://www.akretion.com) -# @author Alexis de Lattre -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -############################################################################## - -from odoo import models, fields - - -class ProductTemplate(models.Model): - _inherit = "product.template" - - description_sale = fields.Text(translate=False) - description_purchase = fields.Text(translate=False) - description = fields.Text(translate=False) - name = fields.Char(translate=False) - -class ProductAttribute(models.Model): - _inherit = "product.attribute" - - name = fields.Char(translate=False) - - -class ProductAttributeValue(models.Model): - _inherit = "product.attribute.value" - - name = fields.Char(translate=False) - - -class UomCategory(models.Model): - _inherit = 'uom.category' - - name = fields.Char(translate=False) - - -class UomUom(models.Model): - _inherit = 'uom.uom' - - name = fields.Char(translate=False) diff --git a/product_no_translation/static/description/icon.png b/product_no_translation/static/description/icon.png deleted file mode 100644 index 7650d1d5f84f96994c0882f24738a2d8448cd833..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 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CXZ{-b>&(>;c-}VANcy0X9`(!rBkVEYzt4CMkR^ zVI*pWuAO){#VEhT{HcHQT|O}G#To(tXx#tn1?US@NxBI#Vas7HfF>vx2nv~2I!f$= z)Z&Gl4J!?upDr|5+j*2!xZ}a(qhKI6=^Jx90o%lV+nbC;Q1e#|a*-p@4;Q=ND9TLc zf^S4NVQdR$eD8O1`OvC#{B^o$H$E@9hxN$3U-`|k8EB=%zm%73!KuF@Z2`$4;?!o( zwj;z06MVOl@F6j4vMM1dE$S0iDRH3)8MRfN{cjz{Xc+^MO|L9n3*r;VEF9Bht9@o4 z;fM%{r6zhk$uPvqq;NJX&~I*L`mIJ~I=5SrTz1rXBwqnY33G&1hQ4jbsr}=;2<<@M z#(kV&sKVO( z8tdH1h>ZCyP;+ss^)xGLuF>-5W9fN0wXMay_eA@ZEfYBda8o`=59!6X*i3BHL zB1Op~U$`;|KJa`Bvle9+#nWZGI~yGJPCVFVHO-=7FZ1}dIW7bM92^Qfl^_V z7z3@>h@fhYeXyE@Va%NoFjUS5gQRU{r&E}ojJJX;uLc16aQ9x#IP?+irK6Twz3vnu;eKvDhv@Tc_e>PNYP<$vuesn)m82jSG5f9EZhU;1nS>dHEx);G2>{|7Ogz(oK6 diff --git a/sales_team_usability/models/__init__.py b/sales_team_usability/models/__init__.py index cb3133d..e69de29 100644 --- a/sales_team_usability/models/__init__.py +++ b/sales_team_usability/models/__init__.py @@ -1 +0,0 @@ -from . import crm_tag diff --git a/sales_team_usability/models/crm_tag.py b/sales_team_usability/models/crm_tag.py deleted file mode 100644 index e813e51..0000000 --- a/sales_team_usability/models/crm_tag.py +++ /dev/null @@ -1,11 +0,0 @@ -# Copyright 2021 Akretion France (http://www.akretion.com) -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -# @author Alexis de Lattre - -from odoo import fields, models - - -class CrmTag(models.Model): - _inherit = "crm.tag" - - name = fields.Char(translate=False) diff --git a/stock_usability/models/__init__.py b/stock_usability/models/__init__.py index 3c6fc34..04d9e97 100644 --- a/stock_usability/models/__init__.py +++ b/stock_usability/models/__init__.py @@ -1,7 +1,6 @@ from . import stock_move from . import stock_move_line from . import stock_picking -from . import stock_location_route from . import stock_warehouse_orderpoint from . import stock_quant from . import procurement_group diff --git a/stock_usability/models/stock_location_route.py b/stock_usability/models/stock_location_route.py deleted file mode 100644 index 2e0a3d3..0000000 --- a/stock_usability/models/stock_location_route.py +++ /dev/null @@ -1,11 +0,0 @@ -# Copyright 2014-2022 Akretion (http://www.akretion.com) -# @author Alexis de Lattre -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). - -from odoo import fields, models - - -class StockRoute(models.Model): - _inherit = 'stock.route' - - name = fields.Char(translate=False) diff --git a/stock_usability/models/stock_picking.py b/stock_usability/models/stock_picking.py index 9b0ac41..96991c7 100644 --- a/stock_usability/models/stock_picking.py +++ b/stock_usability/models/stock_picking.py @@ -24,9 +24,3 @@ class StockPicking(models.Model): for pick in self: pick.message_post(body=_("Picking unreserved.")) return res - - -class StockPickingType(models.Model): - _inherit = 'stock.picking.type' - - name = fields.Char(translate=False)