From d05a945fc56329a140fef2aafcb15b4146f7c1db Mon Sep 17 00:00:00 2001 From: Vo Minh Thu Date: Thu, 15 Nov 2012 16:25:57 +0100 Subject: [PATCH] [IMP] lunch: removed a few initialization warnings. bzr revid: vmt@openerp.com-20121115152557-3lroffi0dtar3rs4 --- addons/lunch/lunch_demo.xml | 6 ------ addons/lunch/lunch_view.xml | 14 -------------- addons/lunch/security/ir.model.access.csv | 5 ++++- addons/lunch/wizard/lunch_cancel_view.xml | 3 +-- addons/lunch/wizard/lunch_order.py | 2 +- addons/lunch/wizard/lunch_order_view.xml | 1 - addons/lunch/wizard/lunch_validation_view.xml | 1 - 7 files changed, 6 insertions(+), 26 deletions(-) diff --git a/addons/lunch/lunch_demo.xml b/addons/lunch/lunch_demo.xml index a9b03137bf2..9e92291b62d 100644 --- a/addons/lunch/lunch_demo.xml +++ b/addons/lunch/lunch_demo.xml @@ -21,12 +21,10 @@ Coin gourmand - True Pizza Inn - True @@ -106,7 +104,6 @@ new - 1 @@ -114,7 +111,6 @@ confirmed - 1 @@ -122,7 +118,6 @@ cancelled - 1 @@ -175,7 +170,6 @@ Lunch must be ordered before 10h30 am - days diff --git a/addons/lunch/lunch_view.xml b/addons/lunch/lunch_view.xml index 32b978dfab0..ea9356bddc5 100644 --- a/addons/lunch/lunch_view.xml +++ b/addons/lunch/lunch_view.xml @@ -12,7 +12,6 @@ Search lunch.order.line - search @@ -34,7 +33,6 @@ lunch employee payment lunch.cashmove - search @@ -49,7 +47,6 @@ lunch cashmove lunch.cashmove - search @@ -65,7 +62,6 @@ lunch orders lunch.order - search @@ -79,7 +75,6 @@ Search lunch.alert - search @@ -243,7 +238,6 @@ Product category Form lunch.product.category - form
@@ -285,7 +279,6 @@ Order lines Tree lunch.order.line - tree @@ -306,7 +299,6 @@ Orders Tree View lunch.order - tree @@ -360,7 +352,6 @@ Products Tree lunch.product - tree @@ -375,7 +366,6 @@ Products Form lunch.product - form
@@ -398,7 +388,6 @@ cashmove tree lunch.cashmove - tree @@ -412,7 +401,6 @@ cashmove form lunch.cashmove - form @@ -432,7 +420,6 @@ alert tree lunch.alert - tree @@ -446,7 +433,6 @@ alert form lunch.alert - form diff --git a/addons/lunch/security/ir.model.access.csv b/addons/lunch/security/ir.model.access.csv index 026a43e0a61..22966129142 100644 --- a/addons/lunch/security/ir.model.access.csv +++ b/addons/lunch/security/ir.model.access.csv @@ -10,4 +10,7 @@ order_line_user,"Order Line user",model_lunch_order_line,group_lunch_user,1,1,1, cashmove_user,"Cashmove user",model_lunch_cashmove,group_lunch_user,1,0,0,0 product_user,"Product user",model_lunch_product,group_lunch_user,1,0,0,0 product_category_user,"Product category user",model_lunch_product_category,group_lunch_user,1,0,0,0 -alert_user,"Alert user",model_lunch_alert,group_lunch_user,1,0,0,0 \ No newline at end of file +alert_user,"Alert user",model_lunch_alert,group_lunch_user,1,0,0,0 +access_report_order_line,access_report_order_line,model_report_lunch_order_line,,1,1,1,1 +access_lunch_validation,access_lunch_validation,model_lunch_validation,,1,1,1,1 +access_lunch_cancel,access_lunch_cancel,model_lunch_cancel,,1,1,1,1 diff --git a/addons/lunch/wizard/lunch_cancel_view.xml b/addons/lunch/wizard/lunch_cancel_view.xml index 4df5c8739e9..acc0cfc9f13 100644 --- a/addons/lunch/wizard/lunch_cancel_view.xml +++ b/addons/lunch/wizard/lunch_cancel_view.xml @@ -4,7 +4,6 @@ cancel order lines lunch.cancel - form @@ -29,4 +28,4 @@ view_mode="form" target="new" view_type="form" view_id="cancel_order_lines_view"/> - \ No newline at end of file + diff --git a/addons/lunch/wizard/lunch_order.py b/addons/lunch/wizard/lunch_order.py index 20de4adc263..767497bcc4b 100644 --- a/addons/lunch/wizard/lunch_order.py +++ b/addons/lunch/wizard/lunch_order.py @@ -20,7 +20,7 @@ ############################################################################## from osv import osv, fields -class lunch_order_order(osv.Model): +class lunch_order_order(osv.TransientModel): """ lunch order meal """ _name = 'lunch.order.order' _description = 'Wizard to order a meal' diff --git a/addons/lunch/wizard/lunch_order_view.xml b/addons/lunch/wizard/lunch_order_view.xml index 990add2564e..ba2d372a543 100644 --- a/addons/lunch/wizard/lunch_order_view.xml +++ b/addons/lunch/wizard/lunch_order_view.xml @@ -4,7 +4,6 @@ Order meal lunch.order.order - form diff --git a/addons/lunch/wizard/lunch_validation_view.xml b/addons/lunch/wizard/lunch_validation_view.xml index 5e9fb92956f..bec141d2d4a 100644 --- a/addons/lunch/wizard/lunch_validation_view.xml +++ b/addons/lunch/wizard/lunch_validation_view.xml @@ -4,7 +4,6 @@ validate order lines lunch.validation - form