From 11a2a077af09327800da88de33bde0e213e8a42e Mon Sep 17 00:00:00 2001 From: "sbh (Open ERP)" Date: Tue, 22 Jun 2010 11:31:08 +0530 Subject: [PATCH 01/22] [Add] product_expiry: Add the security rules bzr revid: sbh@tinyerp.com-20100622060108-vb39jarhk3uoulfv --- addons/product_expiry/__terp__.py | 6 +++++- addons/product_expiry/security/ir.model.access.csv | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 addons/product_expiry/security/ir.model.access.csv diff --git a/addons/product_expiry/__terp__.py b/addons/product_expiry/__terp__.py index 2e44f2c6462..fd95b310ad1 100644 --- a/addons/product_expiry/__terp__.py +++ b/addons/product_expiry/__terp__.py @@ -31,7 +31,11 @@ - removal date - alert date Used, for example, in food industries.''', - "update_xml" : ["product_expiry_view.xml", "report/report_stock_view.xml", "wizard/stock_partial_view.xml"], + "update_xml" : [ + 'security/ir.model.access.csv', + "product_expiry_view.xml", + "report/report_stock_view.xml", + "wizard/stock_partial_view.xml"], "active": False, "installable": True } diff --git a/addons/product_expiry/security/ir.model.access.csv b/addons/product_expiry/security/ir.model.access.csv new file mode 100644 index 00000000000..76e47953190 --- /dev/null +++ b/addons/product_expiry/security/ir.model.access.csv @@ -0,0 +1,3 @@ +"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink" +"access_stock_report_prodlots1_manager","stock.report.prodlots1","model_stock_report_prodlots1","product.group_product_manager",1,1,1,1 +"access_stock_report_prodlots1_user","stock.report.prodlots1","model_stock_report_prodlots1","base.group_user",1,0,0,0 From bcc7299d52afb3d02f944a08085d53e287706d15 Mon Sep 17 00:00:00 2001 From: "sbh (Open ERP)" Date: Tue, 22 Jun 2010 11:38:59 +0530 Subject: [PATCH 02/22] [IMP] product_expiry: rename the __terp__.py to __openerp__.py bzr revid: sbh@tinyerp.com-20100622060859-9jt7eub0ik1sc0pl --- addons/product_expiry/{__terp__.py => __openerp__.py} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename addons/product_expiry/{__terp__.py => __openerp__.py} (100%) diff --git a/addons/product_expiry/__terp__.py b/addons/product_expiry/__openerp__.py similarity index 100% rename from addons/product_expiry/__terp__.py rename to addons/product_expiry/__openerp__.py From 8e1638cbec5f1cd9e4ba3f745cbd944025eec49b Mon Sep 17 00:00:00 2001 From: "sbh (Open ERP)" Date: Tue, 22 Jun 2010 12:15:50 +0530 Subject: [PATCH 03/22] [Fix] product_expiry: Fix the xpath for split_in_lots bzr revid: sbh@tinyerp.com-20100622064550-hxv2ctsl083q5dka --- addons/product_expiry/wizard/stock_partial_view.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/product_expiry/wizard/stock_partial_view.xml b/addons/product_expiry/wizard/stock_partial_view.xml index b42ea07ba40..d48a95c189c 100644 --- a/addons/product_expiry/wizard/stock_partial_view.xml +++ b/addons/product_expiry/wizard/stock_partial_view.xml @@ -9,10 +9,10 @@ - + - + From 752bce134a250f48701c6b7f9832011014cd1a80 Mon Sep 17 00:00:00 2001 From: "sbh (Open ERP)" Date: Tue, 22 Jun 2010 12:27:06 +0530 Subject: [PATCH 04/22] [Fix] product_margin: Add security file bzr revid: sbh@tinyerp.com-20100622065706-0luisuoaildqmil3 --- addons/product_margin/__openerp__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/addons/product_margin/__openerp__.py b/addons/product_margin/__openerp__.py index 7607c499add..e80f14ae490 100644 --- a/addons/product_margin/__openerp__.py +++ b/addons/product_margin/__openerp__.py @@ -31,7 +31,10 @@ the report has several options to help you get the data you need. """, 'author': 'Tiny', 'depends': ['base', 'product', 'account'], - 'update_xml': ['wizard/product_margin_view.xml','product_margin_view.xml'], + 'update_xml': [ + 'security/ir.model.access.csv', + 'wizard/product_margin_view.xml', + 'product_margin_view.xml'], 'demo_xml': [], 'installable': True, 'active': False, From bf774ceea2867eb41762cf747c6cdd1bd512d02a Mon Sep 17 00:00:00 2001 From: "sbh (Open ERP)" Date: Tue, 22 Jun 2010 12:33:20 +0530 Subject: [PATCH 05/22] [Add] stock: Add the security rules for stock_picking_report bzr revid: sbh@tinyerp.com-20100622070320-808un5lxuu0srgo6 --- addons/stock/security/ir.model.access.csv | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/stock/security/ir.model.access.csv b/addons/stock/security/ir.model.access.csv index 7ecb0b833e9..9255c8967dd 100644 --- a/addons/stock/security/ir.model.access.csv +++ b/addons/stock/security/ir.model.access.csv @@ -53,3 +53,4 @@ "access_stock_ups_upload","stock.ups.upload","model_stock_ups_upload","stock.group_stock_user",1,1,1,1 "access_stock_split_into","stock.split.into","model_stock_split_into","stock.group_stock_user",1,1,1,0 "access_stock_split_into_manager","stock.split.into","model_stock_split_into","stock.group_stock_manager",1,1,1,1 +"access_report_stock_picking","report.stock.picking","model_report_stock_picking","stock.group_stock_manager",1,1,1,1 From f174d10f88d1d252676267128d1c99fee1cda798 Mon Sep 17 00:00:00 2001 From: "sbh (Open ERP)" Date: Tue, 22 Jun 2010 13:00:24 +0530 Subject: [PATCH 06/22] [IMP] stock_planning: Improve the view bzr revid: sbh@tinyerp.com-20100622073024-yz0zt7sbsol9qlwn --- addons/stock_planning/stock_planning_view.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/addons/stock_planning/stock_planning_view.xml b/addons/stock_planning/stock_planning_view.xml index 49b384794f2..bb63cd6973b 100644 --- a/addons/stock_planning/stock_planning_view.xml +++ b/addons/stock_planning/stock_planning_view.xml @@ -152,7 +152,9 @@ -