diff --git a/setup/website_default_code_product/odoo/addons/website_default_code_product b/setup/website_default_code_product/odoo/addons/website_default_code_product new file mode 120000 index 0000000000..c489925880 --- /dev/null +++ b/setup/website_default_code_product/odoo/addons/website_default_code_product @@ -0,0 +1 @@ +../../../../website_default_code_product \ No newline at end of file diff --git a/setup/website_default_code_product/setup.py b/setup/website_default_code_product/setup.py new file mode 100644 index 0000000000..28c57bb640 --- /dev/null +++ b/setup/website_default_code_product/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) diff --git a/website_default_code_product/README.rst b/website_default_code_product/README.rst index 6f37c4d240..8b0ae6aa31 100644 --- a/website_default_code_product/README.rst +++ b/website_default_code_product/README.rst @@ -1,4 +1,4 @@ ============================ Website Default Code Product ============================ -This module displays the default code attribute of the product in both the GRID/LIST views and the product details. \ No newline at end of file +This module displays the default code attribute of the product in both the GRID/LIST views and the product details. diff --git a/website_default_code_product/__manifest__.py b/website_default_code_product/__manifest__.py index 492a2367d6..a0f017303c 100644 --- a/website_default_code_product/__manifest__.py +++ b/website_default_code_product/__manifest__.py @@ -2,11 +2,10 @@ "name": "Website Default Code Product", "category": "Website", "version": "16.0.1.0.0", - 'author': "ForgeFlow", + "website": "https://github.com/OCA/website", + "author": "ForgeFlow, Odoo Community Association (OCA)", "license": "LGPL-3", - "depends": [ - "website_sale" - ], + "depends": ["website_sale"], "data": [ "views/website_default_code_product_views.xml", ], @@ -16,4 +15,4 @@ ], }, "installable": True, -} \ No newline at end of file +} diff --git a/website_default_code_product/static/src/scss/website_default_code_product.scss b/website_default_code_product/static/src/scss/website_default_code_product.scss index f5260b5046..a75661457e 100644 --- a/website_default_code_product/static/src/scss/website_default_code_product.scss +++ b/website_default_code_product/static/src/scss/website_default_code_product.scss @@ -1,3 +1,5 @@ .product_default_code { - min-height: 20px; -} \ No newline at end of file + min-height: 25px; + padding-top: 9px; + font-size: 0.85em; +} diff --git a/website_default_code_product/views/website_default_code_product_views.xml b/website_default_code_product/views/website_default_code_product_views.xml index c2416ae690..1827eef14e 100644 --- a/website_default_code_product/views/website_default_code_product_views.xml +++ b/website_default_code_product/views/website_default_code_product_views.xml @@ -1,14 +1,18 @@ - +