Community mailing list archives
Re: multi-lang accountingby
Thanks for your help.
I'm working on the l10n_us CoA trying to make it multi-lang .
If anyone have it already plz share .
and if no I will share it when I finish .
On 06/26/2015 12:27 PM, Martin Trigaux wrote:<blockquote cite="mid:558D27AB.email@example.com" type="cite">
Hello, See my replies below. On 26/06/15 02:53, Mohamed M. Hagag wrote: > > I tried the l10n_be and l10n_ch with the following procedure: > > 1- install be and ch CoA templates You can use the wizard at installation of accounting module but ok. > 2- first modify the account chart templates to include en_US in > spoken_languages You are doing two tricky things here: 1. adding a new language manually in spoken_languages 2. using en_US as the new language spoken_languages allows you to use the *.templates (account, tax, journals) for the main objects. But to do so, you first need to have a translations for the templates. So if you add a language, you need to have .po translations for templates in the db (so having a .po file for these lang when installing the l10n_* module). Moreover en_US is considered as the main language of Odoo and often as no languages. Using it works but it's adding a level of complexity so I wouldn't advise it for your tests. > 3- configure the company CoA to install accounts > > as the CoA templates depends on the l10n_multilang we expect that all > account.account,name entries got generated with at least the src = value > in the ir_translation table but this doesn't happen I guess because you had no translations for the templates objects in en_US in your database when generating the accounts. Otherwise, it would have copied it (skipping when not found). > does anyone get a multi-lang CoA working and how to do ? It works for both modules l10n_be and l10n_ch in the languages the module was translated. If now you want to add a language in an existent multilang localisation (let say add German into l10n_be), you simply need to: 1. add de_DE in spoken_language (here in l10n_be/account_chart_template.yml) 2. create a new de.po file containing German translations of *templates* object (and put it in l10n_be/i18n_extra/) 3. load these translations into the db (at install or upgrade of the module or language) -- Martin Trigaux Odoo (Formerly OpenERP) https://odoo.com https://github.com/mart-e