mirror of
https://github.com/NaN-tic/tryton-gtk2.git
synced 2023-12-14 03:12:58 +01:00
Be fault tolerant when evaluating on_change
This commit is contained in:
parent
db5dceb9af
commit
9e61bbf3bd
1 changed files with 4 additions and 1 deletions
|
@ -270,7 +270,10 @@ class ModelRecord(SignalEvent):
|
|||
if isinstance(attr, basestring):
|
||||
attr = eval(attr)
|
||||
for arg in attr:
|
||||
args[arg] = self.expr_eval(arg)
|
||||
try:
|
||||
args[arg] = self.expr_eval(arg)
|
||||
except:
|
||||
args[arg] = False
|
||||
ids = self.id and [self.id] or []
|
||||
try:
|
||||
res = getattr(self.rpc, 'on_change_' + field)(ids, args,
|
||||
|
|
Loading…
Reference in a new issue