Trigger write condition

Hi guys,

I have trouble with trigger actions when a record is modified. I have defined a trigger on invoices
in similar to https://codereview.tryton.org/299621002/

But when condition return true, there is no action triggered.
I think that the problem is on trigger_write_get_eligibles function on modelstorage, because
a denial of the condition is made. “if not Trigger.eval(trigger, record)”

Anyone can clarify me if there is a bug?

A trigger is about change of state. So before the write the trigger condition for the record must be evaluated to false and then to true after. Otherwise if it is both true there is no change.

it is understood, thanks!!!