Commit c035d3db authored by Cédric Bonhomme's avatar Cédric Bonhomme

A uniq id has been added to ensure the unicity of each objectEvents.

parent c94c9582
......@@ -59,6 +59,7 @@ class EQ_bizStep(osv.osv):
"""
_name = "ecologistics.bizstep"
_columns = {
'hash': fields.char('Internal id', size=128, required=True, help="Internal id."),
'action': fields.char('Action', size=10, required=True, help="Action."),
'read_point': fields.char('Read point', size=100, required=True, help="Read point."),
'biz_location': fields.char('Biz location', size=100, required=True, help="Biz location."),
......@@ -67,8 +68,11 @@ class EQ_bizStep(osv.osv):
'event_time' : fields.date('Event time', required=True),
'record_time' : fields.date('Record time', required=True)
}
_sql_constraints = [
('hash_unique', 'UNIQUE(hash)', 'Each hash is unique.'),
]
Test1()
Test2()
#Test1()
#Test2()
Product()
EQ_bizStep()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment