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.
But I think the issue is just reveal but python-sql, the get_access
should return always True for root user.
I will submit a patch on trunk for that.

-- 
Cédric Krier

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email/Jabber: [email protected]
Website: http://www.b2ck.com/

Attachment: pgpaTNhHeIIPl.pgp
Description: PGP signature

Reply via email to