Comment by [email protected]:

To call methods in a object, you need first add this methods in _rpc.

{{{
def __init__(self):
   super(Party, self).__init__()
   self._rpc['default_lang'] = True
}}}

After, you can call this method:

= Proteus =

{{{
Party = Model.get('party.party')
lang = Party.default_lang(config.context)
}}}

= XML-RPC =

{{{
lang = s.model.party.party.default_lang(context)
}}}

For more information:
http://code.google.com/p/tryton/wiki/RemoteCalls

--
--
[email protected] mailing list



Reply via email to