From 823d09e98f659b642572950f786cc4d790f3c27d Mon Sep 17 00:00:00 2001 From: Mohssin Bouktaib Date: Thu, 23 Jan 2025 11:25:18 +0100 Subject: [PATCH] [IMP] product_state: fix issue with access rule and missing dependency --- product_state/README.rst | 26 +++++++++++----------- product_state/__manifest__.py | 2 +- product_state/security/ir.model.access.csv | 8 +++---- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/product_state/README.rst b/product_state/README.rst index 07849941b00..04e09ef5a50 100644 --- a/product_state/README.rst +++ b/product_state/README.rst @@ -31,10 +31,10 @@ Product State This module introduces the state field on product template and allows simple product life cycle: -- draft: In Development -- sellable: Normal -- end: End of Lifecycle -- obsolete: Obsolete +- draft: In Development +- sellable: Normal +- end: End of Lifecycle +- obsolete: Obsolete **Table of contents** @@ -76,15 +76,15 @@ Authors Contributors ------------ -- Cedric Pigeon -- Alexandre Saunier -- Nikul Chaudhary -- Eduardo Magdalena (C2i Change 2 improve - http://www.c2i.es) -- Andrii Skrypka -- Denis Roussel -- Riccardo Fresco -- Nils Coenen +- Cedric Pigeon +- Alexandre Saunier +- Nikul Chaudhary +- Eduardo Magdalena (C2i Change 2 improve + http://www.c2i.es) +- Andrii Skrypka +- Denis Roussel +- Riccardo Fresco +- Nils Coenen Maintainers ----------- diff --git a/product_state/__manifest__.py b/product_state/__manifest__.py index 4379064c120..09658ff0d91 100644 --- a/product_state/__manifest__.py +++ b/product_state/__manifest__.py @@ -9,7 +9,7 @@ "category": "Product", "version": "17.0.1.1.0", "license": "AGPL-3", - "depends": ["product", "sale"], + "depends": ["product", "sale", "stock"], "data": [ "data/product_state_data.xml", "security/ir.model.access.csv", diff --git a/product_state/security/ir.model.access.csv b/product_state/security/ir.model.access.csv index 523e15ff1e8..d25f284db4f 100644 --- a/product_state/security/ir.model.access.csv +++ b/product_state/security/ir.model.access.csv @@ -1,4 +1,4 @@ -"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink" -"access_product_state_sale_manager","product.state","model_product_state","sales_team.group_sale_manager",1,1,1,1 -"access_product_state_stock_manager","product.state","model_product_state","stock.group_stock_manager",1,1,1,1 -"access_product_state_public","product.state.public","model_product_state",,1,0,0,0 +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_product_state_sale_manager,product.state,model_product_state,sales_team.group_sale_manager,1,1,1,1 +access_product_state_stock_manager,product.state,model_product_state,stock.group_stock_manager,1,1,1,1 +access_product_state_public,product.state.public,model_product_state,base.group_user,1,0,0,0