[Erp5-dev] translating accounting transaction lines

Jean-Paul Smets jp at nexedi.com
Mon Jan 23 10:30:32 CET 2006


Le Samedi 21 Janvier 2006 22:23, Yoshinori Okuji a écrit :
> On Saturday 21 January 2006 22:03, Bartłomiej Górny wrote:
> > > This is not required for your purpose, but personally I think it
> > > would be better to specify income to reference rather than id. But
> > > this would require modifying some scripts.
> >
> > I'm afraid I don't understand... Could you elaborate?
>
> Only the accounting transaction lines use "id" to specify the
> purpose/indications of the objects. This looks inconsistent to me.
> Usually, we use the property "reference" or a category to refer to a
> certain object, so I prefer to change the implementation.

I do not agree. IDs are used in other places to specify the purpose of an 
object (ex. default_career, default_address), etc. In a sense, IDs are also 
used to name properties of an object (this is a troll).

I think it is useful to access an object by id, including for accounting. 
(However, I think ids should be hidden and must be not be translated).

If you think about redesigning this, please consider other cases (default 
phone, default picture of a person, default task line in a task, default 
documentation file for a product) and the impact on performance of using 
references in those cases (10 object lookups in avge instead of 1).

JPS.

-- 
Jean-Paul Smets-Solanes, Nexedi CEO - Tel. +33(0)6 62 05 76 14
Nexedi: Consulting and Development of Libre / Open Source Software
http://www.nexedi.com
ERP5: Libre/ Open Source ERP Software for small and medium companies
http://www.erp5.org
Rentalinux: Desktop Linux Server
http://www.rentalinux.com



More information about the Erp5-dev mailing list