From d7c1fcbf7b7e33eb09c1bfd2bae0a8359d3b23df Mon Sep 17 00:00:00 2001 From: "nch@tinyerp.com" <> Date: Thu, 13 May 2010 17:20:52 +0530 Subject: [PATCH] [IMP]:configuration wizards bzr revid: nch@tinyerp.com-20100513115052-vwsyu8s8tutpxprx --- addons/account/account_installer.xml | 20 ++++++++++---------- addons/account/installer.py | 7 +++++-- addons/base_setup/base_setup_todo.xml | 23 ++++++++++++----------- addons/base_setup/gtk_contact_form.py | 3 ++- addons/base_setup/gtk_contact_form.xml | 6 ++++-- addons/base_setup/todo.py | 8 ++++++-- 6 files changed, 39 insertions(+), 28 deletions(-) diff --git a/addons/account/account_installer.xml b/addons/account/account_installer.xml index d3a6ce979a6..4c6faae9e19 100644 --- a/addons/account/account_installer.xml +++ b/addons/account/account_installer.xml @@ -29,30 +29,30 @@ - - - + + + + + -
+ - +
- - - - - + + + diff --git a/addons/account/installer.py b/addons/account/installer.py index de557cd51a0..44eb081d7be 100644 --- a/addons/account/installer.py +++ b/addons/account/installer.py @@ -44,7 +44,7 @@ class account_installer(osv.osv_memory): sorted(((m.name, m.shortdesc) for m in modules.browse(cr, uid, ids)), key=itemgetter(1))) - charts.insert(0,('configurable','Configurable Chart of Account')) + charts.insert(0,('configurable','Generic Chart Of Account')) return charts _columns = { @@ -81,10 +81,13 @@ class account_installer(osv.osv_memory): 'period':lambda *a:'month', 'sale_tax':lambda *a:0.0, 'purchase_tax':lambda *a:0.0, - 'charts':'configurable', + #'charts':'configurable', 'bank_accounts_id':_get_default_accounts } + def on_change_tax(self, cr, uid, id, tax): + return{'value':{'purchase_tax':tax}} + def on_change_start_date(self, cr, uid, id, start_date): if start_date: start_date = datetime.datetime.strptime(start_date, "%Y-%m-%d") diff --git a/addons/base_setup/base_setup_todo.xml b/addons/base_setup/base_setup_todo.xml index b348b0c8a60..97c9ea0d301 100644 --- a/addons/base_setup/base_setup_todo.xml +++ b/addons/base_setup/base_setup_todo.xml @@ -17,33 +17,34 @@ Configure Your Company - 23 + 25 - - - - + + + - - + + + + - - - + + + - diff --git a/addons/base_setup/gtk_contact_form.py b/addons/base_setup/gtk_contact_form.py index 354080df451..c13ae39aee3 100644 --- a/addons/base_setup/gtk_contact_form.py +++ b/addons/base_setup/gtk_contact_form.py @@ -70,7 +70,8 @@ class base_gtkcontactform(osv.osv_memory): 'training':fields.boolean('OpenERP Training Program'), 'other':fields.boolean('Other'), 'ebook':fields.boolean('ebook'), - 'updates':fields.boolean('updates'), + 'updates':fields.boolean('Updates'), + 'contact_me':fields.boolean('Contact Me'), } def execute(self, cr, uid, ids, context=None): company_id = self.pool.get('base.setup.company').search(cr, uid, []) diff --git a/addons/base_setup/gtk_contact_form.xml b/addons/base_setup/gtk_contact_form.xml index f833f7051d6..c5578f9bc9a 100644 --- a/addons/base_setup/gtk_contact_form.xml +++ b/addons/base_setup/gtk_contact_form.xml @@ -14,7 +14,7 @@ Information about you and the company you are related too. The Basic information related to the company has already been collected and some more information required by you to fill. - Do You Need Them ? + Would you like more information or documentation ? 4 @@ -24,6 +24,8 @@ + +