From a456fece35a3f56ce1532268ef88a67728657694 Mon Sep 17 00:00:00 2001 From: mreficent Date: Tue, 29 Sep 2020 16:04:44 +0200 Subject: [PATCH] [IMP] hs_code_link: black, isort, prettier --- hs_code_link/__init__.py | 2 -- hs_code_link/__manifest__.py | 14 ++++---------- hs_code_link/models/__init__.py | 2 -- hs_code_link/models/product.py | 11 +++-------- hs_code_link/views/product_views.xml | 24 +++++++++++------------- 5 files changed, 18 insertions(+), 35 deletions(-) diff --git a/hs_code_link/__init__.py b/hs_code_link/__init__.py index cde864b..0650744 100644 --- a/hs_code_link/__init__.py +++ b/hs_code_link/__init__.py @@ -1,3 +1 @@ -# -*- coding: utf-8 -*- - from . import models diff --git a/hs_code_link/__manifest__.py b/hs_code_link/__manifest__.py index b3fa7fa..af67e42 100644 --- a/hs_code_link/__manifest__.py +++ b/hs_code_link/__manifest__.py @@ -1,20 +1,14 @@ -# -*- coding: utf-8 -*- # Copyright 2017 Camptocamp SA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "HS Code Link", "version": "10.0.1.0.0", - "depends": [ - 'product_harmonized_system', - 'delivery', - ], + "depends": ["product_harmonized_system", "delivery"], "author": "Camptocamp SA, Odoo Community Association (OCA)", "website": "http://www.camptocamp.com", "license": "AGPL-3", "category": "Reporting", - "data": [ - 'views/product_views.xml', - ], - 'installable': True, - 'auto_install': True, + "data": ["views/product_views.xml"], + "installable": True, + "auto_install": True, } diff --git a/hs_code_link/models/__init__.py b/hs_code_link/models/__init__.py index d7d7308..9649db7 100644 --- a/hs_code_link/models/__init__.py +++ b/hs_code_link/models/__init__.py @@ -1,3 +1 @@ -# -*- coding: utf-8 -*- - from . import product diff --git a/hs_code_link/models/product.py b/hs_code_link/models/product.py index 5b167cc..d000495 100644 --- a/hs_code_link/models/product.py +++ b/hs_code_link/models/product.py @@ -1,15 +1,10 @@ -# -*- coding: utf-8 -*- # Copyright 2017 Camptocamp SA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from odoo import models, fields +from odoo import fields, models class ProductTemplate(models.Model): - _inherit = 'product.template' + _inherit = "product.template" - hs_code = fields.Char( - related='hs_code_id.hs_code', - readonly=True, - store=True, - ) + hs_code = fields.Char(related="hs_code_id.hs_code", readonly=True, store=True) diff --git a/hs_code_link/views/product_views.xml b/hs_code_link/views/product_views.xml index bc2cbcf..4cf13f0 100644 --- a/hs_code_link/views/product_views.xml +++ b/hs_code_link/views/product_views.xml @@ -1,15 +1,13 @@ - + - - - product.template.hs.hidden - product.template - - - - True - - - - + + product.template.hs.hidden + product.template + + + + True + + +