[tryton-dev] pg_repack (resend)

2018-04-18 Thread Richard PALO

I'm curious if anybody has tried and been able to get pg_repack 
(http://reorg.github.io/pg_repack/)
working on a tryton db...

cheers
--

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/b1278bfb-31b8-714d-19c4-d2a63b93ec92%40netbsd.org.


[tryton-dev] import_data and model account with account_account_type (RESEND)

2018-04-18 Thread Richard PALO

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 :

Autres

to

Autres créances

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.