In the French plan, there are unfortunately 7 instances of 
account_account_type_template
with the name 'Autres'... but in the xml, there are indeed unique ID's...

Is the mapping of these (xml id => sql id) stored somewhere it can be accessed
to somehow facilitate import?  That is, it would be very useful to be able to
use the xml id in import_data as unique label for the sql id.

Example:
id,name,active,code,kind,parent,party_required,reconcile,deferral,type
409600,Fournisseurs - Créances pour emballages et matériel à 
rendre,True,409600,other,4096,True,True,True,Autres

If I try this, the import fails because there are :
7 instances of account types with the name 'Autres'.

Currently, I have locally changed line 180 in account_fr.xml from :
    <field name="name">Autres</field>
to
    <field name="name">Autres créances</field>
and updated my csv for import accordingly.

Alternately, all the account types names must be made unique (in conformance to 
the xml id).
If this is the only solution, please confirm and I'll file an issue with a 
suggested patch.

BTW, this happens to be an example of manually adding the account padded with
zeros to 6 places as I can't seem to get a working trytond-account_code_digits
with account_fr on 4.6 (or default).  There are other cases as well.

--

Richard PALO

--
You received this message because you are subscribed to the Google Groups 
"tryton-dev" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton-dev/bb88ca9a-ddc0-2da3-9cd2-100a4458cba6%40netbsd.org.

Reply via email to