From 793939c71cbdacf33ce4e820d2819d0a56420f5f Mon Sep 17 00:00:00 2001 From: Antony Lesuisse Date: Mon, 30 Apr 2012 03:02:09 +0200 Subject: [PATCH] better preferences, remove base_update.xml move all company and user views/actions into the right files bzr revid: al@openerp.com-20120430010209-fnmrh7q043qe0vbj --- openerp/addons/base/__openerp__.py | 3 +- openerp/addons/base/ir/ir.xml | 85 +------ openerp/addons/base/res/res_bank_view.xml | 58 ++--- openerp/addons/base/res/res_company_view.xml | 119 ++++++++- .../res_users_view.xml} | 225 ++++++------------ 5 files changed, 215 insertions(+), 275 deletions(-) rename openerp/addons/base/{base_update.xml => res/res_users_view.xml} (55%) diff --git a/openerp/addons/base/__openerp__.py b/openerp/addons/base/__openerp__.py index 393e7651bda..862482736a0 100644 --- a/openerp/addons/base/__openerp__.py +++ b/openerp/addons/base/__openerp__.py @@ -39,7 +39,6 @@ 'data/res.country.state.csv' ], 'update_xml': [ - 'base_update.xml', 'ir/wizard/wizard_menu_view.xml', 'ir/ir.xml', 'ir/ir_config_parameter_view.xml', @@ -56,6 +55,7 @@ 'module/wizard/base_module_configuration_view.xml', 'module/wizard/base_export_language_view.xml', 'module/wizard/base_update_translations_view.xml', + 'res/res_company_view.xml', 'res/res_request_view.xml', 'res/res_lang_view.xml', 'res/res_partner_report.xml', @@ -65,6 +65,7 @@ 'res/res_country_view.xml', 'res/res_currency_view.xml', 'res/res_partner_event_view.xml', + 'res/res_users_view.xml', 'res/wizard/partner_sms_send_view.xml', 'res/wizard/partner_wizard_massmail_view.xml', 'res/wizard/partner_clear_ids_view.xml', diff --git a/openerp/addons/base/ir/ir.xml b/openerp/addons/base/ir/ir.xml index 81c7cade5d0..afd6e60847b 100644 --- a/openerp/addons/base/ir/ir.xml +++ b/openerp/addons/base/ir/ir.xml @@ -684,87 +684,7 @@ - - - - - Company's Structure - ir.actions.act_window - res.company - [('parent_id','=',False)] - tree - - - - Companies - ir.actions.act_window - res.company - form - Create and manage the companies that will be managed by OpenERP from here. Shops or subsidiaries can be created and maintained from here. - - - - - - Users - ir.actions.act_window - res.users - form - - - Create and manage users that will connect to the system. Users can be deactivated should there be a period of time during which they will/should not connect to the system. You can assign them groups in order to give them specific access to the applications they need to use in the system. - - - - tree - - - - - - form - - - - - - - - Change My Preferences - ir.actions.act_window - res.users - form - form,tree - [('id','=',uid)] - - - - tree - - - - - form - - - - - - Groups - ir.actions.act_window - res.groups - form - A group is a set of functional areas that will be assigned to the user in order to give them access and rights to specific applications and tasks in the system. You can create custom groups or edit the ones existing by default in order to customize the view of the menu that users will be able to see. Whether they can have a read, write, create and delete access right can be managed from here. - - @@ -1992,6 +1912,11 @@ + + Administration + 1 + + Sales Management 5 diff --git a/openerp/addons/base/res/res_bank_view.xml b/openerp/addons/base/res/res_bank_view.xml index 6f6fc663f1c..ecbf887acdf 100644 --- a/openerp/addons/base/res/res_bank_view.xml +++ b/openerp/addons/base/res/res_bank_view.xml @@ -1,8 +1,7 @@ - - + res.bank.form res.bank @@ -33,7 +32,6 @@ - res.bank.tree res.bank @@ -46,7 +44,6 @@ - Banks res.bank @@ -54,11 +51,7 @@ tree,form Manage bank records you want to be used in the system. - - - + @@ -74,7 +67,6 @@ - res.partner.bank.type.tree res.partner.bank.type @@ -87,7 +79,6 @@ - res.partner.bank.form res.partner.bank @@ -97,7 +88,7 @@ - + @@ -121,24 +112,6 @@ - - - res.partner.bank.search - res.partner.bank - search - - - - - - - - - - - - - res.partner.bank.tree res.partner.bank @@ -148,20 +121,34 @@ - - + + - + + res.partner.bank.search + res.partner.bank + search + + + + + + + + + + + Bank Accounts res.partner.bank form tree,form + Configure your company's bank accounts and select those that must appear on the report footer. You can reorder bank accounts from the list view. If you use the accounting application of OpenERP, journals and accounts will be created automatically based on these data. - form tree,form - diff --git a/openerp/addons/base/res/res_company_view.xml b/openerp/addons/base/res/res_company_view.xml index 0d227e3265c..6c9d827101c 100644 --- a/openerp/addons/base/res/res_company_view.xml +++ b/openerp/addons/base/res/res_company_view.xml @@ -1,6 +1,114 @@ + + + + + + + Company Bank Accounts + res.partner.bank + form + tree,form + + + + res.company.form + res.company + form + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +