From 8ccdb3c75ebc80fcea628406090784183a64b3eb Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Wed, 9 Jul 2008 17:55:23 +0000 Subject: [PATCH] Imrpovement in wizards bzr revid: fp@tinyerp.com-60cd6fa546623497dc251ac5ac0b68a87826740d --- addons/account/account.py | 5 ++-- addons/account/account_view.xml | 9 ++++---- addons/base_setup/wizard/wizard_base_setup.py | 10 ++++---- addons/profile_service/profile_service.py | 6 ++--- addons/profile_service/profile_service.xml | 23 ++++++------------- 5 files changed, 23 insertions(+), 30 deletions(-) diff --git a/addons/account/account.py b/addons/account/account.py index 75605c1ab14..6eade89acfa 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -1548,10 +1548,11 @@ class account_config_fiscalyear(osv.osv_memory): _columns = { 'name':fields.char('Name', required=True,size=64), 'code':fields.char('Code', required=True,size=64), - 'date1': fields.date('Start of period', required=True), - 'date2': fields.date('End of period', required=True), + 'date1': fields.date('Starting Date', required=True), + 'date2': fields.date('Ending Date', required=True), } _defaults = { + 'code': lambda *a: time.strftime('%Y'), 'date1': lambda *a: time.strftime('%Y-01-01'), 'date2': lambda *a: time.strftime('%Y-12-31'), } diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml index c2048603c14..59ec5f8133c 100644 --- a/addons/account/account_view.xml +++ b/addons/account/account_view.xml @@ -1401,15 +1401,16 @@ account.config.fiscalyear form -
- - + + + +