On 2017-06-20 15:10, Richard PALO wrote: > Le 20/06/2017 à 14:27, Cédric Krier a écrit : > > On 2017-06-20 09:08, Richard PALO wrote: > >> Not very fluent in proteus nor the recent ir.sequence usage changes, I'm > >> having difficulty > >> getting a critical portion of the openerp2tryton to work on 4.4... > >> > >> In migrate_party, there is the following code around line 254 (nb:this has > >> been 2to3'd): > >>> # Reset the sequence > >>> configuration = Configuration(1) > >>> configuration.party_sequence.number_next = max( > >>> list(map(int, iter(code2party.keys())))) + 1 > >>> configuration.party_sequence.save() > >>> > >> > >> Unfortunately party_sequence is null and I can't seem to determine the > >> incantation > >> that will fill it in correctly... > > > > Is it also null when using the client? > > Did you do a proper installation? > > > > It appears so. I checked my existing bases, plus a base created under 4.4 > > Under party->configuration->party configuration the sequence field is blank > for all.
So it seems you have decided to not have automatic code on party. We could improve the script for this case because obviously it does not need to be updated. > That is, I need to explicitly select 'party' to load it. I do not understand what this means. Do you mean, you have to fill the code field explicitly when creating a party? -- Cédric Krier - B2CK SPRL Email/Jabber: [email protected] Tel: +32 472 54 46 59 Website: http://www.b2ck.com/ -- You received this message because you are subscribed to the Google Groups "tryton" group. To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/20170620131931.GD18592%40kei.
