@api.multi
def _target_achieve(self):
if self._origin.id:
print("==============I RUN")
else:
raise exceptions.ValidationError('No ID')
error is
if self._origin.id: AttributeError: 'sale.promotion.rule' object has no attribute '_origin'
why else statement is not run
where i'm wrong