[Erp5-dev] translating accounting transaction lines
Yoshinori Okuji
yo at nexedi.com
Sat Jan 21 21:16:35 CET 2006
On Saturday 21 January 2006 21:09, Bartłomiej Górny wrote:
> Hi
>
> For Polish accounting, I needed to translate labels of transaction lines
> (like 'income', 'collected_vat' etc.). At the moment they do not
> translate, since they are only raw ids of the line objects.
>
> The solution I came up with was to change SaleInvoiceTransaction_init so
> that it does:
>
> transaction.newContent(portal_type='Sale Invoice Transaction Line',
> id='income',
> title='income',
> quantity=0,
> immediate_reindex=1)
>
> and to change listbox cols in transaction view so that it displays
> translated_title instead of id.
For the title, please use Income instead of income. Please consult the naming
conventions for more information.
> Is it ok? If so, do you want patches to transactions init scripts and
> views?
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.
YO
--
Yoshinori Okuji, Nexedi Research Director
Nexedi: Consulting and Development of Free / Open Source Software
http://www.nexedi.com
ERP5: Free / Open Source ERP Software for small and medium companies
http://www.erp5.org
Storever: OpenBrick, WiFi infrastructure, notebooks and servers
http://www.storever.com
More information about the Erp5-dev
mailing list