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)
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)
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)