From fa8274e0380eacc72bd99f0540d1a827e5675704 Mon Sep 17 00:00:00 2001 From: "qdp-launchpad@tinyerp.com" <> Date: Thu, 25 Nov 2010 15:36:41 +0100 Subject: [PATCH] [IMP] account: set the journal code size to 5 chars max in order to improve the reports (smaller column for this field without any risk) bzr revid: qdp-launchpad@tinyerp.com-20101125143641-02t6o55nxg396rk5 --- addons/account/account.py | 2 +- addons/account/demo/account_minimal.xml | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/addons/account/account.py b/addons/account/account.py index 485b085fbbe..f557861700e 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -585,7 +585,7 @@ class account_journal(osv.osv): _description = "Journal" _columns = { 'name': fields.char('Journal Name', size=64, required=True, translate=True), - 'code': fields.char('Code', size=16, required=True, help="The code will be used to generate the numbers of the journal entries of this journal."), + 'code': fields.char('Code', size=5, required=True, help="The code will be used to generate the numbers of the journal entries of this journal."), 'type': fields.selection([('sale', 'Sale'),('sale_refund','Sale Refund'), ('purchase', 'Purchase'), ('purchase_refund','Purchase Refund'), ('cash', 'Cash'), ('bank', 'Bank and Cheques'), ('general', 'General'), ('situation', 'Opening/Closing Situation')], 'Type', size=32, required=True, help="Select 'Sale' for Sale journal to be used at the time of making invoice."\ " Select 'Purchase' for Purchase Journal to be used at the time of approving purchase order."\ diff --git a/addons/account/demo/account_minimal.xml b/addons/account/demo/account_minimal.xml index 10f2df28605..871ef514836 100644 --- a/addons/account/demo/account_minimal.xml +++ b/addons/account/demo/account_minimal.xml @@ -342,7 +342,7 @@ Sales Journal - (test) - SAJ - (test) + TSAJ sale @@ -353,7 +353,7 @@ Sales Credit Note Journal - (test) - SCNJ - (test) + TSCNJ sale_refund @@ -366,7 +366,7 @@ Expenses Journal - (test) - EXJ - (test) + TEXJ purchase @@ -377,7 +377,7 @@ Expenses Credit Notes Journal - (test) - ECNJ - (test) + TECNJ purchase_refund @@ -390,7 +390,7 @@ Bank Journal - (test) - BNK - (test) + TBNK bank @@ -401,7 +401,7 @@ Checks Journal - (test) - CHK - (test) + TCHK bank @@ -412,7 +412,7 @@ Cash Journal - (test) - CSH - (test) + TCSH cash