From afcbd6a41122c2360bdaca4bcf09802dbb8526d3 Mon Sep 17 00:00:00 2001 From: Elmer Garcia Yavi Date: Mon, 16 Oct 2023 09:46:12 +0200 Subject: [PATCH] [ADD] website_default_code_product: display the default code attribute of the product in both the GRID/LIST views and the product details --- website_default_code_product/README.rst | 4 ++++ website_default_code_product/__init__.py | 0 website_default_code_product/__manifest__.py | 19 +++++++++++++++++++ .../scss/website_default_code_product.scss | 3 +++ .../website_default_code_product_views.xml | 14 ++++++++++++++ 5 files changed, 40 insertions(+) create mode 100644 website_default_code_product/README.rst create mode 100644 website_default_code_product/__init__.py create mode 100644 website_default_code_product/__manifest__.py create mode 100644 website_default_code_product/static/src/scss/website_default_code_product.scss create mode 100644 website_default_code_product/views/website_default_code_product_views.xml diff --git a/website_default_code_product/README.rst b/website_default_code_product/README.rst new file mode 100644 index 0000000000..6f37c4d240 --- /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. \ No newline at end of file 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..492a2367d6 --- /dev/null +++ b/website_default_code_product/__manifest__.py @@ -0,0 +1,19 @@ +{ + "name": "Website Default Code Product", + "category": "Website", + "version": "16.0.1.0.0", + 'author': "ForgeFlow", + "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, +} \ 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 new file mode 100644 index 0000000000..f5260b5046 --- /dev/null +++ b/website_default_code_product/static/src/scss/website_default_code_product.scss @@ -0,0 +1,3 @@ +.product_default_code { + min-height: 20px; +} \ No newline at end of file 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..c2416ae690 --- /dev/null +++ b/website_default_code_product/views/website_default_code_product_views.xml @@ -0,0 +1,14 @@ + + + + + +