"Cédric Krier" <[email protected]> ha escrit:
>On 29/08/13 17:25 +0200, Sergi Almacellas Abellana wrote:
>> Al 28/08/13 08:47, En/na Guillem Barba Domingo ha escrit:
>> > 
>> > El 28/08/2013 7:12, "Nicolas Évrard" <[email protected] 
>> > <mailto:[email protected]>> va escriure:
>> >> 
>> >> * Sergi Almacellas Abellana  [2013-08-27 19:38 +0200]:
>> >>> 
>> >>> As hg review doesn't work with nested repositories the patch
>> >>> must split by hand. If anyone is interesed on the invididual
>> >>> files for modules I can share it :)
>> >> 
>> >> 
>> >> In theory hgreview says that it has fetched a patch somewhere in
>> >> /tmp, you can use this file directly.
>> >> 
>> >> One day, I'll use this file to apply the patch using the patch
>> >> command.
>> > 
>> > Yes, it works. I used this trick several times.
>> > 
>> > $ hg review --fetch -n -i XXX Error... /tmp/YYY $ patch -p1 <
>> > /tmp/YYY
>> > 
>> 
>> Thanks for the tip, it worked perfectly :)
>> 
>> Patch doesn't apply on tip, but this is another thing.
>> 
>> I managed to apply it with revesion 3121 of trytond, revision 219 of
>> timesheet and revision 618 of account_invoice. Other repors applied
>> withous problems.
>> 
>> After appling it i got the following errors after creating a new
>database:
>> 
>> Traceback (most recent call last):
>>   File
>>
>"/home/pokoli/tryton/python-sql/trytond/trytond/protocols/dispatcher.py",
>> line 243, in create
>>     pool.init(update=True, lang=[lang])
>>   File "/home/pokoli/tryton/python-sql/trytond/trytond/pool.py", line
>> 151, in init
>>     lang=lang)
>>   File
>> "/home/pokoli/tryton/python-sql/trytond/trytond/modules/__init__.py",
>> line 398, in load_modules
>>     load_module_graph(graph, pool, lang)
>>   File
>> "/home/pokoli/tryton/python-sql/trytond/trytond/modules/__init__.py",
>> line 261, in load_module_graph
>>     Translation.translation_import(lang2, module, filename)
>>   File
>> "/home/pokoli/tryton/python-sql/trytond/trytond/ir/translation.py",
>> line 718, in translation_import
>>     ('name', 'DESC'),
>>   File
>> "/home/pokoli/tryton/python-sql/trytond/trytond/model/modelsql.py",
>> line 887, in search
>>     forder = field.convert_order(fname, tables, cls)
>>   File
>>
>"/home/pokoli/tryton/python-sql/trytond/trytond/model/fields/selection.py",
>> line 51, in convert_order
>>     selections = Model.fields_get([name])[name]['selection']
>>   File
>> "/home/pokoli/tryton/python-sql/trytond/trytond/model/model.py", line
>> 214, in fields_get
>>     accesses = FieldAccess.get_access([cls.__name__])[cls.__name__]
>>   File "/home/pokoli/tryton/python-sql/trytond/trytond/ir/model.py",
>> line 607, in get_access
>>     UserGroup = pool.get('res.user-res.group')
>>   File "/home/pokoli/tryton/python-sql/trytond/trytond/pool.py", line
>> 168, in get
>>     return self._pool[self.database_name][type][name]
>> KeyError: 'res.user-res.group'
>> 
>> 
>> The only strange thing is that I am creating the database in a
>Catalan.
>
>Yes it is linked to the fact that you create a DB with a translatable
>language.

So maybe adding a test that installs a database in a translatable language 
should help to prevent those issues. 

I can work on it if you can provide some guide.

>But I think the issue is just reveal but python-sql, the get_access
>should return always True for root user.

Sorry but didn't understand you here.

>I will submit a patch on trunk for that.

Trunk of tryton or trunk of python-sql?

I want to test the patch when done, so would be great if you can inform me :)

-- 
Enviado desde mi teléfono Android con K-9 Mail. Disculpa mi brevedad

Reply via email to