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

Added models for bizStep EQ_bisStep event type.

parent c0cde829
...@@ -26,7 +26,7 @@ Manage products and events collected by a Fosstrak platform. ...@@ -26,7 +26,7 @@ Manage products and events collected by a Fosstrak platform.
'depends': ['base'], 'depends': ['base'],
'init_xml': [], 'init_xml': [],
'update_xml': ['views/main.xml', 'views/test1.xml', 'views/test2.xml', 'update_xml': ['views/main.xml', 'views/test1.xml', 'views/test2.xml',
'views/product.xml'], 'views/product.xml', 'views/bizStep.xml'],
'active': True, 'active': True,
'installable': True 'installable': True
} }
...@@ -53,6 +53,22 @@ class Product(osv.osv): ...@@ -53,6 +53,22 @@ class Product(osv.osv):
#'active': fields.boolean('Active', help="By unchecking the active field, you may hide a product without deleting it.") #'active': fields.boolean('Active', help="By unchecking the active field, you may hide a product without deleting it.")
} }
class EQ_bizStep(osv.osv):
"""
Model for the EQ_bizStep (bizStep.xml) view.
"""
_name = "ecologistics.bizstep"
_columns = {
'action': fields.char('Action', size=10, required=True, help="EPCIS code of the product."),
'read_point': fields.char('Read point', size=100, required=True, help="Description of the product."),
'biz_location': fields.char('Biz location', size=100, required=True, help="Description of the product."),
'biz_step': fields.char('Biz step', size=100, required=True, help="Description of the product."),
'epc_list': fields.char('Involved object(s)', required=True, help="Description of the product."),
'event_time' : fields.date('Event time', required=True),
'record_time' : fields.date('Record time', required=True)
}
Test1() Test1()
Test2() Test2()
Product() 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