On 05/10/12 12:08 -0700, Miguel Tasende wrote:
> Hi!
> 
> This is probably another easy one, but I couldn't find a module that uses 
> buttons (and I want to), so I can't see sources for this one (I watched 
> Party,Company, and gnu_health modules and no one uses buttons it seems).
> 
> The problem is that I can't call an internal class function. The button 
> shows in the GUI but when I hit it it says:
> 
> "calling method apreto in hello.algo is not allowed"
> 
> I thought it could be a matter of permissions or scope, but can't find the 
> answer. Any suggestion is greatly appreciated. Thanks in advance!

You must declare the method in _rpc

    
http://doc.tryton.org/2.4/trytond/doc/ref/models/models.html#trytond.model.Model._rpc

-- 
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: pgpbz5k7jeoe7.pgp
Description: PGP signature

Reply via email to