On 04 Nov 05:12, Mariano Ramon wrote:
> On Monday, November 3, 2014 2:40:04 PM UTC-3, Cédric Krier wrote:
> > > msgctxt "model:ir.action,name:.custom.act_psc_form1" 
> > > msgid "PSC" 
> > > msgstr "LSP" 
> >
> > Without the point: 
> > msgctxt "model:ir.action,name:custom.act_psc_form1" 
> >
> > > should I add the resource to my module too? 
> >
> > in locale/xx_XX.po file 
> >
> >
> 
> I meant if I have to add it to the view file of my own module, like when 
> extending views.
> 
> I get this error when adding it like this example and updating the module:
> 
> [Tue Nov 04 13:06:11 2014] INFO:modules:custom:loading locale/es_AR.po
> Traceback (most recent call last):
> …
> "/home/xxxxxxx/gnuhealth/tryton/server/trytond-3.2.3/trytond/ir/translation.py",
>  
> line 813, in override_translation
>     ('fs_id', '=', res_id),
> ValueError: need more than 0 values to unpack

It looks like you give the wrong id ("act_psc_form1"), you must give the
id in the original module.

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: [email protected]
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

Attachment: pgpCqHUTXH5dn.pgp
Description: PGP signature

Reply via email to