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 new file mode 100644 index 0000000000..8b0ae6aa31 --- /dev/null +++ b/website_default_code_product/README.rst @@ -0,0 +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. diff --git a/website_default_code_product/__init__.py b/website_default_code_product/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/website_default_code_product/__manifest__.py b/website_default_code_product/__manifest__.py new file mode 100644 index 0000000000..a0f017303c --- /dev/null +++ b/website_default_code_product/__manifest__.py @@ -0,0 +1,18 @@ +{ + "name": "Website Default Code Product", + "category": "Website", + "version": "16.0.1.0.0", + "website": "https://github.com/OCA/website", + "author": "ForgeFlow, Odoo Community Association (OCA)", + "license": "LGPL-3", + "depends": ["website_sale"], + "data": [ + "views/website_default_code_product_views.xml", + ], + "assets": { + "web.assets_frontend": [ + "website_default_code_product/static/src/scss/website_default_code_product.scss", + ], + }, + "installable": True, +} 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 new file mode 100644 index 0000000000..a75661457e --- /dev/null +++ b/website_default_code_product/static/src/scss/website_default_code_product.scss @@ -0,0 +1,5 @@ +.product_default_code { + 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 new file mode 100644 index 0000000000..1827eef14e --- /dev/null +++ b/website_default_code_product/views/website_default_code_product_views.xml @@ -0,0 +1,18 @@ + + + + + +