Maintainers
This module is maintained by the OCA.
- + + +OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.
diff --git a/product_code_unique/README.rst b/product_code_unique/README.rst index 0b2febb81cf..a7066e52903 100644 --- a/product_code_unique/README.rst +++ b/product_code_unique/README.rst @@ -7,7 +7,7 @@ Unique Product Internal Reference !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:0ddeb0b9117bb302c5a68a2dda8c822ed2138d1ba8088082b2443fa10dfd2e6e + !! source digest: sha256:9e0d608757e663ba1ac9605b6f3947b48da01b80dd8d2abacd92db4c7116608b !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/product_code_unique/__manifest__.py b/product_code_unique/__manifest__.py index f851e0af81b..d873353e018 100644 --- a/product_code_unique/__manifest__.py +++ b/product_code_unique/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Unique Product Internal Reference", "summary": "Set Product Internal Reference as Unique", - "version": "16.0.1.0.1", + "version": "17.0.1.0.0", "license": "AGPL-3", "author": "Open Source Integrators, Odoo Community Association (OCA)", "category": "Product", diff --git a/product_code_unique/hook.py b/product_code_unique/hook.py index 33d6127d0b5..7396424779e 100644 --- a/product_code_unique/hook.py +++ b/product_code_unique/hook.py @@ -2,8 +2,8 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -def pre_init_product_code(cr): - cr.execute( +def pre_init_product_code(env): + env.cr.execute( """UPDATE product_product SET default_code = 'DEFAULT' || nextval('ir_default_id_seq') WHERE id in (SELECT distinct(pp.id) diff --git a/product_code_unique/i18n/product_code_unique.pot b/product_code_unique/i18n/product_code_unique.pot index 6bbc44fae91..ebd85d91016 100644 --- a/product_code_unique/i18n/product_code_unique.pot +++ b/product_code_unique/i18n/product_code_unique.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 16.0\n" +"Project-Id-Version: Odoo Server 17.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: \n" "Language-Team: \n" diff --git a/product_code_unique/static/description/index.html b/product_code_unique/static/description/index.html index 592fe4cd7ab..580357f44b6 100644 --- a/product_code_unique/static/description/index.html +++ b/product_code_unique/static/description/index.html @@ -1,4 +1,3 @@ -
@@ -9,10 +8,11 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ +:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. +Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. @@ -275,7 +275,7 @@ margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: grey; } /* line numbers */ +pre.code .ln { color: gray; } /* line numbers */ pre.code, code { background-color: #eeeeee } pre.code .comment, code .comment { color: #5C6576 } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } @@ -301,7 +301,7 @@ span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -367,7 +367,7 @@This module adds a constraint on the internal reference of the product @@ -433,7 +433,9 @@
This module is maintained by the OCA.
- + + +OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.