コード例 #1
0
 def write(self, cr, uid, ids, vals, context=None):
     if not isinstance(ids, list):
         ids = [ids]
     set_seq_o2m(cr,
                 uid,
                 vals.get('order_line'),
                 'sale_order_line',
                 'order_id',
                 ids[0],
                 context=context)
     return super(sale_order, self).write(cr,
                                          uid,
                                          ids,
                                          vals,
                                          context=context)
コード例 #2
0
ファイル: sale.py プロジェクト: newmooncn/dm
 def write(self, cr, uid, ids, vals, context=None):      
     if not isinstance(ids,list):
         ids = [ids]
     set_seq_o2m(cr, uid, vals.get('order_line'), 'sale_order_line', 'order_id', ids[0], context=context)  
     return super(sale_order, self).write(cr, uid, ids, vals, context=context)
コード例 #3
0
ファイル: sale.py プロジェクト: newmooncn/dm
 def create(self, cr, uid, data, context=None):        
     set_seq_o2m(cr, uid, data.get('order_line'), context=context)
     return super(sale_order, self).create(cr, uid, data, context)
コード例 #4
0
 def create(self, cr, uid, data, context=None):
     set_seq_o2m(cr, uid, data.get('order_line'), context=context)
     return super(sale_order, self).create(cr, uid, data, context)