[IMP] pre-commit: first run on whole repo

This commit is contained in:
Kevin Khao
2021-11-26 18:54:38 +03:00
parent a04b8980e1
commit 167aefee13
289 changed files with 6020 additions and 4170 deletions

View File

@@ -1,4 +1,3 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
# Product No Translation module for Odoo

View File

@@ -1,4 +1,3 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
# Product No Translation module for Odoo
@@ -22,20 +21,20 @@
{
'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': """
"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': True,
"author": "Akretion",
"website": "https://github.com/OCA/odoo-usability",
"depends": ["product"],
"installable": True,
}

View File

@@ -1,4 +1,3 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
# Product No Translation module for Odoo
@@ -20,7 +19,7 @@
#
##############################################################################
from odoo import models, fields
from odoo import fields, models
class ProductTemplate(models.Model):
@@ -31,6 +30,7 @@ class ProductTemplate(models.Model):
description = fields.Text(translate=False)
name = fields.Char(translate=False)
class ProductAttribute(models.Model):
_inherit = "product.attribute"
@@ -44,12 +44,12 @@ class ProductAttributeValue(models.Model):
class UomCategory(models.Model):
_inherit = 'uom.category'
_inherit = "uom.category"
name = fields.Char(translate=False)
class UomUom(models.Model):
_inherit = 'uom.uom'
_inherit = "uom.uom"
name = fields.Char(translate=False)