From 438dcbeaf03028fa9c8fa9ca1f2bf9b4ee8f43a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phan=20Sainl=C3=A9ger?= Date: Sun, 29 Mar 2026 15:47:58 +0200 Subject: [PATCH] [MIG] sale_disable_product_creation_in_sale: migration to 18.0 --- .../README.md | 42 ++++++++++++++++ .../README.rst | 50 ------------------- .../__manifest__.py | 2 +- .../views/sale_order_views.xml | 2 +- 4 files changed, 44 insertions(+), 52 deletions(-) create mode 100644 sale_disable_product_creation_in_sale/README.md delete mode 100644 sale_disable_product_creation_in_sale/README.rst diff --git a/sale_disable_product_creation_in_sale/README.md b/sale_disable_product_creation_in_sale/README.md new file mode 100644 index 0000000..59a21a1 --- /dev/null +++ b/sale_disable_product_creation_in_sale/README.md @@ -0,0 +1,42 @@ +# Sale - Disable Product Creation in Sale + +Prevents users from creating new products directly from sale order lines. + +## Description + +By default, Odoo allows users to create new products on-the-fly when filling +in sale order lines via the *Product* field. This can lead to duplicate or +poorly configured products when the catalog should be managed centrally. + +This module adds the `no_create` option to the `product_template_id` field in +the sale order line tree view, so users can only select existing products from +the catalog. + +## Usage + +Once installed, the *Create and edit…* and *Create* options are removed from +the product dropdown in sale order lines. Users must pick a product that +already exists in the product catalog. + +No configuration is required. + +## Installation + +Install via the standard Odoo module installation procedure. + +**Dependencies:** `base`, `sale` + +## Credits + +### Authors + +- [Elabore](https://elabore.coop) + +### Maintainer + +This module is maintained by [Elabore](https://elabore.coop). + +## License + +This module is licensed under **AGPL-3**. See the [LICENSE](LICENSE) file for +full details. diff --git a/sale_disable_product_creation_in_sale/README.rst b/sale_disable_product_creation_in_sale/README.rst deleted file mode 100644 index 2b12d6e..0000000 --- a/sale_disable_product_creation_in_sale/README.rst +++ /dev/null @@ -1,50 +0,0 @@ -=============== -sale_usability_misc -=============== - -Various improves for Sales app - -Installation -============ - -Use Odoo normal module installation procedure to install -``sale_usability_misc``. - -Description -=========== - -- Allow group sales administores to see date_order field event if not in developper mode - - -Known issues / Roadmap -====================== - -None yet. - -Bug Tracker -=========== - -Bugs are tracked on `our issues website `_. In case of -trouble, please check there if your issue has already been -reported. If you spotted it first, help us smashing it by providing a -detailed and welcomed feedback. - -Credits -======= - -Contributors ------------- - -* `Elabore ` - -Funders -------- - -The development of this module has been financially supported by: -* Elabore (https://elabore.coop) - - -Maintainer ----------- - -This module is maintained by Elabore. \ No newline at end of file diff --git a/sale_disable_product_creation_in_sale/__manifest__.py b/sale_disable_product_creation_in_sale/__manifest__.py index 147e7b2..1ae1c96 100644 --- a/sale_disable_product_creation_in_sale/__manifest__.py +++ b/sale_disable_product_creation_in_sale/__manifest__.py @@ -3,7 +3,7 @@ { "name": "sale_disable_product_creation_in_sale", - "version": "16.0.1.0.0", + "version": "18.0.1.0.0", "author": "Elabore", "website": "https://elabore.coop", "maintainer": "Elabore", diff --git a/sale_disable_product_creation_in_sale/views/sale_order_views.xml b/sale_disable_product_creation_in_sale/views/sale_order_views.xml index 05193b8..c474e49 100644 --- a/sale_disable_product_creation_in_sale/views/sale_order_views.xml +++ b/sale_disable_product_creation_in_sale/views/sale_order_views.xml @@ -6,7 +6,7 @@ sale.order - + {'no_create': True}