示例#1
0
class table_item:
    _name = 'item'
    sql_str_list = [
        fields.char('name', required=True),
        fields.many2one('part', 'part', required=True),
    ]
示例#2
0
class table_seq:
    _name = 'table_seq'
    no_id = True
    sql_str_list = [
        fields.char('table_name', required=True),
    ]
示例#3
0
class table_part:
    _name = 'part'
    sql_str_list = [
        fields.char('name', required=True),
        fields.many2one('user', 'user', required=True),
    ]
示例#4
0
class table:
    _name = 'people2'
    sql_str_list = [
        fields.char('name', required=True),
        fields.integer('age'),
    ]