Files
tryton/trytond/test/trigger.py
T

20 lines
495 B
Python
Raw Normal View History

#This file is part of Tryton. The COPYRIGHT file at the top level of
#this repository contains the full copyright notices and license terms.
from trytond.model import ModelSQL, fields
TRIGGER_LOGS = []
class Triggered(ModelSQL):
'Triggered'
_name = 'test.triggered'
_description = __doc__
name = fields.Char('Name')
2010-08-19 22:01:12 +02:00
def trigger(self, ids, trigger_id):
'''
Trigger function for test
'''
TRIGGER_LOGS.append((ids, trigger_id))
Triggered()