[tryton-dev] Re: Call a Functional Field from another module

2018-02-15 Thread Josias Pérez
With the code describe above I receive the follow error message: Traceback (most recent call last): File "/opt/cr/local/lib/python2.7/site-packages/trytond/protocols/dispatcher.py", line 165, in _dispatch result = rpc.result(meth(*c_args, **c_kwargs)) File "/opt/cr/local/lib/python2.7/si

[tryton-dev] Call a Functional Field from another module

2018-02-15 Thread Josias Pérez
Hi, I would appreciate if could tell how I can call a functional field from another module, in this case, I need to call the payable function field from account module. The code is the follow: currency_digits = fields.Function(fields.Integer('Currency Digits'), 'get_c

Re: [tryton-dev] Search on One2Many field

2018-02-15 Thread Josias Pérez
El jueves, 8 de febrero de 2018, 9:55:45 (UTC-6), Sergi Almacellas Abellana escribió: > El 07/02/18 a les 23:01, Josias Pérez ha escrit: > > Hi, > > > > I have a custom module with the a One2Many field: > > > > > > class Agreement(ModelView, ModelSQL): > > "Agreement" > > __name__ = 'mo